Class ClientHome
java.lang.Object
fr.paris.lutece.plugins.identityimport.business.ClientHome
This class provides instances management methods (create, find, ...) for Client objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClientCreate an instance of the client classfindByClientCode(String clientCode) Returns an instance of a client whose client code is specified in parameterfindByPrimaryKey(int nKey) Returns an instance of a client whose identifier is specified in parameterLoad the data of all the client objects and returns them as a listgetClientsListByAppCode(String appCode) Load the data of all the client objects and returns them as a listgetClientsListByIds(List<Integer> listIds) Load the data of all the avant objects and returns them as a liststatic fr.paris.lutece.util.ReferenceListLoad the data of all the client objects and returns them as a referenceListLoad the id of all the client objects and returns them as a liststatic voidremove(int nKey) Remove the client whose identifier is specified in parameterstatic ClientUpdate of the client which is specified in parameter
-
Method Details
-
create
Create an instance of the client class- Parameters:
client- The instance of the Client which contains the information to store- Returns:
- The instance of client which has been created with its primary key.
-
update
Update of the client which is specified in parameter- Parameters:
client- The instance of the Client which contains the data to store- Returns:
- The instance of the client which has been updated
-
remove
public static void remove(int nKey) Remove the client whose identifier is specified in parameter- Parameters:
nKey- The client Id
-
findByPrimaryKey
Returns an instance of a client whose identifier is specified in parameter- Parameters:
nKey- The client primary key- Returns:
- an instance of Client
-
findByClientCode
Returns an instance of a client whose client code is specified in parameter- Parameters:
clientCode- The client code- Returns:
- an instance of Client
-
getClientsList
Load the data of all the client objects and returns them as a list- Returns:
- the list which contains the data of all the client objects
-
getIdClientsList
Load the id of all the client objects and returns them as a list- Returns:
- the list which contains the id of all the client objects
-
getClientsReferenceList
public static fr.paris.lutece.util.ReferenceList getClientsReferenceList()Load the data of all the client objects and returns them as a referenceList- Returns:
- the referenceList which contains the data of all the client objects
-
getClientsListByIds
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
-
getClientsListByAppCode
Load the data of all the client objects and returns them as a list- Parameters:
appCode- the app code- Returns:
- The list which contains the data of all the client objects
-