Class TemporaryCodeHome
- java.lang.Object
-
- fr.paris.lutece.plugins.temporarycode.business.TemporaryCodeHome
-
public final class TemporaryCodeHome extends java.lang.ObjectThis class provides instances management methods (create, find, ...) for TemporaryCode objects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TemporaryCodecreate(TemporaryCode temporaryCode)Create an instance of the temporaryCode classstatic java.util.Optional<TemporaryCode>findByCodeAndActionName(java.lang.String strCode, java.lang.String strActionName)Returns an instance of a temporaryCode by temporary code and action namestatic java.util.Optional<TemporaryCode>findByPrimaryKey(int nKey)Returns an instance of a temporaryCode whose identifier is specified in parameterstatic java.util.Optional<TemporaryCode>findByUserIdAndActionName(java.lang.String strUserId, java.lang.String strActionName)Returns an instance of a temporaryCode by user id and action namestatic java.util.Optional<TemporaryCode>findByUserIdAndCode(java.lang.String strUserId, java.lang.String strCode, java.lang.String strActionName)Returns an instance of a temporaryCode by user id and codestatic java.util.List<java.lang.Integer>getIdTemporaryCodesList()Load the id of all the temporaryCode objects and returns them as a liststatic java.util.List<TemporaryCode>getTemporaryCodesList()Load the data of all the temporaryCode objects and returns them as a liststatic java.util.List<TemporaryCode>getTemporaryCodesListByIds(java.util.List<java.lang.Integer> listIds)Load the data of all the avant objects and returns them as a liststatic fr.paris.lutece.util.ReferenceListgetTemporaryCodesReferenceList()Load the data of all the temporaryCode objects and returns them as a referenceListstatic voidremove(int nKey)Remove the temporaryCode whose identifier is specified in parameterstatic TemporaryCodeupdate(TemporaryCode temporaryCode)Update of the temporaryCode which is specified in parameter
-
-
-
Method Detail
-
create
public static TemporaryCode create(TemporaryCode temporaryCode)
Create an instance of the temporaryCode class- Parameters:
temporaryCode- The instance of the TemporaryCode which contains the informations to store- Returns:
- The instance of temporaryCode which has been created with its primary key.
-
update
public static TemporaryCode update(TemporaryCode temporaryCode)
Update of the temporaryCode which is specified in parameter- Parameters:
temporaryCode- The instance of the TemporaryCode which contains the data to store- Returns:
- The instance of the temporaryCode which has been updated
-
remove
public static void remove(int nKey)
Remove the temporaryCode whose identifier is specified in parameter- Parameters:
nKey- The temporaryCode Id
-
findByPrimaryKey
public static java.util.Optional<TemporaryCode> findByPrimaryKey(int nKey)
Returns an instance of a temporaryCode whose identifier is specified in parameter- Parameters:
nKey- The temporaryCode primary key- Returns:
- an instance of TemporaryCode
-
findByUserIdAndCode
public static java.util.Optional<TemporaryCode> findByUserIdAndCode(java.lang.String strUserId, java.lang.String strCode, java.lang.String strActionName)
Returns an instance of a temporaryCode by user id and code- Parameters:
strUserId- the user idstrCode- the codestrActionName- the action name- Returns:
- an instance of TemporaryCode
-
findByUserIdAndActionName
public static java.util.Optional<TemporaryCode> findByUserIdAndActionName(java.lang.String strUserId, java.lang.String strActionName)
Returns an instance of a temporaryCode by user id and action name- Parameters:
strUserId- the user idstrActionName- the action name- Returns:
- an instance of TemporaryCode
-
findByCodeAndActionName
public static java.util.Optional<TemporaryCode> findByCodeAndActionName(java.lang.String strCode, java.lang.String strActionName)
Returns an instance of a temporaryCode by temporary code and action name- Parameters:
strCode- the codestrActionName- the action name- Returns:
- an instance of TemporaryCode
-
getTemporaryCodesList
public static java.util.List<TemporaryCode> getTemporaryCodesList()
Load the data of all the temporaryCode objects and returns them as a list- Returns:
- the list which contains the data of all the temporaryCode objects
-
getIdTemporaryCodesList
public static java.util.List<java.lang.Integer> getIdTemporaryCodesList()
Load the id of all the temporaryCode objects and returns them as a list- Returns:
- the list which contains the id of all the temporaryCode objects
-
getTemporaryCodesReferenceList
public static fr.paris.lutece.util.ReferenceList getTemporaryCodesReferenceList()
Load the data of all the temporaryCode objects and returns them as a referenceList- Returns:
- the referenceList which contains the data of all the temporaryCode objects
-
getTemporaryCodesListByIds
public static java.util.List<TemporaryCode> getTemporaryCodesListByIds(java.util.List<java.lang.Integer> listIds)
Load the data of all the avant objects and returns them as a list- Parameters:
listIds- liste of ids- Returns:
- the list which contains the data of all the avant objects
-
-