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