public class HSqlDbObjectsHandler extends DbObjectsHandlerImpl
Constructor and Description |
---|
HSqlDbObjectsHandler() |
HSqlDbObjectsHandler(String schema) |
createObject, getNumberOfFiles, getNumberOfFiles, getObject, getObject, getObjectIds, getObjectIds, getObjects, getObjectsByKeyword, loadObjectAttribs, loadObjectAttribs, loadObjectAttribs, loadObjectGeoDbAreas, loadObjectTranslations, loadObjectTranslations, loadObjectTranslations, removeObject, saveObject, saveObject, setObjectContactId
getSchema, getSchemaPath, setSchema
public static final String PROC_REMOVE_OBJECTS
public static final String PROC_REMOVE_OBJECTS_ATTRIBS
public static final String PROC_REMOVE_OBJECTS_GEODBS_AREAS
public static final String PROC_REMOVE_OBJECTS_I18N
public static final String PROC_GET_OBJECT_ID
public static final String PROC_SAVE_OBJECTS
public static final String PROC_SAVE_OBJECTS_ATTRIBS
public static final String PROC_SAVE_OBJECTS_GEODBS_AREAS
public static final String PROC_SAVE_OBJECTS_I18N
public static final String PROC_SET_OBJECTS_CONTACT
public static final String VIEW_OBJECTS
public static final String VIEW_OBJECTS_ACTIONS
public static final String VIEW_OBJECTS_ATTRIBS
public static final String VIEW_OBJECTS_GEODBS_AREAS
public static final String VIEW_OBJECTS_I18N
public static final String VIEW_OBJECTS_TYPES
public static final String FIELD_OBJECT_ID
public static final String FIELD_OBJECT_TYPE
public static final String FIELD_OBJECT_ACTION
public static final String FIELD_OBJECT_PUBLIC_ID
public static final String FIELD_OBJECT_GROUP_ID
public static final String FIELD_OBJECT_CURRENCY
public static final String FIELD_OBJECT_HIDDEN_PRICES
public static final String FIELD_OBJECT_PUBLISH_BEGIN
public static final String FIELD_OBJECT_PUBLISH_END
public static final String FIELD_ADDRESS_PUBLISHED
public static final String FIELD_ADDRESS_STREET
public static final String FIELD_ADDRESS_STREET2
public static final String FIELD_ADDRESS_STREET_NR
public static final String FIELD_ADDRESS_POSTAL_CODE
public static final String FIELD_ADDRESS_CITY
public static final String FIELD_ADDRESS_DISTRICT
public static final String FIELD_ADDRESS_COUNTRY
public static final String FIELD_ADDRESS_REGION
public static final String FIELD_ADDRESS_LATITUDE
public static final String FIELD_ADDRESS_LONGITUDE
public static final String FIELD_ATTRIB_NAME
public static final String FIELD_ATTRIB_UNIT
public static final String FIELD_VALUE_TEXT
public static final String FIELD_VALUE_STRING
public static final String FIELD_VALUE_BOOLEAN
public static final String FIELD_VALUE_NUMERIC
public static final String FIELD_VALUE_NUMERIC_BASE
public static final String FIELD_VALUE_DATE
public static final String FIELD_VALUE_TIME
public static final String FIELD_VALUE_DATETIME
public static final String FIELD_I18N_TITLE
public HSqlDbObjectsHandler()
public HSqlDbObjectsHandler(String schema)
protected AbstractAttribImpl buildAttrib(ResultSet result, Map<Long,String> languages, EstateImpl estate) throws SQLException
SQLException
protected DbObject buildObject(ResultSet result) throws SQLException
SQLException
public int getNumberOfFiles(Connection c, long objectId, Boolean published, String mimeType) throws SQLException
getNumberOfFiles
in interface DbObjectsHandler
getNumberOfFiles
in class DbObjectsHandlerImpl
SQLException
public DbObject[] getObjects(Connection c, long[] ids) throws SQLException
getObjects
in interface DbObjectsHandler
getObjects
in class DbObjectsHandlerImpl
SQLException
public DbObject[] getObjects(Connection c, String[] nrs) throws SQLException
getObjects
in interface DbObjectsHandler
getObjects
in class DbObjectsHandlerImpl
SQLException
public DbObject[] getObjects(Connection c, DbSearch search) throws SQLException
getObjects
in interface DbObjectsHandler
getObjects
in class DbObjectsHandlerImpl
SQLException
public DbObject[] getObjectsByKeyword(Connection c, String keyword, int limit) throws SQLException
getObjectsByKeyword
in interface DbObjectsHandler
getObjectsByKeyword
in class DbObjectsHandlerImpl
SQLException
public OpenEstateAction[] getObjectActions(Connection c) throws SQLException
getObjectActions
in interface DbObjectsHandler
getObjectActions
in class DbObjectsHandlerImpl
SQLException
public long getObjectId(Connection c, String publicId) throws SQLException
getObjectId
in interface DbObjectsHandler
getObjectId
in class DbObjectsHandlerImpl
SQLException
public long[] getObjectIds(Connection c, long[] contactIds) throws SQLException
getObjectIds
in interface DbObjectsHandler
getObjectIds
in class DbObjectsHandlerImpl
SQLException
public long[] getObjectIds(Connection c, DbSearch search) throws SQLException
getObjectIds
in interface DbObjectsHandler
getObjectIds
in class DbObjectsHandlerImpl
SQLException
public OpenEstateType[] getObjectTypes(Connection c) throws SQLException
getObjectTypes
in interface DbObjectsHandler
getObjectTypes
in class DbObjectsHandlerImpl
SQLException
public void loadObjectAttribs(Connection c, DbObject[] objects, Map<Long,String> languageMap) throws SQLException
loadObjectAttribs
in interface DbObjectsHandler
loadObjectAttribs
in class DbObjectsHandlerImpl
SQLException
public void loadObjectGeoDbAreas(Connection c, DbObject[] objects, DbGeoHandler geoHandler) throws SQLException
loadObjectGeoDbAreas
in interface DbObjectsHandler
loadObjectGeoDbAreas
in class DbObjectsHandlerImpl
SQLException
public void loadObjectTranslations(Connection c, DbObject[] objects, Map<Long,String> languageMap) throws SQLException
loadObjectTranslations
in interface DbObjectsHandler
loadObjectTranslations
in class DbObjectsHandlerImpl
SQLException
protected void loadSearchConditions(DbSearch search, List<String> conditions, Map<String,Object> conditionValues)
protected void loadSearchParameters(NamedPreparedStatement statement, Map<String,Object> conditionValues) throws SQLException
SQLException
public void removeObjects(Connection c, long[] ids) throws SQLException
removeObjects
in interface DbObjectsHandler
removeObjects
in class DbObjectsHandlerImpl
SQLException
public void saveObject(Connection c, DbObject object, Map<Long,String> languageMap, boolean saveTranslations, boolean saveAttributes) throws SQLException
saveObject
in interface DbObjectsHandler
saveObject
in class DbObjectsHandlerImpl
SQLException
protected void saveObjectAdditionally(Connection c, DbObject object, long objectId, List<Statement> statements) throws SQLException
SQLException
public void setObjectContactId(Connection c, long[] objectIds, long contactId) throws SQLException
setObjectContactId
in interface DbObjectsHandler
setObjectContactId
in class DbObjectsHandlerImpl
SQLException
Copyright © 2019 OpenEstate. All rights reserved.