Class IndexDescriptionFactory
java.lang.Object
com.echothree.model.data.index.server.factory.IndexDescriptionFactory
- All Implemented Interfaces:
BaseFactory<IndexDescriptionPK,IndexDescription>
@ApplicationScoped
public class IndexDescriptionFactory
extends Object
implements BaseFactory<IndexDescriptionPK,IndexDescription>
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a new instance of IndexDescriptionFactory -
Method Summary
Modifier and TypeMethodDescriptionvoidcreate(Collection<IndexDescriptionValue> _values) getEntitiesFromPKs(EntityPermission entityPermission, Collection<IndexDescriptionPK> 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, IndexDescriptionPK 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, IndexDescriptionValue value) static IndexDescriptionFactorygetPKFromQuery(PreparedStatement ps, Object... params) getPKsFromQueryAsList(PreparedStatement ps, Object... params) getPKsFromQueryAsSet(PreparedStatement ps, Object... params) prepareStatement(String query) voidvoidremove(IndexDescription entity) voidvoidstore(IndexDescription entity) voidstore(Collection<IndexDescription> entities) boolean
-
Field Details
-
TABLE_NAME
- See Also:
-
IDXD_INDEXDESCRIPTIONID
- See Also:
-
IDXD_IDX_INDEXID
- See Also:
-
IDXD_LANG_LANGUAGEID
- See Also:
-
IDXD_DESCRIPTION
- See Also:
-
IDXD_FROMTIME
- See Also:
-
IDXD_THRUTIME
- See Also:
-
-
Constructor Details
-
IndexDescriptionFactory
protected IndexDescriptionFactory()Creates a new instance of IndexDescriptionFactory
-
-
Method Details
-
getInstance
-
getPKColumn
- Specified by:
getPKColumnin interfaceBaseFactory<IndexDescriptionPK,IndexDescription>
-
getAllColumns
- Specified by:
getAllColumnsin interfaceBaseFactory<IndexDescriptionPK,IndexDescription>
-
getTableName
- Specified by:
getTableNamein interfaceBaseFactory<IndexDescriptionPK,IndexDescription>
-
getComponentVendorName
- Specified by:
getComponentVendorNamein interfaceBaseFactory<IndexDescriptionPK,IndexDescription>
-
getEntityTypeName
- Specified by:
getEntityTypeNamein interfaceBaseFactory<IndexDescriptionPK,IndexDescription>
-
prepareStatement
-
getNextPK
-
getPKsFromResultSetAsSet
public Set<IndexDescriptionPK> getPKsFromResultSetAsSet(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKsFromResultSetAsList
public List<IndexDescriptionPK> getPKsFromResultSetAsList(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKFromResultSet
- Throws:
PersistenceDatabaseException
-
getValuesFromPKs
public List<IndexDescriptionValue> getValuesFromPKs(Collection<IndexDescriptionPK> pks) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getValueFromPK
public IndexDescriptionValue getValueFromPK(IndexDescriptionPK pk) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getValuesFromResultSet
public List<IndexDescriptionValue> getValuesFromResultSet(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getValueFromResultSet
public IndexDescriptionValue getValueFromResultSet(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromPKs
public List<IndexDescription> getEntitiesFromPKs(EntityPermission entityPermission, Collection<IndexDescriptionPK> pks) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromValue
public IndexDescription getEntityFromValue(EntityPermission entityPermission, IndexDescriptionValue value) -
getEntityFromCache
-
getEntityFromPK
public IndexDescription getEntityFromPK(EntityPermission entityPermission, IndexDescriptionPK pk) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKsFromQueryAsSet
public Set<IndexDescriptionPK> getPKsFromQueryAsSet(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKsFromQueryAsList
public List<IndexDescriptionPK> getPKsFromQueryAsList(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKFromQuery
public IndexDescriptionPK getPKFromQuery(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<IndexDescription> getEntitiesFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<IndexDescription> getEntitiesFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<IndexDescription> getEntitiesFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public IndexDescription getEntityFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public IndexDescription getEntityFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public IndexDescription getEntityFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromResultSet
public List<IndexDescription> getEntitiesFromResultSet(EntityPermission entityPermission, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromResultSet
public IndexDescription getEntityFromResultSet(EntityPermission entityPermission, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
create
public IndexDescription create(Index index, Language language, String description, Long fromTime, Long thruTime) throws PersistenceDatabaseException, PersistenceNotNullException -
create
public IndexDescription create(IndexPK indexPK, LanguagePK languagePK, String description, Long fromTime, Long thruTime) throws PersistenceDatabaseException, PersistenceNotNullException -
create
public void create(Collection<IndexDescriptionValue> _values) throws PersistenceDatabaseException, PersistenceNotNullException -
store
- Specified by:
storein interfaceBaseFactory<IndexDescriptionPK,IndexDescription> - Throws:
PersistenceDatabaseException
-
store
- Specified by:
storein interfaceBaseFactory<IndexDescriptionPK,IndexDescription> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
removein interfaceBaseFactory<IndexDescriptionPK,IndexDescription> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
removein interfaceBaseFactory<IndexDescriptionPK,IndexDescription> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
removein interfaceBaseFactory<IndexDescriptionPK,IndexDescription> - Throws:
PersistenceDatabaseException
-
validPK
- Specified by:
validPKin interfaceBaseFactory<IndexDescriptionPK,IndexDescription> - Throws:
PersistenceDatabaseException
-