Package org.dspace.content.dao
Interface ProcessDAO
-
- All Superinterfaces:
GenericDAO<Process>
- All Known Implementing Classes:
ProcessDAOImpl
public interface ProcessDAO extends GenericDAO<Process>
This is the Data Access Object for theProcessobject
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intcountRows(Context context)Returns the total amount of Process objects in the dataaseList<Process>findAll(Context context, int limit, int offset)Returns a list of all Process objects in the databaseList<Process>findAllSortByScript(Context context)This method will return all the Process objects in the database in a list and it'll be sorted by script nameList<Process>findAllSortByStartTime(Context context)This method will return all the Process objects in the database in a list and it'll be sorted by start time.-
Methods inherited from interface org.dspace.core.GenericDAO
create, delete, findAll, findAll, findByID, findByID, findMany, findUnique, save
-
-
-
-
Method Detail
-
findAllSortByScript
List<Process> findAllSortByScript(Context context) throws SQLException
This method will return all the Process objects in the database in a list and it'll be sorted by script name- Parameters:
context- The relevant DSpace context- Returns:
- The list of all Process objects in the database sorted on scriptname
- Throws:
SQLException- If something goes wrong
-
findAllSortByStartTime
List<Process> findAllSortByStartTime(Context context) throws SQLException
This method will return all the Process objects in the database in a list and it'll be sorted by start time. The most recent one will be shown first- Parameters:
context- The relevant DSpace context- Returns:
- The list of all Process objects in the database sorted by starttime
- Throws:
SQLException- If something goes wrong
-
findAll
List<Process> findAll(Context context, int limit, int offset) throws SQLException
Returns a list of all Process objects in the database- Parameters:
context- The relevant DSpace contextlimit- The limit for the amount of Processes returnedoffset- The offset for the Processes to be returned- Returns:
- The list of all Process objects in the Database
- Throws:
SQLException- If something goes wrong
-
countRows
int countRows(Context context) throws SQLException
Returns the total amount of Process objects in the dataase- Parameters:
context- The relevant DSpace context- Returns:
- An integer that describes the amount of Process objects in the database
- Throws:
SQLException- If something goes wrong
-
-