Class InventoryTransactionFactory
java.lang.Object
com.echothree.model.data.inventory.server.factory.InventoryTransactionFactory
- All Implemented Interfaces:
BaseFactory<InventoryTransactionPK,InventoryTransaction>
@ApplicationScoped
public class InventoryTransactionFactory
extends Object
implements BaseFactory<InventoryTransactionPK,InventoryTransaction>
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a new instance of InventoryTransactionFactory -
Method Summary
Modifier and TypeMethodDescriptioncreate()create(InventoryTransactionDetailPK activeDetailPK, InventoryTransactionDetailPK lastDetailPK) create(InventoryTransactionDetail activeDetail, InventoryTransactionDetail lastDetail) voidcreate(Collection<InventoryTransactionValue> _values) getEntitiesFromPKs(EntityPermission entityPermission, Collection<InventoryTransactionPK> pks) getEntitiesFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) getEntitiesFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap) getEntitiesFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) getEntitiesFromResultSet(EntityPermission entityPermission, ResultSet rs) getEntityFromPK(EntityPermission entityPermission, InventoryTransactionPK pk) getEntityFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) getEntityFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap) getEntityFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) getEntityFromResultSet(EntityPermission entityPermission, ResultSet rs) getEntityFromValue(EntityPermission entityPermission, InventoryTransactionValue value) static InventoryTransactionFactorygetPKFromQuery(PreparedStatement ps, Object... params) getPKsFromQueryAsList(PreparedStatement ps, Object... params) getPKsFromQueryAsSet(PreparedStatement ps, Object... params) prepareStatement(String query) voidvoidremove(InventoryTransaction entity) voidvoidstore(InventoryTransaction entity) voidstore(Collection<InventoryTransaction> entities) boolean
-
Field Details
-
TABLE_NAME
- See Also:
-
INVTRX_INVENTORYTRANSACTIONID
- See Also:
-
INVTRX_ACTIVEDETAILID
- See Also:
-
INVTRX_LASTDETAILID
- See Also:
-
-
Constructor Details
-
InventoryTransactionFactory
protected InventoryTransactionFactory()Creates a new instance of InventoryTransactionFactory
-
-
Method Details
-
getInstance
-
getPKColumn
- Specified by:
getPKColumnin interfaceBaseFactory<InventoryTransactionPK,InventoryTransaction>
-
getAllColumns
- Specified by:
getAllColumnsin interfaceBaseFactory<InventoryTransactionPK,InventoryTransaction>
-
getTableName
- Specified by:
getTableNamein interfaceBaseFactory<InventoryTransactionPK,InventoryTransaction>
-
getComponentVendorName
- Specified by:
getComponentVendorNamein interfaceBaseFactory<InventoryTransactionPK,InventoryTransaction>
-
getEntityTypeName
- Specified by:
getEntityTypeNamein interfaceBaseFactory<InventoryTransactionPK,InventoryTransaction>
-
prepareStatement
-
getNextPK
-
getPKsFromResultSetAsSet
public Set<InventoryTransactionPK> getPKsFromResultSetAsSet(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKsFromResultSetAsList
public List<InventoryTransactionPK> getPKsFromResultSetAsList(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKFromResultSet
- Throws:
PersistenceDatabaseException
-
getValuesFromPKs
public List<InventoryTransactionValue> getValuesFromPKs(Collection<InventoryTransactionPK> pks) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getValueFromPK
public InventoryTransactionValue getValueFromPK(InventoryTransactionPK pk) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getValuesFromResultSet
public List<InventoryTransactionValue> getValuesFromResultSet(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getValueFromResultSet
public InventoryTransactionValue getValueFromResultSet(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromPKs
public List<InventoryTransaction> getEntitiesFromPKs(EntityPermission entityPermission, Collection<InventoryTransactionPK> pks) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromValue
public InventoryTransaction getEntityFromValue(EntityPermission entityPermission, InventoryTransactionValue value) -
getEntityFromCache
-
getEntityFromPK
public InventoryTransaction getEntityFromPK(EntityPermission entityPermission, InventoryTransactionPK pk) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKsFromQueryAsSet
public Set<InventoryTransactionPK> getPKsFromQueryAsSet(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKsFromQueryAsList
public List<InventoryTransactionPK> getPKsFromQueryAsList(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKFromQuery
public InventoryTransactionPK getPKFromQuery(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<InventoryTransaction> getEntitiesFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<InventoryTransaction> getEntitiesFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<InventoryTransaction> getEntitiesFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public InventoryTransaction getEntityFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public InventoryTransaction getEntityFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public InventoryTransaction getEntityFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromResultSet
public List<InventoryTransaction> getEntitiesFromResultSet(EntityPermission entityPermission, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromResultSet
public InventoryTransaction getEntityFromResultSet(EntityPermission entityPermission, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
create
-
create
public InventoryTransaction create(InventoryTransactionDetail activeDetail, InventoryTransactionDetail lastDetail) throws PersistenceDatabaseException, PersistenceNotNullException -
create
public InventoryTransaction create(InventoryTransactionDetailPK activeDetailPK, InventoryTransactionDetailPK lastDetailPK) throws PersistenceDatabaseException, PersistenceNotNullException -
create
public void create(Collection<InventoryTransactionValue> _values) throws PersistenceDatabaseException, PersistenceNotNullException -
store
- Specified by:
storein interfaceBaseFactory<InventoryTransactionPK,InventoryTransaction> - Throws:
PersistenceDatabaseException
-
store
- Specified by:
storein interfaceBaseFactory<InventoryTransactionPK,InventoryTransaction> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
removein interfaceBaseFactory<InventoryTransactionPK,InventoryTransaction> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
removein interfaceBaseFactory<InventoryTransactionPK,InventoryTransaction> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
removein interfaceBaseFactory<InventoryTransactionPK,InventoryTransaction> - Throws:
PersistenceDatabaseException
-
validPK
- Specified by:
validPKin interfaceBaseFactory<InventoryTransactionPK,InventoryTransaction> - Throws:
PersistenceDatabaseException
-