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