Class CommentBlobFactory
java.lang.Object
com.echothree.model.data.comment.server.factory.CommentBlobFactory
- All Implemented Interfaces:
BaseFactory<CommentBlobPK,CommentBlob>
@ApplicationScoped
public class CommentBlobFactory
extends Object
implements BaseFactory<CommentBlobPK,CommentBlob>
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a new instance of CommentBlobFactory -
Method Summary
Modifier and TypeMethodDescriptionvoidcreate(Collection<CommentBlobValue> _values) getEntitiesFromPKs(EntityPermission entityPermission, Collection<CommentBlobPK> 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, CommentBlobPK 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, CommentBlobValue value) static CommentBlobFactorygetPKFromQuery(PreparedStatement ps, Object... params) getPKsFromQueryAsList(PreparedStatement ps, Object... params) getPKsFromQueryAsSet(PreparedStatement ps, Object... params) prepareStatement(String query) voidremove(CommentBlobPK pk) voidremove(CommentBlob entity) voidremove(Collection<CommentBlobPK> pks) voidstore(CommentBlob entity) voidstore(Collection<CommentBlob> entities) booleanvalidPK(CommentBlobPK pk)
-
Field Details
-
TABLE_NAME
- See Also:
-
CMNTB_COMMENTBLOBID
- See Also:
-
CMNTB_CMNT_COMMENTID
- See Also:
-
CMNTB_BLOB
- See Also:
-
CMNTB_FROMTIME
- See Also:
-
CMNTB_THRUTIME
- See Also:
-
-
Constructor Details
-
CommentBlobFactory
protected CommentBlobFactory()Creates a new instance of CommentBlobFactory
-
-
Method Details
-
getInstance
-
getPKColumn
- Specified by:
getPKColumnin interfaceBaseFactory<CommentBlobPK,CommentBlob>
-
getAllColumns
- Specified by:
getAllColumnsin interfaceBaseFactory<CommentBlobPK,CommentBlob>
-
getTableName
- Specified by:
getTableNamein interfaceBaseFactory<CommentBlobPK,CommentBlob>
-
getComponentVendorName
- Specified by:
getComponentVendorNamein interfaceBaseFactory<CommentBlobPK,CommentBlob>
-
getEntityTypeName
- Specified by:
getEntityTypeNamein interfaceBaseFactory<CommentBlobPK,CommentBlob>
-
prepareStatement
-
getNextPK
-
getPKsFromResultSetAsSet
public Set<CommentBlobPK> getPKsFromResultSetAsSet(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKsFromResultSetAsList
public List<CommentBlobPK> getPKsFromResultSetAsList(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKFromResultSet
- Throws:
PersistenceDatabaseException
-
getValuesFromPKs
public List<CommentBlobValue> getValuesFromPKs(Collection<CommentBlobPK> pks) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getValueFromPK
- Throws:
PersistenceDatabaseException
-
getValuesFromResultSet
public List<CommentBlobValue> getValuesFromResultSet(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getValueFromResultSet
- Throws:
PersistenceDatabaseException
-
getEntitiesFromPKs
public List<CommentBlob> getEntitiesFromPKs(EntityPermission entityPermission, Collection<CommentBlobPK> pks) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromValue
-
getEntityFromCache
-
getEntityFromPK
public CommentBlob getEntityFromPK(EntityPermission entityPermission, CommentBlobPK pk) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKsFromQueryAsSet
public Set<CommentBlobPK> getPKsFromQueryAsSet(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKsFromQueryAsList
public List<CommentBlobPK> getPKsFromQueryAsList(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKFromQuery
public CommentBlobPK getPKFromQuery(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<CommentBlob> getEntitiesFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<CommentBlob> getEntitiesFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<CommentBlob> getEntitiesFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public CommentBlob getEntityFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public CommentBlob getEntityFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public CommentBlob getEntityFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromResultSet
public List<CommentBlob> getEntitiesFromResultSet(EntityPermission entityPermission, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromResultSet
public CommentBlob getEntityFromResultSet(EntityPermission entityPermission, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
create
public CommentBlob create(Comment comment, ByteArray blob, Long fromTime, Long thruTime) throws PersistenceDatabaseException, PersistenceNotNullException -
create
public CommentBlob create(CommentPK commentPK, ByteArray blob, Long fromTime, Long thruTime) throws PersistenceDatabaseException, PersistenceNotNullException -
create
public void create(Collection<CommentBlobValue> _values) throws PersistenceDatabaseException, PersistenceNotNullException -
store
- Specified by:
storein interfaceBaseFactory<CommentBlobPK,CommentBlob> - Throws:
PersistenceDatabaseException
-
store
- Specified by:
storein interfaceBaseFactory<CommentBlobPK,CommentBlob> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
removein interfaceBaseFactory<CommentBlobPK,CommentBlob> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
removein interfaceBaseFactory<CommentBlobPK,CommentBlob> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
removein interfaceBaseFactory<CommentBlobPK,CommentBlob> - Throws:
PersistenceDatabaseException
-
validPK
- Specified by:
validPKin interfaceBaseFactory<CommentBlobPK,CommentBlob> - Throws:
PersistenceDatabaseException
-