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