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:
getEntriesin interfaceDbContactsHandler- Specified by:
getEntriesin classDbContactsHandlerImpl- Throws:
SQLException
-
getEntriesByAddress
@Deprecated public DbContactsEntry[] getEntriesByAddress(Connection c, String key, String value, boolean ignoreCase) throws SQLException
Deprecated.- Specified by:
getEntriesByAddressin interfaceDbContactsHandler- Specified by:
getEntriesByAddressin classDbContactsHandlerImpl- Throws:
SQLException
-
getEntriesByBirthday
public DbContactsEntry[] getEntriesByBirthday(Connection c, Date begin, Date end, Boolean active) throws SQLException
- Specified by:
getEntriesByBirthdayin interfaceDbContactsHandler- Specified by:
getEntriesByBirthdayin classDbContactsHandlerImpl- Throws:
SQLException
-
getEntriesByInternetAddress
public DbContactsEntry[] getEntriesByInternetAddress(Connection c, javax.mail.internet.InternetAddress address, int limit) throws SQLException
- Specified by:
getEntriesByInternetAddressin interfaceDbContactsHandler- Specified by:
getEntriesByInternetAddressin classDbContactsHandlerImpl- Throws:
SQLException
-
getEntriesByKeyword
public DbContactsEntry[] getEntriesByKeyword(Connection c, String keyword, long[] groupIds, int limit) throws SQLException
- Specified by:
getEntriesByKeywordin interfaceDbContactsHandler- Specified by:
getEntriesByKeywordin classDbContactsHandlerImpl- Throws:
SQLException
-
getEntriesBySetting
@Deprecated public DbContactsEntry[] getEntriesBySetting(Connection c, String key, String value, boolean ignoreCase) throws SQLException
Deprecated.- Specified by:
getEntriesBySettingin interfaceDbContactsHandler- Specified by:
getEntriesBySettingin classDbContactsHandlerImpl- Throws:
SQLException
-
getEntryId
public long getEntryId(Connection c, String publicId) throws SQLException
- Specified by:
getEntryIdin interfaceDbContactsHandler- Specified by:
getEntryIdin classDbContactsHandlerImpl- Throws:
SQLException
-
getEntryIds
public long[] getEntryIds(Connection c) throws SQLException
- Specified by:
getEntryIdsin interfaceDbContactsHandler- Specified by:
getEntryIdsin classDbContactsHandlerImpl- Throws:
SQLException
-
getGroups
public DbContactsGroup[] getGroups(Connection c, long[] ids) throws SQLException
- Specified by:
getGroupsin interfaceDbContactsHandler- Specified by:
getGroupsin classDbContactsHandlerImpl- Throws:
SQLException
-
getGroups
public DbContactsGroup[] getGroups(Connection c, String name) throws SQLException
- Specified by:
getGroupsin interfaceDbContactsHandler- Specified by:
getGroupsin classDbContactsHandlerImpl- Throws:
SQLException
-
getGroupIds
public long[] getGroupIds(Connection c) throws SQLException
- Specified by:
getGroupIdsin interfaceDbContactsHandler- Specified by:
getGroupIdsin classDbContactsHandlerImpl- Throws:
SQLException
-
getGroupEntries
public DbContactsEntry[] getGroupEntries(Connection c, long[] groupIds) throws SQLException
- Specified by:
getGroupEntriesin interfaceDbContactsHandler- Specified by:
getGroupEntriesin classDbContactsHandlerImpl- Throws:
SQLException
-
loadEntrySettings
public void loadEntrySettings(Connection c, DbContactsEntry[] entries) throws SQLException
- Specified by:
loadEntrySettingsin interfaceDbContactsHandler- Specified by:
loadEntrySettingsin classDbContactsHandlerImpl- Throws:
SQLException
-
removeEntries
public void removeEntries(Connection c, long[] ids) throws SQLException
- Specified by:
removeEntriesin interfaceDbContactsHandler- Specified by:
removeEntriesin classDbContactsHandlerImpl- Throws:
SQLException
-
removeGroups
public void removeGroups(Connection c, long[] ids) throws SQLException
- Specified by:
removeGroupsin interfaceDbContactsHandler- Specified by:
removeGroupsin classDbContactsHandlerImpl- Throws:
SQLException
-
saveEntry
public void saveEntry(Connection c, DbContactsEntry entry) throws SQLException
- Specified by:
saveEntryin interfaceDbContactsHandler- Specified by:
saveEntryin classDbContactsHandlerImpl- Throws:
SQLException
-
saveGroup
public void saveGroup(Connection c, DbContactsGroup group) throws SQLException
- Specified by:
saveGroupin interfaceDbContactsHandler- Specified by:
saveGroupin classDbContactsHandlerImpl- Throws:
SQLException
-
setEntriesActive
public void setEntriesActive(Connection c, long[] entryIds, boolean active) throws SQLException
- Specified by:
setEntriesActivein interfaceDbContactsHandler- Specified by:
setEntriesActivein classDbContactsHandlerImpl- Throws:
SQLException
-
setEntriesGroup
public void setEntriesGroup(Connection c, long[] entryIds, long groupId) throws SQLException
- Specified by:
setEntriesGroupin interfaceDbContactsHandler- Specified by:
setEntriesGroupin classDbContactsHandlerImpl- Throws:
SQLException
-
-