Class SubscriptionDetailFactory
java.lang.Object
com.echothree.model.data.subscription.server.factory.SubscriptionDetailFactory
- All Implemented Interfaces:
BaseFactory<SubscriptionDetailPK,SubscriptionDetail>
@ApplicationScoped
public class SubscriptionDetailFactory
extends Object
implements BaseFactory<SubscriptionDetailPK,SubscriptionDetail>
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a new instance of SubscriptionDetailFactory -
Method Summary
Modifier and TypeMethodDescriptioncreate(SubscriptionPK subscriptionPK, String subscriptionName, SubscriptionTypePK subscriptionTypePK, PartyPK partyPK, Long startTime, Long endTime, Long fromTime, Long thruTime) create(Subscription subscription, String subscriptionName, SubscriptionType subscriptionType, Party party, Long startTime, Long endTime, Long fromTime, Long thruTime) voidcreate(Collection<SubscriptionDetailValue> _values) getEntitiesFromPKs(EntityPermission entityPermission, Collection<SubscriptionDetailPK> 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, SubscriptionDetailPK 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, SubscriptionDetailValue value) static SubscriptionDetailFactorygetPKFromQuery(PreparedStatement ps, Object... params) getPKsFromQueryAsList(PreparedStatement ps, Object... params) getPKsFromQueryAsSet(PreparedStatement ps, Object... params) prepareStatement(String query) voidvoidremove(SubscriptionDetail entity) voidvoidstore(SubscriptionDetail entity) voidstore(Collection<SubscriptionDetail> entities) boolean
-
Field Details
-
TABLE_NAME
- See Also:
-
SUBSCRDT_SUBSCRIPTIONDETAILID
- See Also:
-
SUBSCRDT_SUBSCR_SUBSCRIPTIONID
- See Also:
-
SUBSCRDT_SUBSCRIPTIONNAME
- See Also:
-
SUBSCRDT_SUBSCRTYP_SUBSCRIPTIONTYPEID
- See Also:
-
SUBSCRDT_PAR_PARTYID
- See Also:
-
SUBSCRDT_STARTTIME
- See Also:
-
SUBSCRDT_ENDTIME
- See Also:
-
SUBSCRDT_FROMTIME
- See Also:
-
SUBSCRDT_THRUTIME
- See Also:
-
-
Constructor Details
-
SubscriptionDetailFactory
protected SubscriptionDetailFactory()Creates a new instance of SubscriptionDetailFactory
-
-
Method Details
-
getInstance
-
getPKColumn
- Specified by:
getPKColumnin interfaceBaseFactory<SubscriptionDetailPK,SubscriptionDetail>
-
getAllColumns
- Specified by:
getAllColumnsin interfaceBaseFactory<SubscriptionDetailPK,SubscriptionDetail>
-
getTableName
- Specified by:
getTableNamein interfaceBaseFactory<SubscriptionDetailPK,SubscriptionDetail>
-
getComponentVendorName
- Specified by:
getComponentVendorNamein interfaceBaseFactory<SubscriptionDetailPK,SubscriptionDetail>
-
getEntityTypeName
- Specified by:
getEntityTypeNamein interfaceBaseFactory<SubscriptionDetailPK,SubscriptionDetail>
-
prepareStatement
-
getNextPK
-
getPKsFromResultSetAsSet
public Set<SubscriptionDetailPK> getPKsFromResultSetAsSet(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKsFromResultSetAsList
public List<SubscriptionDetailPK> getPKsFromResultSetAsList(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKFromResultSet
- Throws:
PersistenceDatabaseException
-
getValuesFromPKs
public List<SubscriptionDetailValue> getValuesFromPKs(Collection<SubscriptionDetailPK> pks) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getValueFromPK
public SubscriptionDetailValue getValueFromPK(SubscriptionDetailPK pk) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getValuesFromResultSet
public List<SubscriptionDetailValue> getValuesFromResultSet(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getValueFromResultSet
public SubscriptionDetailValue getValueFromResultSet(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromPKs
public List<SubscriptionDetail> getEntitiesFromPKs(EntityPermission entityPermission, Collection<SubscriptionDetailPK> pks) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromValue
public SubscriptionDetail getEntityFromValue(EntityPermission entityPermission, SubscriptionDetailValue value) -
getEntityFromCache
-
getEntityFromPK
public SubscriptionDetail getEntityFromPK(EntityPermission entityPermission, SubscriptionDetailPK pk) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKsFromQueryAsSet
public Set<SubscriptionDetailPK> getPKsFromQueryAsSet(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKsFromQueryAsList
public List<SubscriptionDetailPK> getPKsFromQueryAsList(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKFromQuery
public SubscriptionDetailPK getPKFromQuery(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<SubscriptionDetail> getEntitiesFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<SubscriptionDetail> getEntitiesFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<SubscriptionDetail> getEntitiesFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public SubscriptionDetail getEntityFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public SubscriptionDetail getEntityFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public SubscriptionDetail getEntityFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromResultSet
public List<SubscriptionDetail> getEntitiesFromResultSet(EntityPermission entityPermission, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromResultSet
public SubscriptionDetail getEntityFromResultSet(EntityPermission entityPermission, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
create
public SubscriptionDetail create(Subscription subscription, String subscriptionName, SubscriptionType subscriptionType, Party party, Long startTime, Long endTime, Long fromTime, Long thruTime) throws PersistenceDatabaseException, PersistenceNotNullException -
create
public SubscriptionDetail create(SubscriptionPK subscriptionPK, String subscriptionName, SubscriptionTypePK subscriptionTypePK, PartyPK partyPK, Long startTime, Long endTime, Long fromTime, Long thruTime) throws PersistenceDatabaseException, PersistenceNotNullException -
create
public void create(Collection<SubscriptionDetailValue> _values) throws PersistenceDatabaseException, PersistenceNotNullException -
store
- Specified by:
storein interfaceBaseFactory<SubscriptionDetailPK,SubscriptionDetail> - Throws:
PersistenceDatabaseException
-
store
- Specified by:
storein interfaceBaseFactory<SubscriptionDetailPK,SubscriptionDetail> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
removein interfaceBaseFactory<SubscriptionDetailPK,SubscriptionDetail> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
removein interfaceBaseFactory<SubscriptionDetailPK,SubscriptionDetail> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
removein interfaceBaseFactory<SubscriptionDetailPK,SubscriptionDetail> - Throws:
PersistenceDatabaseException
-
validPK
- Specified by:
validPKin interfaceBaseFactory<SubscriptionDetailPK,SubscriptionDetail> - Throws:
PersistenceDatabaseException
-