Class BatchAliasFactory
java.lang.Object
com.echothree.model.data.batch.server.factory.BatchAliasFactory
- All Implemented Interfaces:
BaseFactory<BatchAliasPK,BatchAlias>
@ApplicationScoped
public class BatchAliasFactory
extends Object
implements BaseFactory<BatchAliasPK,BatchAlias>
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a new instance of BatchAliasFactory -
Method Summary
Modifier and TypeMethodDescriptioncreate(BatchPK batchPK, BatchAliasTypePK batchAliasTypePK, String alias, Long fromTime, Long thruTime) voidcreate(Collection<BatchAliasValue> _values) getEntitiesFromPKs(EntityPermission entityPermission, Collection<BatchAliasPK> 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, BatchAliasPK 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, BatchAliasValue value) static BatchAliasFactorygetPKFromQuery(PreparedStatement ps, Object... params) getPKsFromQueryAsList(PreparedStatement ps, Object... params) getPKsFromQueryAsSet(PreparedStatement ps, Object... params) prepareStatement(String query) voidremove(BatchAliasPK pk) voidremove(BatchAlias entity) voidremove(Collection<BatchAliasPK> pks) voidstore(BatchAlias entity) voidstore(Collection<BatchAlias> entities) booleanvalidPK(BatchAliasPK pk)
-
Field Details
-
TABLE_NAME
- See Also:
-
BTCHAL_BATCHALIASID
- See Also:
-
BTCHAL_BTCH_BATCHID
- See Also:
-
BTCHAL_BTCHAT_BATCHALIASTYPEID
- See Also:
-
BTCHAL_ALIAS
- See Also:
-
BTCHAL_FROMTIME
- See Also:
-
BTCHAL_THRUTIME
- See Also:
-
-
Constructor Details
-
BatchAliasFactory
protected BatchAliasFactory()Creates a new instance of BatchAliasFactory
-
-
Method Details
-
getInstance
-
getPKColumn
- Specified by:
getPKColumnin interfaceBaseFactory<BatchAliasPK,BatchAlias>
-
getAllColumns
- Specified by:
getAllColumnsin interfaceBaseFactory<BatchAliasPK,BatchAlias>
-
getTableName
- Specified by:
getTableNamein interfaceBaseFactory<BatchAliasPK,BatchAlias>
-
getComponentVendorName
- Specified by:
getComponentVendorNamein interfaceBaseFactory<BatchAliasPK,BatchAlias>
-
getEntityTypeName
- Specified by:
getEntityTypeNamein interfaceBaseFactory<BatchAliasPK,BatchAlias>
-
prepareStatement
-
getNextPK
-
getPKsFromResultSetAsSet
- Throws:
PersistenceDatabaseException
-
getPKsFromResultSetAsList
public List<BatchAliasPK> getPKsFromResultSetAsList(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKFromResultSet
- Throws:
PersistenceDatabaseException
-
getValuesFromPKs
public List<BatchAliasValue> getValuesFromPKs(Collection<BatchAliasPK> pks) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getValueFromPK
- Throws:
PersistenceDatabaseException
-
getValuesFromResultSet
public List<BatchAliasValue> getValuesFromResultSet(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getValueFromResultSet
- Throws:
PersistenceDatabaseException
-
getEntitiesFromPKs
public List<BatchAlias> getEntitiesFromPKs(EntityPermission entityPermission, Collection<BatchAliasPK> pks) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromValue
-
getEntityFromCache
-
getEntityFromPK
public BatchAlias getEntityFromPK(EntityPermission entityPermission, BatchAliasPK pk) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKsFromQueryAsSet
public Set<BatchAliasPK> getPKsFromQueryAsSet(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKsFromQueryAsList
public List<BatchAliasPK> getPKsFromQueryAsList(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKFromQuery
public BatchAliasPK getPKFromQuery(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<BatchAlias> getEntitiesFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<BatchAlias> getEntitiesFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<BatchAlias> getEntitiesFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public BatchAlias getEntityFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public BatchAlias getEntityFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public BatchAlias getEntityFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromResultSet
public List<BatchAlias> getEntitiesFromResultSet(EntityPermission entityPermission, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromResultSet
public BatchAlias getEntityFromResultSet(EntityPermission entityPermission, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
create
public BatchAlias create(Batch batch, BatchAliasType batchAliasType, String alias, Long fromTime, Long thruTime) throws PersistenceDatabaseException, PersistenceNotNullException -
create
public BatchAlias create(BatchPK batchPK, BatchAliasTypePK batchAliasTypePK, String alias, Long fromTime, Long thruTime) throws PersistenceDatabaseException, PersistenceNotNullException -
create
public void create(Collection<BatchAliasValue> _values) throws PersistenceDatabaseException, PersistenceNotNullException -
store
- Specified by:
storein interfaceBaseFactory<BatchAliasPK,BatchAlias> - Throws:
PersistenceDatabaseException
-
store
- Specified by:
storein interfaceBaseFactory<BatchAliasPK,BatchAlias> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
removein interfaceBaseFactory<BatchAliasPK,BatchAlias> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
removein interfaceBaseFactory<BatchAliasPK,BatchAlias> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
removein interfaceBaseFactory<BatchAliasPK,BatchAlias> - Throws:
PersistenceDatabaseException
-
validPK
- Specified by:
validPKin interfaceBaseFactory<BatchAliasPK,BatchAlias> - Throws:
PersistenceDatabaseException
-