public class PackagePersistence extends AbstractPersistence<Package>
AbstractPersistence.SQL_ORDER| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
static String |
tableName |
AND, entityManagerFactory| Constructor and Description |
|---|
PackagePersistence(javax.persistence.EntityManagerFactory factory)
Instantiates a new package persistence.
|
| Modifier and Type | Method and Description |
|---|---|
int |
deleteAllPackages()
Delete all packages.
|
int |
deleteItemByIdField(String idField)
Delete item by id field.
|
int |
deletePackageForID(String packageID,
boolean deleteAccounting)
Delete package for id.
|
int |
deletePackageForInternalId(int internalId,
boolean deleteAccounting)
Delete package for internal id.
|
int |
deletePackagesForRelease(Release release,
boolean deleteAccouting)
Delete packages for release.
|
int |
deletePackagesForReleaseIdRef(String releaseId)
Delete packages for release id ref.
|
AccountingPersistence |
getAccountingPersistence()
Gets the accounting persistence.
|
Map<String,Long> |
getMapFieldGroupedBy(String releaseID,
String fieldName)
Gets the map field grouped by.
|
List<Package> |
getPackageOrdered(String releaseId,
String orderByField,
Map<String,String> equalMapFilter)
Gets the package ordered.
|
List<Package> |
getPackageOrderedLikeFilter(String releaseId,
String orderByField,
Map<String,String> likeMapFilter)
Gets the package ordered like filter.
|
List<Package> |
getPackageRows()
Gets the package rows.
|
int |
removeAllReleations()
Removes the all releations.
|
int |
removeRelations(Package item)
Removes the relations.
|
javax.persistence.criteria.Root<Package> |
rootFrom(javax.persistence.criteria.CriteriaQuery<Object> cq)
Root from.
|
countItems, create, createNewManager, deleteItemByInternalId, executeCriteriaQuery, executeTypedQuery, getCriteriaBuilder, getEntityManagerFactory, getItemByKey, getRows, getRows, getRowsFiltered, getRowsOrdered, insert, remove, removeAll, updateprotected static org.slf4j.Logger logger
public static final String tableName
public PackagePersistence(javax.persistence.EntityManagerFactory factory)
factory - the factorypublic javax.persistence.criteria.Root<Package> rootFrom(javax.persistence.criteria.CriteriaQuery<Object> cq)
JavaPersistenceHandlerrootFrom in interface JavaPersistenceHandler<Package>rootFrom in class AbstractPersistence<Package>cq - the cqpublic Map<String,Long> getMapFieldGroupedBy(String releaseID, String fieldName) throws DatabaseServiceException
releaseID - the release idfieldName - the field nameDatabaseServiceException - the database service exceptionpublic int deletePackagesForRelease(Release release, boolean deleteAccouting) throws DatabaseServiceException
release - the releasedeleteAccouting - the delete accoutingDatabaseServiceException - the database service exceptionpublic int deletePackageForID(String packageID, boolean deleteAccounting) throws DatabaseServiceException
packageID - the package iddeleteAccounting - the delete accountingDatabaseServiceException - the database service exceptionpublic int deletePackageForInternalId(int internalId,
boolean deleteAccounting)
throws DatabaseServiceException
internalId - the internal iddeleteAccounting - the delete accountingDatabaseServiceException - the database service exceptionpublic int deleteAllPackages()
throws DatabaseServiceException
DatabaseServiceException - the database service exceptionpublic List<Package> getPackageRows() throws DatabaseServiceException
DatabaseServiceException - the database service exceptionpublic int deletePackagesForReleaseIdRef(String releaseId) throws DatabaseServiceException
releaseId - the release idDatabaseServiceException - the database service exceptionpublic List<Package> getPackageOrdered(String releaseId, String orderByField, Map<String,String> equalMapFilter) throws DatabaseServiceException
releaseId - the release idorderByField - the order by fieldequalMapFilter - the equal map filterDatabaseServiceException - the database service exceptionpublic List<Package> getPackageOrderedLikeFilter(String releaseId, String orderByField, Map<String,String> likeMapFilter) throws DatabaseServiceException
releaseId - the release idorderByField - the order by fieldlikeMapFilter - the like map filterDatabaseServiceException - the database service exceptionpublic AccountingPersistence getAccountingPersistence()
public int deleteItemByIdField(String idField) throws DatabaseServiceException
DaoUpdaterdeleteItemByIdField in interface DaoUpdater<Package>deleteItemByIdField in class AbstractPersistence<Package>idField - the id fieldDatabaseServiceException - the database service exceptionpublic int removeAllReleations()
AbstractPersistenceremoveAllReleations in class AbstractPersistence<Package>public int removeRelations(Package item)
AbstractPersistenceremoveRelations in class AbstractPersistence<Package>item - the itemCopyright © 2015. All Rights Reserved.