Class BatchDetailFactory
java.lang.Object
com.echothree.model.data.batch.server.factory.BatchDetailFactory
- All Implemented Interfaces:
BaseFactory<BatchDetailPK,BatchDetail>
@ApplicationScoped
public class BatchDetailFactory
extends Object
implements BaseFactory<BatchDetailPK,BatchDetail>
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a new instance of BatchDetailFactory -
Method Summary
Modifier and TypeMethodDescriptionvoidcreate(Collection<BatchDetailValue> _values) getEntitiesFromPKs(EntityPermission entityPermission, Collection<BatchDetailPK> 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, BatchDetailPK 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, BatchDetailValue value) static BatchDetailFactorygetPKFromQuery(PreparedStatement ps, Object... params) getPKsFromQueryAsList(PreparedStatement ps, Object... params) getPKsFromQueryAsSet(PreparedStatement ps, Object... params) prepareStatement(String query) voidremove(BatchDetailPK pk) voidremove(BatchDetail entity) voidremove(Collection<BatchDetailPK> pks) voidstore(BatchDetail entity) voidstore(Collection<BatchDetail> entities) booleanvalidPK(BatchDetailPK pk)
-
Field Details
-
TABLE_NAME
- See Also:
-
BTCHDT_BATCHDETAILID
- See Also:
-
BTCHDT_BTCH_BATCHID
- See Also:
-
BTCHDT_BTCHTYP_BATCHTYPEID
- See Also:
-
BTCHDT_BATCHNAME
- See Also:
-
BTCHDT_FROMTIME
- See Also:
-
BTCHDT_THRUTIME
- See Also:
-
-
Constructor Details
-
BatchDetailFactory
protected BatchDetailFactory()Creates a new instance of BatchDetailFactory
-
-
Method Details
-
getInstance
-
getPKColumn
- Specified by:
getPKColumnin interfaceBaseFactory<BatchDetailPK,BatchDetail>
-
getAllColumns
- Specified by:
getAllColumnsin interfaceBaseFactory<BatchDetailPK,BatchDetail>
-
getTableName
- Specified by:
getTableNamein interfaceBaseFactory<BatchDetailPK,BatchDetail>
-
getComponentVendorName
- Specified by:
getComponentVendorNamein interfaceBaseFactory<BatchDetailPK,BatchDetail>
-
getEntityTypeName
- Specified by:
getEntityTypeNamein interfaceBaseFactory<BatchDetailPK,BatchDetail>
-
prepareStatement
-
getNextPK
-
getPKsFromResultSetAsSet
public Set<BatchDetailPK> getPKsFromResultSetAsSet(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKsFromResultSetAsList
public List<BatchDetailPK> getPKsFromResultSetAsList(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKFromResultSet
- Throws:
PersistenceDatabaseException
-
getValuesFromPKs
public List<BatchDetailValue> getValuesFromPKs(Collection<BatchDetailPK> pks) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getValueFromPK
- Throws:
PersistenceDatabaseException
-
getValuesFromResultSet
public List<BatchDetailValue> getValuesFromResultSet(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getValueFromResultSet
- Throws:
PersistenceDatabaseException
-
getEntitiesFromPKs
public List<BatchDetail> getEntitiesFromPKs(EntityPermission entityPermission, Collection<BatchDetailPK> pks) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromValue
-
getEntityFromCache
-
getEntityFromPK
public BatchDetail getEntityFromPK(EntityPermission entityPermission, BatchDetailPK pk) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKsFromQueryAsSet
public Set<BatchDetailPK> getPKsFromQueryAsSet(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKsFromQueryAsList
public List<BatchDetailPK> getPKsFromQueryAsList(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKFromQuery
public BatchDetailPK getPKFromQuery(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<BatchDetail> getEntitiesFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<BatchDetail> getEntitiesFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<BatchDetail> getEntitiesFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public BatchDetail getEntityFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public BatchDetail getEntityFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public BatchDetail getEntityFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromResultSet
public List<BatchDetail> getEntitiesFromResultSet(EntityPermission entityPermission, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromResultSet
public BatchDetail getEntityFromResultSet(EntityPermission entityPermission, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
create
public BatchDetail create(Batch batch, BatchType batchType, String batchName, Long fromTime, Long thruTime) throws PersistenceDatabaseException, PersistenceNotNullException -
create
public BatchDetail create(BatchPK batchPK, BatchTypePK batchTypePK, String batchName, Long fromTime, Long thruTime) throws PersistenceDatabaseException, PersistenceNotNullException -
create
public void create(Collection<BatchDetailValue> _values) throws PersistenceDatabaseException, PersistenceNotNullException -
store
- Specified by:
storein interfaceBaseFactory<BatchDetailPK,BatchDetail> - Throws:
PersistenceDatabaseException
-
store
- Specified by:
storein interfaceBaseFactory<BatchDetailPK,BatchDetail> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
removein interfaceBaseFactory<BatchDetailPK,BatchDetail> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
removein interfaceBaseFactory<BatchDetailPK,BatchDetail> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
removein interfaceBaseFactory<BatchDetailPK,BatchDetail> - Throws:
PersistenceDatabaseException
-
validPK
- Specified by:
validPKin interfaceBaseFactory<BatchDetailPK,BatchDetail> - Throws:
PersistenceDatabaseException
-