public class TrainingProjectPersistence extends AbstractPersistence<TrainingProject> 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 |
---|
TrainingProjectPersistence(javax.persistence.EntityManagerFactory factory)
Instantiates a new release persistence.
|
Modifier and Type | Method and Description |
---|---|
List<TrainingProject> |
getTrainingProjectForInternalID(int internalID)
Gets the training project for internal ID.
|
javax.persistence.criteria.Root<TrainingProject> |
rootFrom(javax.persistence.criteria.CriteriaQuery<Object> cq)
Root from.
|
TrainingProject |
updateTrainingProjectInfo(TrainingProject training)
Update training project info.
|
countItems, create, createNewManager, deleteItemByInternalId, executeCriteriaQuery, executeTypedQuery, getCriteriaBuilder, getEntityManagerFactory, getItemByKey, getItemForInternalID, getRows, getRows, getRowsFiltered, getRowsOrdered, insert, remove, removeAll, update
public static final String tableName
protected static org.slf4j.Logger logger
public TrainingProjectPersistence(javax.persistence.EntityManagerFactory factory)
factory
- the factorypublic javax.persistence.criteria.Root<TrainingProject> rootFrom(javax.persistence.criteria.CriteriaQuery<Object> cq)
JavaPersistenceHandler
rootFrom
in interface JavaPersistenceHandler<TrainingProject>
rootFrom
in class AbstractPersistence<TrainingProject>
cq
- the cqpublic List<TrainingProject> getTrainingProjectForInternalID(int internalID) throws DatabaseServiceException
internalID
- the internal IDDatabaseServiceException
- the database service exceptionpublic TrainingProject updateTrainingProjectInfo(TrainingProject training) throws DatabaseServiceException
training
- the trainingDatabaseServiceException
- the database service exceptionCopyright © 2019. All Rights Reserved.