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