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