public class AccountingPersistence extends AbstractPersistence<AccountingPackage>
AbstractPersistence.SQL_ORDER
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
logger |
static String |
tableName |
AND, entityManagerFactory
Constructor and Description |
---|
AccountingPersistence(javax.persistence.EntityManagerFactory factory)
Instantiates a new accounting persistence.
|
Modifier and Type | Method and Description |
---|---|
int |
deleteAccountingForInternalIDs(List<String> accountingIDs)
Delete accounting for internal i ds.
|
int |
deleteAccountingForPackageRefs(List<String> packageIDs)
Delete accounting for package refs.
|
int |
deleteAccountingPackageForPackageRef(String packageId)
Delete accounting package for package ref.
|
int |
deleteAllAccountingPackages()
Delete all accounting packages.
|
int |
deleteItemByIdField(String idField)
Delete item by id field.
|
List<Package> |
getAccountingPackageRows()
Gets the accounting package rows.
|
void |
incrementPackageAccounting(Package pck,
AccoutingReference reference) |
int |
removeAllReleations()
Removes the all releations.
|
int |
removeRelations(AccountingPackage item)
Removes the relations.
|
javax.persistence.criteria.Root<AccountingPackage> |
rootFrom(javax.persistence.criteria.CriteriaQuery<Object> cq)
Root from.
|
boolean |
updateAccountingForPackageId(AccountingPackage accouting)
Update accounting for package id.
|
countItems, create, createNewManager, deleteItemByInternalId, executeCriteriaQuery, executeTypedQuery, getCriteriaBuilder, getEntityManagerFactory, getItemByKey, getRows, getRows, getRowsFiltered, getRowsOrdered, insert, remove, removeAll, update
protected static org.slf4j.Logger logger
public static final String tableName
public AccountingPersistence(javax.persistence.EntityManagerFactory factory)
factory
- the factorypublic javax.persistence.criteria.Root<AccountingPackage> rootFrom(javax.persistence.criteria.CriteriaQuery<Object> cq)
JavaPersistenceHandler
rootFrom
in interface JavaPersistenceHandler<AccountingPackage>
rootFrom
in class AbstractPersistence<AccountingPackage>
cq
- the cqpublic int deleteItemByIdField(String idField) throws DatabaseServiceException
DaoUpdater
deleteItemByIdField
in interface DaoUpdater<AccountingPackage>
deleteItemByIdField
in class AbstractPersistence<AccountingPackage>
idField
- the id fieldDatabaseServiceException
- the database service exceptionpublic int removeAllReleations()
AbstractPersistence
removeAllReleations
in class AbstractPersistence<AccountingPackage>
public int removeRelations(AccountingPackage item)
AbstractPersistence
removeRelations
in class AbstractPersistence<AccountingPackage>
item
- the itempublic int deleteAccountingPackageForPackageRef(String packageId) throws DatabaseServiceException
packageId
- the package idDatabaseServiceException
- the database service exceptionpublic void incrementPackageAccounting(Package pck, AccoutingReference reference) throws Exception
Exception
public boolean updateAccountingForPackageId(AccountingPackage accouting) throws DatabaseServiceException
accouting
- the accoutingDatabaseServiceException
- the database service exceptionpublic int deleteAllAccountingPackages() throws DatabaseServiceException
DatabaseServiceException
- the database service exceptionpublic List<Package> getAccountingPackageRows() throws DatabaseServiceException
DatabaseServiceException
- the database service exceptionpublic int deleteAccountingForPackageRefs(List<String> packageIDs) throws DatabaseServiceException
packageIDs
- the package i dsDatabaseServiceException
- the database service exceptionpublic int deleteAccountingForInternalIDs(List<String> accountingIDs) throws DatabaseServiceException
accountingIDs
- the accounting i dsDatabaseServiceException
- the database service exceptionCopyright © 2016. All Rights Reserved.