Class IndexFieldFactory
java.lang.Object
com.echothree.model.data.index.server.factory.IndexFieldFactory
- All Implemented Interfaces:
BaseFactory<IndexFieldPK,
IndexField>
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncreate()
create
(IndexFieldDetailPK activeDetailPK, IndexFieldDetailPK lastDetailPK) create
(IndexFieldDetail activeDetail, IndexFieldDetail lastDetail) create
(Session session, IndexFieldDetailPK activeDetailPK, IndexFieldDetailPK lastDetailPK) create
(Session session, IndexFieldDetail activeDetail, IndexFieldDetail lastDetail) void
create
(Session session, Collection<IndexFieldValue> _values) void
create
(Collection<IndexFieldValue> _values) getEntitiesFromPKs
(EntityPermission entityPermission, Collection<IndexFieldPK> pks) getEntitiesFromPKs
(Session session, EntityPermission entityPermission, Collection<IndexFieldPK> pks) getEntitiesFromQuery
(EntityPermission entityPermission, PreparedStatement ps) getEntitiesFromQuery
(EntityPermission entityPermission, PreparedStatement ps, Object... params) getEntitiesFromQuery
(EntityPermission entityPermission, Map<EntityPermission, String> queryMap) getEntitiesFromQuery
(EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) getEntitiesFromQuery
(Session session, EntityPermission entityPermission, PreparedStatement ps, Object... params) getEntitiesFromQuery
(Session session, EntityPermission entityPermission, Map<EntityPermission, String> queryMap) getEntitiesFromQuery
(Session session, EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) getEntitiesFromResultSet
(EntityPermission entityPermission, ResultSet rs) getEntitiesFromResultSet
(Session session, EntityPermission entityPermission, ResultSet rs) getEntityFromCache
(Session session, IndexFieldPK pk) getEntityFromPK
(EntityPermission entityPermission, IndexFieldPK pk) getEntityFromPK
(Session session, EntityPermission entityPermission, IndexFieldPK pk) getEntityFromQuery
(EntityPermission entityPermission, PreparedStatement ps) getEntityFromQuery
(EntityPermission entityPermission, PreparedStatement ps, Object... params) getEntityFromQuery
(EntityPermission entityPermission, Map<EntityPermission, String> queryMap) getEntityFromQuery
(EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) getEntityFromQuery
(Session session, EntityPermission entityPermission, PreparedStatement ps, Object... params) getEntityFromQuery
(Session session, EntityPermission entityPermission, Map<EntityPermission, String> queryMap) getEntityFromQuery
(Session session, EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) getEntityFromResultSet
(EntityPermission entityPermission, ResultSet rs) getEntityFromResultSet
(Session session, EntityPermission entityPermission, ResultSet rs) getEntityFromValue
(EntityPermission entityPermission, IndexFieldValue value) getEntityFromValue
(Session session, EntityPermission entityPermission, IndexFieldValue value) static IndexFieldFactory
getPKFromQuery
(PreparedStatement ps, Object... params) getPKsFromQueryAsList
(PreparedStatement ps, Object... params) getPKsFromQueryAsSet
(PreparedStatement ps, Object... params) getValueFromPK
(Session session, IndexFieldPK pk) getValueFromResultSet
(Session session, ResultSet rs) getValuesFromPKs
(Session session, Collection<IndexFieldPK> pks) getValuesFromResultSet
(Session session, ResultSet rs) prepareStatement
(String query) void
remove
(Session session, IndexFieldPK pk) void
remove
(Session session, IndexField entity) void
remove
(Session session, Collection<IndexFieldPK> pks) void
remove
(Collection<IndexFieldPK> pks) void
store
(Session session, IndexField entity) void
store
(Session session, Collection<IndexField> entities) void
store
(Collection<IndexField> entities) boolean
validPK
(Session session, IndexFieldPK pk)
-
Field Details
-
TABLE_NAME
- See Also:
-
IDXFLD_INDEXFIELDID
- See Also:
-
IDXFLD_ACTIVEDETAILID
- See Also:
-
IDXFLD_LASTDETAILID
- See Also:
-
-
Method Details
-
getInstance
-
getPKColumn
- Specified by:
getPKColumn
in interfaceBaseFactory<IndexFieldPK,
IndexField>
-
getAllColumns
- Specified by:
getAllColumns
in interfaceBaseFactory<IndexFieldPK,
IndexField>
-
getTableName
- Specified by:
getTableName
in interfaceBaseFactory<IndexFieldPK,
IndexField>
-
getComponentVendorName
- Specified by:
getComponentVendorName
in interfaceBaseFactory<IndexFieldPK,
IndexField>
-
getEntityTypeName
- Specified by:
getEntityTypeName
in 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(Session session, Collection<IndexFieldPK> pks) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getValueFromPK
public IndexFieldValue getValueFromPK(Session session, IndexFieldPK pk) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getValuesFromResultSet
public List<IndexFieldValue> getValuesFromResultSet(Session session, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getValueFromResultSet
public IndexFieldValue getValueFromResultSet(Session session, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromPKs
public List<IndexField> getEntitiesFromPKs(EntityPermission entityPermission, Collection<IndexFieldPK> pks) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromPKs
public List<IndexField> getEntitiesFromPKs(Session session, EntityPermission entityPermission, Collection<IndexFieldPK> pks) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromValue
-
getEntityFromValue
public IndexField getEntityFromValue(Session session, EntityPermission entityPermission, IndexFieldValue value) -
getEntityFromPK
public IndexField getEntityFromPK(EntityPermission entityPermission, IndexFieldPK pk) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromCache
-
getEntityFromPK
public IndexField getEntityFromPK(Session session, 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(Session session, EntityPermission entityPermission, Map<EntityPermission, String> queryMap, 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(Session session, EntityPermission entityPermission, Map<EntityPermission, String> queryMap) 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) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<IndexField> getEntitiesFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<IndexField> getEntitiesFromQuery(Session session, EntityPermission entityPermission, PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public IndexField getEntityFromQuery(Session session, EntityPermission entityPermission, Map<EntityPermission, String> queryMap, 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(Session session, EntityPermission entityPermission, Map<EntityPermission, String> queryMap) 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) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public IndexField getEntityFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public IndexField getEntityFromQuery(Session session, EntityPermission entityPermission, PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromResultSet
public List<IndexField> getEntitiesFromResultSet(EntityPermission entityPermission, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromResultSet
public List<IndexField> getEntitiesFromResultSet(Session session, EntityPermission entityPermission, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromResultSet
public IndexField getEntityFromResultSet(EntityPermission entityPermission, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromResultSet
public IndexField getEntityFromResultSet(Session session, EntityPermission entityPermission, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
create
public IndexField create(Session session) throws PersistenceDatabaseException, PersistenceNotNullException -
create
-
create
public IndexField create(Session session, IndexFieldDetail activeDetail, IndexFieldDetail lastDetail) throws PersistenceDatabaseException, PersistenceNotNullException -
create
public IndexField create(IndexFieldDetail activeDetail, IndexFieldDetail lastDetail) throws PersistenceDatabaseException, PersistenceNotNullException -
create
public IndexField create(Session session, IndexFieldDetailPK activeDetailPK, IndexFieldDetailPK lastDetailPK) throws PersistenceDatabaseException, PersistenceNotNullException -
create
public IndexField create(IndexFieldDetailPK activeDetailPK, IndexFieldDetailPK lastDetailPK) throws PersistenceDatabaseException, PersistenceNotNullException -
create
public void create(Session session, Collection<IndexFieldValue> _values) throws PersistenceDatabaseException, PersistenceNotNullException -
create
public void create(Collection<IndexFieldValue> _values) throws PersistenceDatabaseException, PersistenceNotNullException -
store
- Specified by:
store
in interfaceBaseFactory<IndexFieldPK,
IndexField> - Throws:
PersistenceDatabaseException
-
store
public void store(Session session, Collection<IndexField> entities) throws PersistenceDatabaseException - Specified by:
store
in interfaceBaseFactory<IndexFieldPK,
IndexField> - Throws:
PersistenceDatabaseException
-
store
- Specified by:
store
in interfaceBaseFactory<IndexFieldPK,
IndexField> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
remove
in interfaceBaseFactory<IndexFieldPK,
IndexField> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
remove
in interfaceBaseFactory<IndexFieldPK,
IndexField> - Throws:
PersistenceDatabaseException
-
remove
public void remove(Session session, Collection<IndexFieldPK> pks) throws PersistenceDatabaseException - Specified by:
remove
in interfaceBaseFactory<IndexFieldPK,
IndexField> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
remove
in interfaceBaseFactory<IndexFieldPK,
IndexField> - Throws:
PersistenceDatabaseException
-
validPK
- Specified by:
validPK
in interfaceBaseFactory<IndexFieldPK,
IndexField> - Throws:
PersistenceDatabaseException
-