BaselineManager
manages Baseline
s. A BaselineManager
can
* read, update, and archive Baseline
s.
*/
public interface BaselineManager extends OrderedListQuerierBaseline
. This stores a new
* Baseline
to be managed by the BaselineManager
.
* If the Baseline
is successfully saved then a reference to it
* is returned.
*
* @param baseline baseline to save
* @return reference to saved baseline
* @throws BaselineManagerException if baseline is already saved or other error occurs
*/
Baseline saveBaseline(Baseline baseline) throws BaselineManagerException;
/**
* Updates a Baseline
. This updates the Baseline
* that is managed so subsequent calls to get this Baseline
* will return the values set by the incoming Baseline
.
*
* @param baseline baseline
* @throws BaselineManagerException if unable to update the baseline
*/
void updateBaseline(Baseline baseline) throws BaselineManagerException;
/**
* Returns a list of all baseline names managed by this manager. Every
* Baseline
must have a name that users can use to reference
* the Baseline
. This returns a listing of all the
* Baseline
s.
*
* A Class
argument may be specified to limit which types of
* Baseline
s to return. This argument may be null to return all
* Baseline
s.
*
* @param clazz
* class type of Baseline
s to return (may be null)
* @return list of Baseline
names
* @throws BaselineManagerException if unable to create the list
*/
ListBaseline
s that are ordered by a column
* and direction (ASC, DESC) that is provided by the user. This method
* helps support the server-side processing in the JQuery DataTables. The returned list does not
* contain Baseline
s that have been soft-deleted.
*
* @param columnToOrder Column to be ordered
* @param ascending direction of sort
* @param firstResult starting point of first result in set
* @param maxResults total number we want returned for display in table
* @param search string of criteria to be matched to visible columns
* @param searchableColumns Map of String and boolean values with column
* headers and whether they are to. Boolean is true if field provides
* a typical String that can be searched by Hibernate without
* transformation.
* @return FilteredRecordsList object with fields for DataTables
* @throws BaselineManagerException if unable to create the list
*/
FilteredRecordsListBaseline
identified by name
. If
* the Baseline
cannot be found then null is returned.
*
* @param name name of the Baseline
* @return Baseline
whose name is name
or null if not found
* @throws BaselineManagerException if unable to retrieve the baseline
*/
Baseline getBaseline(String name) throws BaselineManagerException;
/**
* Retrieves the Baseline
identified by the given id
. If
* the Baseline
cannot be found then null is returned.
*
* @param id the id of the desired Baseline
* @return Baseline
whose id is id
or null if not found
* @throws BaselineManagerException if unable to retrieve the baseline
*/
Baseline getBaseline(Serializable id) throws BaselineManagerException;
/**
* Retrieves the Baseline
identified by name
. This method
* fully loads a Baseline object; any lazy fields will be recursively loaded. This is
* necessary when conducting an appraisal. If the Baseline
cannot be found
* then null is returned.
*
* @param name name of the Baseline
* @return Baseline
whose name is name
or null if not found
* @throws BaselineManagerException if unable to retrieve the baseline
*/
Baseline getCompleteBaseline(String name) throws BaselineManagerException;
/**
* Archives the named {@link Baseline} and updates it in the database.
*
* @param name name of the {@link Baseline} to archive
* @return true if the {@link Baseline} was successfully found and archived, false if the
* {@link Baseline} was not found
* @throws DBManagerException
* if the {@link Baseline} is not an instance of ArchivableEntity.
*/
boolean archive(String name) throws DBManagerException;
/**
* Deletes the named {@link Baseline} from the database.
*
* @param baseline {@link Baseline} to be deleted
* @return true
if the {@link Baseline} was successfully found and
* deleted, false
if the {@link Baseline} was not found
* @throws DBManagerException
* if the {@link Baseline} is not an instance of ArchivableEntity.
*/
boolean delete(Baseline baseline) throws DBManagerException;
/**
* Returns a list of all Baseline
s that are ordered by a column
* and direction (ASC, DESC) that is provided by the user. This method
* helps support the server-side processing in the JQuery DataTables. The returned list does not
* contain Baseline
s that have been soft-deleted. The records stored within each
* baseline are not loaded.
*
* @param columnToOrder Column to be ordered
* @param ascending direction of sort
* @param firstResult starting point of first result in set
* @param maxResults total number we want returned for display in table
* @param search string of criteria to be matched to visible columns
* @param searchableColumns Map of String and boolean values with column
* headers and whether they are to. Boolean is true if field provides
* a typical String that can be searched by Hibernate without
* transformation.
* @return FilteredRecordsList object with fields for DataTables
* @throws BaselineManagerException if unable to create the list
*/
FilteredRecordsList