Class SearchResultFactory
java.lang.Object
com.echothree.model.data.search.server.factory.SearchResultFactory
- All Implemented Interfaces:
BaseFactory<SearchResultPK,
SearchResult>
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncreate
(SearchPK searchPK, EntityInstancePK entityInstancePK, Integer sortOrder) create
(Search search, EntityInstance entityInstance, Integer sortOrder) create
(Session session, SearchPK searchPK, EntityInstancePK entityInstancePK, Integer sortOrder) create
(Session session, Search search, EntityInstance entityInstance, Integer sortOrder) void
create
(Session session, Collection<SearchResultValue> _values) void
create
(Collection<SearchResultValue> _values) getEntitiesFromPKs
(EntityPermission entityPermission, Collection<SearchResultPK> pks) getEntitiesFromPKs
(Session session, EntityPermission entityPermission, Collection<SearchResultPK> 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, SearchResultPK pk) getEntityFromPK
(EntityPermission entityPermission, SearchResultPK pk) getEntityFromPK
(Session session, EntityPermission entityPermission, SearchResultPK 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, SearchResultValue value) getEntityFromValue
(Session session, EntityPermission entityPermission, SearchResultValue value) static SearchResultFactory
getPKFromQuery
(PreparedStatement ps, Object... params) getPKsFromQueryAsList
(PreparedStatement ps, Object... params) getPKsFromQueryAsSet
(PreparedStatement ps, Object... params) getValueFromPK
(Session session, SearchResultPK pk) getValueFromResultSet
(Session session, ResultSet rs) getValuesFromPKs
(Session session, Collection<SearchResultPK> pks) getValuesFromResultSet
(Session session, ResultSet rs) prepareStatement
(String query) void
remove
(Session session, SearchResultPK pk) void
remove
(Session session, SearchResult entity) void
remove
(Session session, Collection<SearchResultPK> pks) void
remove
(Collection<SearchResultPK> pks) void
store
(Session session, SearchResult entity) void
store
(Session session, Collection<SearchResult> entities) void
store
(Collection<SearchResult> entities) boolean
validPK
(Session session, SearchResultPK pk)
-
Field Details
-
TABLE_NAME
- See Also:
-
SRCHR_SEARCHRESULTID
- See Also:
-
SRCHR_SRCH_SEARCHID
- See Also:
-
SRCHR_ENI_ENTITYINSTANCEID
- See Also:
-
SRCHR_SORTORDER
- See Also:
-
-
Method Details
-
getInstance
-
getPKColumn
- Specified by:
getPKColumn
in interfaceBaseFactory<SearchResultPK,
SearchResult>
-
getAllColumns
- Specified by:
getAllColumns
in interfaceBaseFactory<SearchResultPK,
SearchResult>
-
getTableName
- Specified by:
getTableName
in interfaceBaseFactory<SearchResultPK,
SearchResult>
-
getComponentVendorName
- Specified by:
getComponentVendorName
in interfaceBaseFactory<SearchResultPK,
SearchResult>
-
getEntityTypeName
- Specified by:
getEntityTypeName
in interfaceBaseFactory<SearchResultPK,
SearchResult>
-
prepareStatement
-
getNextPK
-
getPKsFromResultSetAsSet
public Set<SearchResultPK> getPKsFromResultSetAsSet(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKsFromResultSetAsList
public List<SearchResultPK> getPKsFromResultSetAsList(ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKFromResultSet
- Throws:
PersistenceDatabaseException
-
getValuesFromPKs
public List<SearchResultValue> getValuesFromPKs(Session session, Collection<SearchResultPK> pks) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getValueFromPK
public SearchResultValue getValueFromPK(Session session, SearchResultPK pk) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getValuesFromResultSet
public List<SearchResultValue> getValuesFromResultSet(Session session, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getValueFromResultSet
public SearchResultValue getValueFromResultSet(Session session, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromPKs
public List<SearchResult> getEntitiesFromPKs(EntityPermission entityPermission, Collection<SearchResultPK> pks) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromPKs
public List<SearchResult> getEntitiesFromPKs(Session session, EntityPermission entityPermission, Collection<SearchResultPK> pks) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromValue
-
getEntityFromValue
public SearchResult getEntityFromValue(Session session, EntityPermission entityPermission, SearchResultValue value) -
getEntityFromPK
public SearchResult getEntityFromPK(EntityPermission entityPermission, SearchResultPK pk) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromCache
-
getEntityFromPK
public SearchResult getEntityFromPK(Session session, EntityPermission entityPermission, SearchResultPK pk) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKsFromQueryAsSet
public Set<SearchResultPK> getPKsFromQueryAsSet(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKsFromQueryAsList
public List<SearchResultPK> getPKsFromQueryAsList(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getPKFromQuery
public SearchResultPK getPKFromQuery(PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<SearchResult> getEntitiesFromQuery(Session session, EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<SearchResult> getEntitiesFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<SearchResult> getEntitiesFromQuery(Session session, EntityPermission entityPermission, Map<EntityPermission, String> queryMap) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<SearchResult> getEntitiesFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<SearchResult> getEntitiesFromQuery(EntityPermission entityPermission, PreparedStatement ps) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<SearchResult> getEntitiesFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromQuery
public List<SearchResult> getEntitiesFromQuery(Session session, EntityPermission entityPermission, PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public SearchResult getEntityFromQuery(Session session, EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public SearchResult getEntityFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap, Object... params) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public SearchResult getEntityFromQuery(Session session, EntityPermission entityPermission, Map<EntityPermission, String> queryMap) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public SearchResult getEntityFromQuery(EntityPermission entityPermission, Map<EntityPermission, String> queryMap) throws PersistenceDatabaseException- Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public SearchResult getEntityFromQuery(EntityPermission entityPermission, PreparedStatement ps) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public SearchResult getEntityFromQuery(EntityPermission entityPermission, PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromQuery
public SearchResult getEntityFromQuery(Session session, EntityPermission entityPermission, PreparedStatement ps, Object... params) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromResultSet
public List<SearchResult> getEntitiesFromResultSet(EntityPermission entityPermission, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntitiesFromResultSet
public List<SearchResult> getEntitiesFromResultSet(Session session, EntityPermission entityPermission, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromResultSet
public SearchResult getEntityFromResultSet(EntityPermission entityPermission, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
getEntityFromResultSet
public SearchResult getEntityFromResultSet(Session session, EntityPermission entityPermission, ResultSet rs) throws PersistenceDatabaseException - Throws:
PersistenceDatabaseException
-
create
public SearchResult create(Session session, Search search, EntityInstance entityInstance, Integer sortOrder) throws PersistenceDatabaseException, PersistenceNotNullException -
create
public SearchResult create(Search search, EntityInstance entityInstance, Integer sortOrder) throws PersistenceDatabaseException, PersistenceNotNullException -
create
public SearchResult create(Session session, SearchPK searchPK, EntityInstancePK entityInstancePK, Integer sortOrder) throws PersistenceDatabaseException, PersistenceNotNullException -
create
public SearchResult create(SearchPK searchPK, EntityInstancePK entityInstancePK, Integer sortOrder) throws PersistenceDatabaseException, PersistenceNotNullException -
create
public void create(Session session, Collection<SearchResultValue> _values) throws PersistenceDatabaseException, PersistenceNotNullException -
create
public void create(Collection<SearchResultValue> _values) throws PersistenceDatabaseException, PersistenceNotNullException -
store
- Specified by:
store
in interfaceBaseFactory<SearchResultPK,
SearchResult> - Throws:
PersistenceDatabaseException
-
store
public void store(Session session, Collection<SearchResult> entities) throws PersistenceDatabaseException - Specified by:
store
in interfaceBaseFactory<SearchResultPK,
SearchResult> - Throws:
PersistenceDatabaseException
-
store
- Specified by:
store
in interfaceBaseFactory<SearchResultPK,
SearchResult> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
remove
in interfaceBaseFactory<SearchResultPK,
SearchResult> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
remove
in interfaceBaseFactory<SearchResultPK,
SearchResult> - Throws:
PersistenceDatabaseException
-
remove
public void remove(Session session, Collection<SearchResultPK> pks) throws PersistenceDatabaseException - Specified by:
remove
in interfaceBaseFactory<SearchResultPK,
SearchResult> - Throws:
PersistenceDatabaseException
-
remove
- Specified by:
remove
in interfaceBaseFactory<SearchResultPK,
SearchResult> - Throws:
PersistenceDatabaseException
-
validPK
- Specified by:
validPK
in interfaceBaseFactory<SearchResultPK,
SearchResult> - Throws:
PersistenceDatabaseException
-