public class TrainingUnitPersistence extends AbstractPersistence<TrainingUnit> implements Serializable
AbstractPersistence.SQL_ORDER| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger
The logger.
|
static String |
tableName
The Constant tableName.
|
AND, entityManagerFactory| Constructor and Description |
|---|
TrainingUnitPersistence(javax.persistence.EntityManagerFactory factory)
Instantiates a new release persistence.
|
| Modifier and Type | Method and Description |
|---|---|
int |
deleteUnitsForTrainingProject(TrainingProject project)
Delete units for training project.
|
List<TrainingUnit> |
getListUnitForTrainingProject(TrainingProject project)
Gets the list unit for training project.
|
List<TrainingUnit> |
getTrainingUnitForInternalID(int internalID)
Gets the training unit for internal ID.
|
javax.persistence.criteria.Root<TrainingUnit> |
rootFrom(javax.persistence.criteria.CriteriaQuery<Object> cq)
Root from.
|
TrainingUnit |
updateTrainingUnitInfo(TrainingUnit training)
Update training unit info.
|
countItems, create, createNewManager, deleteItemByInternalId, executeCriteriaQuery, executeTypedQuery, getCriteriaBuilder, getEntityManagerFactory, getItemByKey, getItemForInternalID, getRows, getRows, getRowsFiltered, getRowsOrdered, insert, remove, removeAll, updatepublic static final String tableName
protected static org.slf4j.Logger logger
public TrainingUnitPersistence(javax.persistence.EntityManagerFactory factory)
factory - the factorypublic javax.persistence.criteria.Root<TrainingUnit> rootFrom(javax.persistence.criteria.CriteriaQuery<Object> cq)
JavaPersistenceHandlerrootFrom in interface JavaPersistenceHandler<TrainingUnit>rootFrom in class AbstractPersistence<TrainingUnit>cq - the cqpublic List<TrainingUnit> getTrainingUnitForInternalID(int internalID) throws DatabaseServiceException
internalID - the internal IDDatabaseServiceException - the database service exceptionpublic TrainingUnit updateTrainingUnitInfo(TrainingUnit training) throws DatabaseServiceException
training - the trainingDatabaseServiceException - the database service exceptionpublic int deleteUnitsForTrainingProject(TrainingProject project) throws DatabaseServiceException
project - the projectDatabaseServiceException - the database service exceptionpublic List<TrainingUnit> getListUnitForTrainingProject(TrainingProject project) throws DatabaseServiceException
project - the projectDatabaseServiceException - the database service exceptionCopyright © 2018. All Rights Reserved.