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