Class HSqlDbContactsHandler
- java.lang.Object
-
- com.openindex.openestate.tool.contacts.db.DbContactsHandlerImpl
-
- com.openindex.openestate.tool.contacts.db.hsql.HSqlDbContactsHandler
-
- All Implemented Interfaces:
DbContactsHandler
public class HSqlDbContactsHandler extends DbContactsHandlerImpl
HSqlDbContactsHandler.- Author:
- Andreas Rudolph
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description HSqlDbContactsHandler()
-
Method Summary
-
Methods inherited from class com.openindex.openestate.tool.contacts.db.DbContactsHandlerImpl
getEntries, getEntriesByBirthday, getEntriesByInternetAddress, getEntriesByKeyword, getEntriesByKeyword, getEntriesByKeyword, getEntry, getEntry, getGroup, getGroupEntries, getGroups, loadEntrySettings, removeEntry, removeGroup, setEntryActive, setEntryGroup
-
-
-
-
Field Detail
-
PROC_REMOVE_GROUPS
public static final String PROC_REMOVE_GROUPS
- See Also:
- Constant Field Values
-
PROC_REMOVE_ENTRIES
public static final String PROC_REMOVE_ENTRIES
- See Also:
- Constant Field Values
-
PROC_REMOVE_ENTRIES_ADDRESS
public static final String PROC_REMOVE_ENTRIES_ADDRESS
- See Also:
- Constant Field Values
-
PROC_REMOVE_ENTRIES_SETTINGS
public static final String PROC_REMOVE_ENTRIES_SETTINGS
- See Also:
- Constant Field Values
-
PROC_GET_ENTRY_ID
public static final String PROC_GET_ENTRY_ID
- See Also:
- Constant Field Values
-
PROC_SAVE_GROUPS
public static final String PROC_SAVE_GROUPS
- See Also:
- Constant Field Values
-
PROC_SAVE_ENTRIES
public static final String PROC_SAVE_ENTRIES
- See Also:
- Constant Field Values
-
PROC_SAVE_ENTRIES_SETTINGS
public static final String PROC_SAVE_ENTRIES_SETTINGS
- See Also:
- Constant Field Values
-
PROC_SET_ENTRIES_ACTIVE
public static final String PROC_SET_ENTRIES_ACTIVE
- See Also:
- Constant Field Values
-
PROC_SET_ENTRIES_GROUP
public static final String PROC_SET_ENTRIES_GROUP
- See Also:
- Constant Field Values
-
VIEW_GROUPS
public static final String VIEW_GROUPS
- See Also:
- Constant Field Values
-
VIEW_ENTRIES
public static final String VIEW_ENTRIES
- See Also:
- Constant Field Values
-
VIEW_ENTRIES_FILES
public static final String VIEW_ENTRIES_FILES
- See Also:
- Constant Field Values
-
VIEW_ENTRIES_FILES_CONTENT
public static final String VIEW_ENTRIES_FILES_CONTENT
- See Also:
- Constant Field Values
-
VIEW_ENTRIES_SETTINGS
public static final String VIEW_ENTRIES_SETTINGS
- See Also:
- Constant Field Values
-
TABLE_GROUPS
public static final String TABLE_GROUPS
- See Also:
- Constant Field Values
-
FIELD_GROUP_ID
public static final String FIELD_GROUP_ID
- See Also:
- Constant Field Values
-
FIELD_GROUP_NAME
public static final String FIELD_GROUP_NAME
- See Also:
- Constant Field Values
-
FIELD_GROUP_NOTES
public static final String FIELD_GROUP_NOTES
- See Also:
- Constant Field Values
-
TABLE_ENTRIES
public static final String TABLE_ENTRIES
- See Also:
- Constant Field Values
-
FIELD_ENTRY_ID
public static final String FIELD_ENTRY_ID
- See Also:
- Constant Field Values
-
FIELD_ENTRY_NOTES
public static final String FIELD_ENTRY_NOTES
- See Also:
- Constant Field Values
-
FIELD_ENTRY_ACTIVE
public static final String FIELD_ENTRY_ACTIVE
- See Also:
- Constant Field Values
-
FIELD_ENTRY_BIRTHDAY
public static final String FIELD_ENTRY_BIRTHDAY
- See Also:
- Constant Field Values
-
FIELD_ENTRY_PUBLIC_ID
public static final String FIELD_ENTRY_PUBLIC_ID
- See Also:
- Constant Field Values
-
TABLE_ENTRIES_SETTINGS
public static final String TABLE_ENTRIES_SETTINGS
- See Also:
- Constant Field Values
-
FIELD_SETTING_KEY
public static final String FIELD_SETTING_KEY
- See Also:
- Constant Field Values
-
FIELD_SETTING_VALUE
public static final String FIELD_SETTING_VALUE
- See Also:
- Constant Field Values
-
TABLE_ENTRIES_FILES
public static final String TABLE_ENTRIES_FILES
- See Also:
- Constant Field Values
-
FIELD_FILE_ID
public static final String FIELD_FILE_ID
- See Also:
- Constant Field Values
-
FIELD_FILE_NAME
public static final String FIELD_FILE_NAME
- See Also:
- Constant Field Values
-
FIELD_FILE_MIMETYPE
public static final String FIELD_FILE_MIMETYPE
- See Also:
- Constant Field Values
-
FIELD_FILE_CONTENT
public static final String FIELD_FILE_CONTENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getEntries
public DbContactsEntry[] getEntries(Connection c, long[] ids) throws SQLException
- Specified by:
getEntries
in interfaceDbContactsHandler
- Specified by:
getEntries
in classDbContactsHandlerImpl
- Throws:
SQLException
-
getEntriesByAddress
@Deprecated public DbContactsEntry[] getEntriesByAddress(Connection c, String key, String value, boolean ignoreCase) throws SQLException
Deprecated.- Specified by:
getEntriesByAddress
in interfaceDbContactsHandler
- Specified by:
getEntriesByAddress
in classDbContactsHandlerImpl
- Throws:
SQLException
-
getEntriesByBirthday
public DbContactsEntry[] getEntriesByBirthday(Connection c, Date begin, Date end, Boolean active) throws SQLException
- Specified by:
getEntriesByBirthday
in interfaceDbContactsHandler
- Specified by:
getEntriesByBirthday
in classDbContactsHandlerImpl
- Throws:
SQLException
-
getEntriesByInternetAddress
public DbContactsEntry[] getEntriesByInternetAddress(Connection c, javax.mail.internet.InternetAddress address, int limit) throws SQLException
- Specified by:
getEntriesByInternetAddress
in interfaceDbContactsHandler
- Specified by:
getEntriesByInternetAddress
in classDbContactsHandlerImpl
- Throws:
SQLException
-
getEntriesByKeyword
public DbContactsEntry[] getEntriesByKeyword(Connection c, String keyword, long[] groupIds, int limit) throws SQLException
- Specified by:
getEntriesByKeyword
in interfaceDbContactsHandler
- Specified by:
getEntriesByKeyword
in classDbContactsHandlerImpl
- Throws:
SQLException
-
getEntriesBySetting
@Deprecated public DbContactsEntry[] getEntriesBySetting(Connection c, String key, String value, boolean ignoreCase) throws SQLException
Deprecated.- Specified by:
getEntriesBySetting
in interfaceDbContactsHandler
- Specified by:
getEntriesBySetting
in classDbContactsHandlerImpl
- Throws:
SQLException
-
getEntryId
public long getEntryId(Connection c, String publicId) throws SQLException
- Specified by:
getEntryId
in interfaceDbContactsHandler
- Specified by:
getEntryId
in classDbContactsHandlerImpl
- Throws:
SQLException
-
getEntryIds
public long[] getEntryIds(Connection c) throws SQLException
- Specified by:
getEntryIds
in interfaceDbContactsHandler
- Specified by:
getEntryIds
in classDbContactsHandlerImpl
- Throws:
SQLException
-
getGroups
public DbContactsGroup[] getGroups(Connection c, long[] ids) throws SQLException
- Specified by:
getGroups
in interfaceDbContactsHandler
- Specified by:
getGroups
in classDbContactsHandlerImpl
- Throws:
SQLException
-
getGroups
public DbContactsGroup[] getGroups(Connection c, String name) throws SQLException
- Specified by:
getGroups
in interfaceDbContactsHandler
- Specified by:
getGroups
in classDbContactsHandlerImpl
- Throws:
SQLException
-
getGroupIds
public long[] getGroupIds(Connection c) throws SQLException
- Specified by:
getGroupIds
in interfaceDbContactsHandler
- Specified by:
getGroupIds
in classDbContactsHandlerImpl
- Throws:
SQLException
-
getGroupEntries
public DbContactsEntry[] getGroupEntries(Connection c, long[] groupIds) throws SQLException
- Specified by:
getGroupEntries
in interfaceDbContactsHandler
- Specified by:
getGroupEntries
in classDbContactsHandlerImpl
- Throws:
SQLException
-
loadEntrySettings
public void loadEntrySettings(Connection c, DbContactsEntry[] entries) throws SQLException
- Specified by:
loadEntrySettings
in interfaceDbContactsHandler
- Specified by:
loadEntrySettings
in classDbContactsHandlerImpl
- Throws:
SQLException
-
removeEntries
public void removeEntries(Connection c, long[] ids) throws SQLException
- Specified by:
removeEntries
in interfaceDbContactsHandler
- Specified by:
removeEntries
in classDbContactsHandlerImpl
- Throws:
SQLException
-
removeGroups
public void removeGroups(Connection c, long[] ids) throws SQLException
- Specified by:
removeGroups
in interfaceDbContactsHandler
- Specified by:
removeGroups
in classDbContactsHandlerImpl
- Throws:
SQLException
-
saveEntry
public void saveEntry(Connection c, DbContactsEntry entry) throws SQLException
- Specified by:
saveEntry
in interfaceDbContactsHandler
- Specified by:
saveEntry
in classDbContactsHandlerImpl
- Throws:
SQLException
-
saveGroup
public void saveGroup(Connection c, DbContactsGroup group) throws SQLException
- Specified by:
saveGroup
in interfaceDbContactsHandler
- Specified by:
saveGroup
in classDbContactsHandlerImpl
- Throws:
SQLException
-
setEntriesActive
public void setEntriesActive(Connection c, long[] entryIds, boolean active) throws SQLException
- Specified by:
setEntriesActive
in interfaceDbContactsHandler
- Specified by:
setEntriesActive
in classDbContactsHandlerImpl
- Throws:
SQLException
-
setEntriesGroup
public void setEntriesGroup(Connection c, long[] entryIds, long groupId) throws SQLException
- Specified by:
setEntriesGroup
in interfaceDbContactsHandler
- Specified by:
setEntriesGroup
in classDbContactsHandlerImpl
- Throws:
SQLException
-
-