public class HSqlDbSearchesHandler extends DbSearchesHandlerImpl
Constructor and Description |
---|
HSqlDbSearchesHandler() |
HSqlDbSearchesHandler(String schema) |
Modifier and Type | Method and Description |
---|---|
protected SearchAttribImpl |
buildAttribCondition(ResultSet result) |
protected DbSearch |
buildSearch(ResultSet result) |
protected SearchEqualsImpl |
buildValueCondition(ResultSet result) |
DbSearch[] |
getSearches(Connection c,
Boolean enabled) |
DbSearch[] |
getSearches(Connection c,
long[] ids) |
long[] |
getSearchIds(Connection c,
Boolean enabled) |
void |
loadAttribConditions(Connection c,
DbSearch[] searches) |
void |
loadParameters(Connection c,
DbSearch[] searches) |
void |
loadValueConditions(Connection c,
DbSearch[] searches) |
void |
removeSearches(Connection c,
long[] ids) |
void |
saveSearch(Connection c,
DbSearch search,
boolean saveParameters,
boolean saveConditions) |
protected void |
saveSearchAdditionally(Connection c,
DbSearch search,
long searchId,
List<Statement> statements) |
void |
setSearchesEnabled(Connection c,
long[] ids,
boolean enabled) |
createAttribCondition, createSearch, createValueCondition, getSearch, getSearches, getSearchIds, loadAttribConditions, loadParameters, loadValueConditions, removeSearch, saveSearch, setSearchEnabled
getSchema, getSchemaPath, setSchema
public static final String PROC_REMOVE_SEARCHES
public static final String PROC_REMOVE_SEARCHES_ATTRIBS
public static final String PROC_REMOVE_SEARCHES_PARAMS
public static final String PROC_REMOVE_SEARCHES_VALUES
public static final String PROC_SAVE_SEARCHES
public static final String PROC_SAVE_SEARCHES_ATTRIBS
public static final String PROC_SAVE_SEARCHES_PARAMS
public static final String PROC_SAVE_SEARCHES_VALUES
public static final String PROC_SET_SEARCHES_ENABLED
public static final String VIEW_SEARCHES
public static final String VIEW_SEARCHES_ATTRIBS
public static final String VIEW_SEARCHES_PARAMS
public static final String VIEW_SEARCHES_VALUES
public static final String FIELD_SEARCH_ID
public static final String FIELD_SEARCH_NAME
public static final String FIELD_SEARCH_NOTES
public static final String FIELD_SEARCH_ENABLED
public static final String FIELD_ATTRIB_NAME
public static final String FIELD_ATTRIB_EQUALS
public static final String FIELD_ATTRIB_EQUALS_LIKE
public static final String FIELD_ATTRIB_EQUALS_CASE
public static final String FIELD_ATTRIB_MATCHES
public static final String FIELD_ATTRIB_NUMERIC_MIN
public static final String FIELD_ATTRIB_NUMERIC_MAX
public static final String FIELD_ATTRIB_NUMERIC_UNIT
public static final String FIELD_ATTRIB_TIME_BEGIN
public static final String FIELD_ATTRIB_TIME_END
public static final String FIELD_ATTRIB_ORDER
public static final String FIELD_PARAM_KEY
public static final String FIELD_PARAM_VALUE
public static final String FIELD_VALUE_TYPE
public static final String FIELD_VALUE_EQUALS
public static final String FIELD_VALUE_EQUALS_LIKE
public static final String FIELD_VALUE_EQUALS_CASE
public static final String FIELD_VALUE_ORDER
public HSqlDbSearchesHandler()
public HSqlDbSearchesHandler(String schema)
protected SearchAttribImpl buildAttribCondition(ResultSet result) throws SQLException
SQLException
protected DbSearch buildSearch(ResultSet result) throws SQLException
SQLException
protected SearchEqualsImpl buildValueCondition(ResultSet result) throws SQLException
SQLException
public DbSearch[] getSearches(Connection c, Boolean enabled) throws SQLException
getSearches
in interface DbSearchesHandler
getSearches
in class DbSearchesHandlerImpl
SQLException
public DbSearch[] getSearches(Connection c, long[] ids) throws SQLException
getSearches
in interface DbSearchesHandler
getSearches
in class DbSearchesHandlerImpl
SQLException
public long[] getSearchIds(Connection c, Boolean enabled) throws SQLException
getSearchIds
in interface DbSearchesHandler
getSearchIds
in class DbSearchesHandlerImpl
SQLException
public void loadAttribConditions(Connection c, DbSearch[] searches) throws SQLException
loadAttribConditions
in interface DbSearchesHandler
loadAttribConditions
in class DbSearchesHandlerImpl
SQLException
public void loadParameters(Connection c, DbSearch[] searches) throws SQLException
loadParameters
in interface DbSearchesHandler
loadParameters
in class DbSearchesHandlerImpl
SQLException
public void loadValueConditions(Connection c, DbSearch[] searches) throws SQLException
loadValueConditions
in interface DbSearchesHandler
loadValueConditions
in class DbSearchesHandlerImpl
SQLException
public void removeSearches(Connection c, long[] ids) throws SQLException
removeSearches
in interface DbSearchesHandler
removeSearches
in class DbSearchesHandlerImpl
SQLException
public void saveSearch(Connection c, DbSearch search, boolean saveParameters, boolean saveConditions) throws SQLException
saveSearch
in interface DbSearchesHandler
saveSearch
in class DbSearchesHandlerImpl
SQLException
protected void saveSearchAdditionally(Connection c, DbSearch search, long searchId, List<Statement> statements) throws SQLException
SQLException
public void setSearchesEnabled(Connection c, long[] ids, boolean enabled) throws SQLException
setSearchesEnabled
in interface DbSearchesHandler
setSearchesEnabled
in class DbSearchesHandlerImpl
SQLException
Copyright © 2019 OpenEstate. All rights reserved.