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