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