Class LocationCapacityFactory
java.lang.Object
com.echothree.model.data.warehouse.server.factory.LocationCapacityFactory
- All Implemented Interfaces:
BaseFactory<LocationCapacityPK,LocationCapacity>
@ApplicationScoped
public class LocationCapacityFactory
extends Object
implements BaseFactory<LocationCapacityPK,LocationCapacity>
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a new instance of LocationCapacityFactory -
Method Summary
Modifier and TypeMethodDescriptioncreate(LocationPK locationPK, UnitOfMeasureTypePK unitOfMeasureTypePK, Long capacity, Long fromTime, Long thruTime) create(Location location, UnitOfMeasureType unitOfMeasureType, Long capacity, Long fromTime, Long thruTime) voidcreate(Collection<LocationCapacityValue> _values) getEntitiesFromPKs(EntityPermission entityPermission, Collection<LocationCapacityPK> 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, LocationCapacityPK 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, LocationCapacityValue value) static LocationCapacityFactorygetPKFromQuery(PreparedStatement ps, Object... params) getPKsFromQueryAsList(PreparedStatement ps, Object... params) getPKsFromQueryAsSet(PreparedStatement ps, Object... params) prepareStatement(String query) voidvoidremove(LocationCapacity entity) voidvoidstore(LocationCapacity entity) voidstore(Collection<LocationCapacity> entities) boolean
-
Field Details
-
TABLE_NAME
- See Also:
-
LOCCAP_LOCATIONCAPACITYID
- See Also:
-
LOCCAP_LOC_LOCATIONID
- See Also:
-
LOCCAP_UOMT_UNITOFMEASURETYPEID
- See Also:
-
LOCCAP_CAPACITY
- See Also:
-
LOCCAP_FROMTIME
- See Also:
-
LOCCAP_THRUTIME
- See Also:
-
-
Constructor Details
-
LocationCapacityFactory
protected LocationCapacityFactory()Creates a new instance of LocationCapacityFactory
-
-
Method Details
-
getInstance
-
getPKColumn
- Specified by:
getPKColumnin interfaceBaseFactory<LocationCapacityPK,LocationCapacity>
-
getAllColumns
- Specified by:
getAllColumnsin interfaceBaseFactory<LocationCapacityPK,LocationCapacity>
-
getTableName
- Specified by:
getTableNamein interfaceBaseFactory<LocationCapacityPK,LocationCapacity>
-
getComponentVendorName
- Specified by:
getComponentVendorNamein interfaceBaseFactory<LocationCapacityPK,LocationCapacity>
-
getEntityTypeName
- Specified by:
getEntityTypeNamein interfaceBaseFactory<LocationCapacityPK,LocationCapacity>
-
prepareStatement
-
getNextPK
-
getPKsFromResultSetAsSet
public Set<LocationCapacityPK> getPKsFromResultSetAsSet(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKsFromResultSetAsList
public List<LocationCapacityPK> getPKsFromResultSetAsList(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKFromResultSet
- Throws:
PersistenceDatabaseException
-
getValuesFromPKs
public List<LocationCapacityValue> getValuesFromPKs(Collection<LocationCapacityPK> pks) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getValueFromPK
public LocationCapacityValue getValueFromPK(LocationCapacityPK pk) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getValuesFromResultSet
public List<LocationCapacityValue> getValuesFromResultSet(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getValueFromResultSet
public LocationCapacityValue getValueFromResultSet(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromPKs
public List<LocationCapacity> getEntitiesFromPKs(EntityPermission entityPermission, Collection<LocationCapacityPK> pks) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromValue
public LocationCapacity getEntityFromValue(EntityPermission entityPermission, LocationCapacityValue value) -
getEntityFromCache
-
getEntityFromPK
public LocationCapacity getEntityFromPK(EntityPermission entityPermission, LocationCapacityPK pk) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKsFromQueryAsSet
public Set<LocationCapacityPK> getPKsFromQueryAsSet(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKsFromQueryAsList
public List<LocationCapacityPK> getPKsFromQueryAsList(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKFromQuery
public LocationCapacityPK getPKFromQuery(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<LocationCapacity> getEntitiesFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<LocationCapacity> getEntitiesFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<LocationCapacity> getEntitiesFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public LocationCapacity getEntityFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public LocationCapacity getEntityFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public LocationCapacity getEntityFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromResultSet
public List<LocationCapacity> getEntitiesFromResultSet(EntityPermission entityPermission, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromResultSet
public LocationCapacity getEntityFromResultSet(EntityPermission entityPermission, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
create
public LocationCapacity create(Location location, UnitOfMeasureType unitOfMeasureType, Long capacity, Long fromTime, Long thruTime) throws PersistenceDatabaseException, PersistenceNotNullException -
create
public LocationCapacity create(LocationPK locationPK, UnitOfMeasureTypePK unitOfMeasureTypePK, Long capacity, Long fromTime, Long thruTime) throws PersistenceDatabaseException, PersistenceNotNullException -
create
public void create(Collection<LocationCapacityValue> _values) throws PersistenceDatabaseException, PersistenceNotNullException -
store
- Specified by:
storein interfaceBaseFactory<LocationCapacityPK,LocationCapacity> - Throws:
PersistenceDatabaseException
-
store
- Specified by:
storein interfaceBaseFactory<LocationCapacityPK,LocationCapacity> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
removein interfaceBaseFactory<LocationCapacityPK,LocationCapacity> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
removein interfaceBaseFactory<LocationCapacityPK,LocationCapacity> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
removein interfaceBaseFactory<LocationCapacityPK,LocationCapacity> - Throws:
PersistenceDatabaseException
-
validPK
- Specified by:
validPKin interfaceBaseFactory<LocationCapacityPK,LocationCapacity> - Throws:
PersistenceDatabaseException
-