Package ch.tocco.nice2.userbase.impl
Class ArgumentFactories.UserPkArgument
java.lang.Object
ch.tocco.nice2.userbase.impl.ArgumentFactories.UserPkArgument
- All Implemented Interfaces:
ArgumentFactory<Object>
- Enclosing class:
ArgumentFactories
public static class ArgumentFactories.UserPkArgument
extends Object
implements ArgumentFactory<Object>
Returns the primary key (as long) of the entity of the user associated to the current principal.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.persist.core.spi.query.ArgumentFactory
ArgumentFactory.ParameternameAware
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable Object
getArgument
(String parameterName) Return the final argument.
-
Constructor Details
-
UserPkArgument
public UserPkArgument()
-
-
Method Details
-
getArgument
Description copied from interface:ArgumentFactory
Return the final argument.- Specified by:
getArgument
in interfaceArgumentFactory<Object>
- Parameters:
parameterName
- the parameter name used triggering thisArgumentFactory
- Returns:
- the value to be set for the requested parameter
-