Class IndexerActionDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.document.business.IndexerActionDAO
-
- All Implemented Interfaces:
IIndexerActionDAO
public final class IndexerActionDAO extends java.lang.Object implements IIndexerActionDAO
This class provides Data Access methods for Indexer Action objects
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONSTANT_ANDstatic java.lang.StringCONSTANT_WHERE
-
Constructor Summary
Constructors Constructor Description IndexerActionDAO()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.StringbuildRequestWithFilter(java.lang.String strSelect, java.util.List<java.lang.String> listStrFilter, java.lang.String strOrder)Builds a query with filters placed in parametersvoiddelete(int nId)Delete a record from the tablevoiddeleteAll()Delete a record from the tablevoidinsert(IndexerAction indexerAction)Insert a new record in the table.IndexerActionload(int nId)Load the data of the IndexerAction from the tableintnewPrimaryKey()Generates a new primary keyjava.util.List<IndexerAction>selectList(IndexerActionFilter filter)Load the data of all indexerAction and returns them in a listvoidstore(IndexerAction indexerAction)Update the indexerAction in the table
-
-
-
Field Detail
-
CONSTANT_WHERE
public static final java.lang.String CONSTANT_WHERE
- See Also:
- Constant Field Values
-
CONSTANT_AND
public static final java.lang.String CONSTANT_AND
- See Also:
- Constant Field Values
-
-
Method Detail
-
newPrimaryKey
public int newPrimaryKey()
Description copied from interface:IIndexerActionDAOGenerates a new primary key- Specified by:
newPrimaryKeyin interfaceIIndexerActionDAO- Returns:
- The new primary key
-
insert
public void insert(IndexerAction indexerAction)
Description copied from interface:IIndexerActionDAOInsert a new record in the table.- Specified by:
insertin interfaceIIndexerActionDAO- Parameters:
indexerAction- instance of the IndexerAction object to insert
-
load
public IndexerAction load(int nId)
Description copied from interface:IIndexerActionDAOLoad the data of the IndexerAction from the table- Specified by:
loadin interfaceIIndexerActionDAO- Parameters:
nId- The identifier of the action- Returns:
- the instance of the IndexerAction
-
delete
public void delete(int nId)
Description copied from interface:IIndexerActionDAODelete a record from the table- Specified by:
deletein interfaceIIndexerActionDAO- Parameters:
nId- The identifier of the action
-
deleteAll
public void deleteAll()
Description copied from interface:IIndexerActionDAODelete a record from the table- Specified by:
deleteAllin interfaceIIndexerActionDAO
-
store
public void store(IndexerAction indexerAction)
Description copied from interface:IIndexerActionDAOUpdate the indexerAction in the table- Specified by:
storein interfaceIIndexerActionDAO- Parameters:
indexerAction- instance of the IndexerAction object to update
-
selectList
public java.util.List<IndexerAction> selectList(IndexerActionFilter filter)
Description copied from interface:IIndexerActionDAOLoad the data of all indexerAction and returns them in a list- Specified by:
selectListin interfaceIIndexerActionDAO- Parameters:
filter- the search filter- Returns:
- The List which contains the data of all action
-
buildRequestWithFilter
public static java.lang.String buildRequestWithFilter(java.lang.String strSelect, java.util.List<java.lang.String> listStrFilter, java.lang.String strOrder)Builds a query with filters placed in parameters- Parameters:
strSelect- the select of the querylistStrFilter- the list of filter to add in the querystrOrder- the order by of the query- Returns:
- a query
-
-