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) create(Session session, SubscriptionDetailPK activeDetailPK, SubscriptionDetailPK lastDetailPK) create(Session session, SubscriptionDetail activeDetail, SubscriptionDetail lastDetail) voidcreate(Session session, Collection<SubscriptionValue> _values) voidcreate(Collection<SubscriptionValue> _values) getEntitiesFromPKs(EntityPermission entityPermission, Collection<SubscriptionPK> pks) getEntitiesFromPKs(Session session, EntityPermission entityPermission, Collection<SubscriptionPK> pks) getEntitiesFromQuery(EntityPermission entityPermission, PreparedStatement ps) getEntitiesFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) getEntitiesFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap) getEntitiesFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) getEntitiesFromQuery(Session session, EntityPermission entityPermission, PreparedStatement ps, Object... params) getEntitiesFromQuery(Session session, EntityPermission entityPermission, Map<EntityPermission, String> queryMap) getEntitiesFromQuery(Session session, EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) getEntitiesFromResultSet(EntityPermission entityPermission, ResultSet rs) getEntitiesFromResultSet(Session session, EntityPermission entityPermission, ResultSet rs) getEntityFromCache(Session session, SubscriptionPK pk) getEntityFromPK(EntityPermission entityPermission, SubscriptionPK pk) getEntityFromPK(Session session, EntityPermission entityPermission, SubscriptionPK pk) getEntityFromQuery(EntityPermission entityPermission, PreparedStatement ps) getEntityFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) getEntityFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap) getEntityFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) getEntityFromQuery(Session session, EntityPermission entityPermission, PreparedStatement ps, Object... params) getEntityFromQuery(Session session, EntityPermission entityPermission, Map<EntityPermission, String> queryMap) getEntityFromQuery(Session session, EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) getEntityFromResultSet(EntityPermission entityPermission, ResultSet rs) getEntityFromResultSet(Session session, EntityPermission entityPermission, ResultSet rs) getEntityFromValue(EntityPermission entityPermission, SubscriptionValue value) getEntityFromValue(Session session, EntityPermission entityPermission, SubscriptionValue value) static SubscriptionFactorygetPKFromQuery(PreparedStatement ps, Object... params) getPKsFromQueryAsList(PreparedStatement ps, Object... params) getPKsFromQueryAsSet(PreparedStatement ps, Object... params) getValueFromPK(Session session, SubscriptionPK pk) getValueFromResultSet(Session session, ResultSet rs) getValuesFromPKs(Session session, Collection<SubscriptionPK> pks) getValuesFromResultSet(Session session, ResultSet rs) prepareStatement(String query) voidremove(Session session, SubscriptionPK pk) voidremove(Session session, Subscription entity) voidremove(Session session, Collection<SubscriptionPK> pks) voidremove(Collection<SubscriptionPK> pks) voidstore(Session session, Subscription entity) voidstore(Session session, Collection<Subscription> entities) voidstore(Collection<Subscription> entities) booleanvalidPK(Session session, SubscriptionPK pk)
-
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(Session session, Collection<SubscriptionPK> pks) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getValueFromPK
public SubscriptionValue getValueFromPK(Session session, SubscriptionPK pk) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getValuesFromResultSet
public List<SubscriptionValue> getValuesFromResultSet(Session session, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getValueFromResultSet
public SubscriptionValue getValueFromResultSet(Session session, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromPKs
public List<Subscription> getEntitiesFromPKs(EntityPermission entityPermission, Collection<SubscriptionPK> pks) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromPKs
public List<Subscription> getEntitiesFromPKs(Session session, EntityPermission entityPermission, Collection<SubscriptionPK> pks) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromValue
-
getEntityFromValue
public Subscription getEntityFromValue(Session session, EntityPermission entityPermission, SubscriptionValue value) -
getEntityFromPK
public Subscription getEntityFromPK(EntityPermission entityPermission, SubscriptionPK pk) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromCache
-
getEntityFromPK
public Subscription getEntityFromPK(Session session, 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(Session session, EntityPermission entityPermission, Map<EntityPermission, String> queryMap, 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(Session session, EntityPermission entityPermission, Map<EntityPermission, String> queryMap) 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) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<Subscription> getEntitiesFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<Subscription> getEntitiesFromQuery(Session session, EntityPermission entityPermission, PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public Subscription getEntityFromQuery(Session session, EntityPermission entityPermission, Map<EntityPermission, String> queryMap, 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(Session session, EntityPermission entityPermission, Map<EntityPermission, String> queryMap) 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) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public Subscription getEntityFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public Subscription getEntityFromQuery(Session session, EntityPermission entityPermission, PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromResultSet
public List<Subscription> getEntitiesFromResultSet(EntityPermission entityPermission, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromResultSet
public List<Subscription> getEntitiesFromResultSet(Session session, EntityPermission entityPermission, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromResultSet
public Subscription getEntityFromResultSet(EntityPermission entityPermission, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromResultSet
public Subscription getEntityFromResultSet(Session session, EntityPermission entityPermission, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
create
public Subscription create(Session session) throws PersistenceDatabaseException, PersistenceNotNullException -
create
-
create
public Subscription create(Session session, SubscriptionDetail activeDetail, SubscriptionDetail lastDetail) throws PersistenceDatabaseException, PersistenceNotNullException -
create
public Subscription create(SubscriptionDetail activeDetail, SubscriptionDetail lastDetail) throws PersistenceDatabaseException, PersistenceNotNullException -
create
public Subscription create(Session session, SubscriptionDetailPK activeDetailPK, SubscriptionDetailPK lastDetailPK) throws PersistenceDatabaseException, PersistenceNotNullException -
create
public Subscription create(SubscriptionDetailPK activeDetailPK, SubscriptionDetailPK lastDetailPK) throws PersistenceDatabaseException, PersistenceNotNullException -
create
public void create(Session session, Collection<SubscriptionValue> _values) throws PersistenceDatabaseException, PersistenceNotNullException -
create
public void create(Collection<SubscriptionValue> _values) throws PersistenceDatabaseException, PersistenceNotNullException -
store
- Specified by:
storein interfaceBaseFactory<SubscriptionPK,Subscription> - Throws:
PersistenceDatabaseException
-
store
public void store(Session session, Collection<Subscription> entities) throws PersistenceDatabaseException - 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
public void remove(Session session, Collection<SubscriptionPK> pks) throws PersistenceDatabaseException - 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
-