Class HSqlDbAgencySearchesHandler
- java.lang.Object
-
- com.openindex.openestate.impl.db.DbHandlerImpl
-
- com.openindex.openestate.impl.db.DbSearchesHandlerImpl
-
- com.openindex.openestate.impl.db.hsql.HSqlDbSearchesHandler
-
- com.openindex.openestate.tool.agency.db.hsql.HSqlDbAgencySearchesHandler
-
- All Implemented Interfaces:
DbHandler,DbSearchesHandler,DbAgencySearchesHandler
public class HSqlDbAgencySearchesHandler extends HSqlDbSearchesHandler implements DbAgencySearchesHandler
HSqlDbAgencySearchesHandler.- Author:
- Andreas Rudolph
-
-
Field Summary
Fields Modifier and Type Field Description static StringFIELD_SEARCH_OBJECT_STATUSstatic StringFIELD_SEARCH_TYPEstatic StringPROC_SAVE_SEARCHES_ADDONstatic StringTABLE_AGENCY_SEARCHES-
Fields inherited from class com.openindex.openestate.impl.db.hsql.HSqlDbSearchesHandler
FIELD_ATTRIB_EQUALS, FIELD_ATTRIB_EQUALS_CASE, FIELD_ATTRIB_EQUALS_LIKE, FIELD_ATTRIB_MATCHES, FIELD_ATTRIB_NAME, FIELD_ATTRIB_NUMERIC_MAX, FIELD_ATTRIB_NUMERIC_MIN, FIELD_ATTRIB_NUMERIC_UNIT, FIELD_ATTRIB_ORDER, FIELD_ATTRIB_TIME_BEGIN, FIELD_ATTRIB_TIME_END, FIELD_PARAM_KEY, FIELD_PARAM_VALUE, FIELD_SEARCH_ENABLED, FIELD_SEARCH_ID, FIELD_SEARCH_NAME, FIELD_SEARCH_NOTES, FIELD_VALUE_EQUALS, FIELD_VALUE_EQUALS_CASE, FIELD_VALUE_EQUALS_LIKE, FIELD_VALUE_ORDER, FIELD_VALUE_TYPE, PROC_REMOVE_SEARCHES, PROC_REMOVE_SEARCHES_ATTRIBS, PROC_REMOVE_SEARCHES_PARAMS, PROC_REMOVE_SEARCHES_VALUES, PROC_SAVE_SEARCHES, PROC_SAVE_SEARCHES_ATTRIBS, PROC_SAVE_SEARCHES_PARAMS, PROC_SAVE_SEARCHES_VALUES, PROC_SET_SEARCHES_ENABLED, VIEW_SEARCHES, VIEW_SEARCHES_ATTRIBS, VIEW_SEARCHES_PARAMS, VIEW_SEARCHES_VALUES
-
-
Constructor Summary
Constructors Constructor Description HSqlDbAgencySearchesHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DbSearchbuildSearch(ResultSet result)protected DbSearchcreateSearch()DbSearch[]getSearches(Connection c, Boolean enabled, DbAgencySearch.Type type)DbSearch[]getSearches(Connection c, Boolean enabled, DbAgencySearch.Type[] types)long[]getSearchIds(Connection c, Boolean enabled, DbAgencySearch.Type type)long[]getSearchIds(Connection c, Boolean enabled, DbAgencySearch.Type[] types)protected voidsaveSearchAdditionally(Connection c, DbSearch search, long searchId, List<Statement> statements)-
Methods inherited from class com.openindex.openestate.impl.db.hsql.HSqlDbSearchesHandler
buildAttribCondition, buildValueCondition, getSearches, getSearches, getSearchIds, loadAttribConditions, loadParameters, loadValueConditions, removeSearches, saveSearch, setSearchesEnabled
-
Methods inherited from class com.openindex.openestate.impl.db.DbSearchesHandlerImpl
createAttribCondition, createValueCondition, getSearch, getSearches, getSearchIds, loadAttribConditions, loadParameters, loadValueConditions, removeSearch, saveSearch, setSearchEnabled
-
Methods inherited from class com.openindex.openestate.impl.db.DbHandlerImpl
getSchema, getSchemaPath, setSchema
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.openindex.openestate.impl.db.DbSearchesHandler
getSearch, getSearches, getSearches, getSearches, getSearchIds, getSearchIds, loadAttribConditions, loadAttribConditions, loadParameters, loadParameters, loadValueConditions, loadValueConditions, removeSearch, removeSearches, saveSearch, saveSearch, setSearchEnabled, setSearchesEnabled
-
-
-
-
Field Detail
-
PROC_SAVE_SEARCHES_ADDON
public static final String PROC_SAVE_SEARCHES_ADDON
- See Also:
- Constant Field Values
-
TABLE_AGENCY_SEARCHES
public static final String TABLE_AGENCY_SEARCHES
- See Also:
- Constant Field Values
-
FIELD_SEARCH_TYPE
public static final String FIELD_SEARCH_TYPE
- See Also:
- Constant Field Values
-
FIELD_SEARCH_OBJECT_STATUS
public static final String FIELD_SEARCH_OBJECT_STATUS
- See Also:
- Constant Field Values
-
-
Method Detail
-
buildSearch
protected DbSearch buildSearch(ResultSet result) throws SQLException
- Overrides:
buildSearchin classHSqlDbSearchesHandler- Throws:
SQLException
-
createSearch
protected DbSearch createSearch()
- Overrides:
createSearchin classDbSearchesHandlerImpl
-
getSearchIds
public long[] getSearchIds(Connection c, Boolean enabled, DbAgencySearch.Type type) throws SQLException
- Specified by:
getSearchIdsin interfaceDbAgencySearchesHandler- Throws:
SQLException
-
getSearchIds
public long[] getSearchIds(Connection c, Boolean enabled, DbAgencySearch.Type[] types) throws SQLException
- Specified by:
getSearchIdsin interfaceDbAgencySearchesHandler- Throws:
SQLException
-
getSearches
public DbSearch[] getSearches(Connection c, Boolean enabled, DbAgencySearch.Type type) throws SQLException
- Specified by:
getSearchesin interfaceDbAgencySearchesHandler- Throws:
SQLException
-
getSearches
public DbSearch[] getSearches(Connection c, Boolean enabled, DbAgencySearch.Type[] types) throws SQLException
- Specified by:
getSearchesin interfaceDbAgencySearchesHandler- Throws:
SQLException
-
saveSearchAdditionally
protected void saveSearchAdditionally(Connection c, DbSearch search, long searchId, List<Statement> statements) throws SQLException
- Overrides:
saveSearchAdditionallyin classHSqlDbSearchesHandler- Throws:
SQLException
-
-