Class DbContactsHandlerImpl
- java.lang.Object
-
- com.openindex.openestate.tool.contacts.db.DbContactsHandlerImpl
-
- All Implemented Interfaces:
DbContactsHandler
- Direct Known Subclasses:
HSqlDbContactsHandler
public abstract class DbContactsHandlerImpl extends Object implements DbContactsHandler
DbContactsHandler.- Author:
- Andreas Rudolph
-
-
Constructor Summary
Constructors Constructor Description DbContactsHandlerImpl()
-
Method Summary
-
-
-
Method Detail
-
getEntry
public final DbContactsEntry getEntry(Connection c, long id) throws SQLException
- Specified by:
getEntryin interfaceDbContactsHandler- Throws:
SQLException
-
getEntry
public final DbContactsEntry getEntry(Connection c, javax.mail.internet.InternetAddress address) throws SQLException
- Specified by:
getEntryin interfaceDbContactsHandler- Throws:
SQLException
-
getEntries
public final DbContactsEntry[] getEntries(Connection c) throws SQLException
- Specified by:
getEntriesin interfaceDbContactsHandler- Throws:
SQLException
-
getEntries
public abstract DbContactsEntry[] getEntries(Connection c, long[] ids) throws SQLException
- Specified by:
getEntriesin interfaceDbContactsHandler- Throws:
SQLException
-
getEntriesByAddress
@Deprecated public abstract DbContactsEntry[] getEntriesByAddress(Connection c, String key, String value, boolean ignoreCase) throws SQLException
Deprecated.- Specified by:
getEntriesByAddressin interfaceDbContactsHandler- Throws:
SQLException
-
getEntriesByBirthday
public final DbContactsEntry[] getEntriesByBirthday(Connection c, Date begin, Date end) throws SQLException
- Specified by:
getEntriesByBirthdayin interfaceDbContactsHandler- Throws:
SQLException
-
getEntriesByBirthday
public abstract DbContactsEntry[] getEntriesByBirthday(Connection c, Date begin, Date end, Boolean active) throws SQLException
- Specified by:
getEntriesByBirthdayin interfaceDbContactsHandler- Throws:
SQLException
-
getEntriesByInternetAddress
public final DbContactsEntry[] getEntriesByInternetAddress(Connection c, javax.mail.internet.InternetAddress address) throws SQLException
- Specified by:
getEntriesByInternetAddressin interfaceDbContactsHandler- Throws:
SQLException
-
getEntriesByInternetAddress
public abstract DbContactsEntry[] getEntriesByInternetAddress(Connection c, javax.mail.internet.InternetAddress address, int limit) throws SQLException
- Specified by:
getEntriesByInternetAddressin interfaceDbContactsHandler- Throws:
SQLException
-
getEntriesByKeyword
public final DbContactsEntry[] getEntriesByKeyword(Connection c, String keyword) throws SQLException
- Specified by:
getEntriesByKeywordin interfaceDbContactsHandler- Throws:
SQLException
-
getEntriesByKeyword
public final DbContactsEntry[] getEntriesByKeyword(Connection c, String keyword, int limit) throws SQLException
- Specified by:
getEntriesByKeywordin interfaceDbContactsHandler- Throws:
SQLException
-
getEntriesByKeyword
public final DbContactsEntry[] getEntriesByKeyword(Connection c, String keyword, long groupId, int limit) throws SQLException
- Specified by:
getEntriesByKeywordin interfaceDbContactsHandler- Throws:
SQLException
-
getEntriesByKeyword
public abstract DbContactsEntry[] getEntriesByKeyword(Connection c, String keyword, long[] groupIds, int limit) throws SQLException
- Specified by:
getEntriesByKeywordin interfaceDbContactsHandler- Throws:
SQLException
-
getEntriesBySetting
@Deprecated public abstract DbContactsEntry[] getEntriesBySetting(Connection c, String key, String value, boolean ignoreCase) throws SQLException
Deprecated.- Specified by:
getEntriesBySettingin interfaceDbContactsHandler- Throws:
SQLException
-
getEntryId
public abstract long getEntryId(Connection c, String publicId) throws SQLException
- Specified by:
getEntryIdin interfaceDbContactsHandler- Throws:
SQLException
-
getEntryIds
public abstract long[] getEntryIds(Connection c) throws SQLException
- Specified by:
getEntryIdsin interfaceDbContactsHandler- Throws:
SQLException
-
getGroup
public final DbContactsGroup getGroup(Connection c, long id) throws SQLException
- Specified by:
getGroupin interfaceDbContactsHandler- Throws:
SQLException
-
getGroups
public final DbContactsGroup[] getGroups(Connection c) throws SQLException
- Specified by:
getGroupsin interfaceDbContactsHandler- Throws:
SQLException
-
getGroups
public abstract DbContactsGroup[] getGroups(Connection c, long[] ids) throws SQLException
- Specified by:
getGroupsin interfaceDbContactsHandler- Throws:
SQLException
-
getGroups
public abstract DbContactsGroup[] getGroups(Connection c, String name) throws SQLException
- Specified by:
getGroupsin interfaceDbContactsHandler- Throws:
SQLException
-
getGroupEntries
public final DbContactsEntry[] getGroupEntries(Connection c, long groupId) throws SQLException
- Specified by:
getGroupEntriesin interfaceDbContactsHandler- Throws:
SQLException
-
getGroupEntries
public abstract DbContactsEntry[] getGroupEntries(Connection c, long[] groupIds) throws SQLException
- Specified by:
getGroupEntriesin interfaceDbContactsHandler- Throws:
SQLException
-
getGroupIds
public abstract long[] getGroupIds(Connection c) throws SQLException
- Specified by:
getGroupIdsin interfaceDbContactsHandler- Throws:
SQLException
-
loadEntrySettings
public final void loadEntrySettings(Connection c, DbContactsEntry entry) throws SQLException
- Specified by:
loadEntrySettingsin interfaceDbContactsHandler- Throws:
SQLException
-
loadEntrySettings
public abstract void loadEntrySettings(Connection c, DbContactsEntry[] entries) throws SQLException
- Specified by:
loadEntrySettingsin interfaceDbContactsHandler- Throws:
SQLException
-
removeEntry
public final void removeEntry(Connection c, long id) throws SQLException
- Specified by:
removeEntryin interfaceDbContactsHandler- Throws:
SQLException
-
removeEntries
public abstract void removeEntries(Connection c, long[] ids) throws SQLException
- Specified by:
removeEntriesin interfaceDbContactsHandler- Throws:
SQLException
-
removeGroup
public final void removeGroup(Connection c, long id) throws SQLException
- Specified by:
removeGroupin interfaceDbContactsHandler- Throws:
SQLException
-
removeGroups
public abstract void removeGroups(Connection c, long[] ids) throws SQLException
- Specified by:
removeGroupsin interfaceDbContactsHandler- Throws:
SQLException
-
saveEntry
public abstract void saveEntry(Connection c, DbContactsEntry entry) throws SQLException
- Specified by:
saveEntryin interfaceDbContactsHandler- Throws:
SQLException
-
saveGroup
public abstract void saveGroup(Connection c, DbContactsGroup group) throws SQLException
- Specified by:
saveGroupin interfaceDbContactsHandler- Throws:
SQLException
-
setEntryActive
public final void setEntryActive(Connection c, long entryId, boolean active) throws SQLException
- Specified by:
setEntryActivein interfaceDbContactsHandler- Throws:
SQLException
-
setEntryGroup
public final void setEntryGroup(Connection c, long entryId, long groupId) throws SQLException
- Specified by:
setEntryGroupin interfaceDbContactsHandler- Throws:
SQLException
-
setEntriesActive
public abstract void setEntriesActive(Connection c, long[] entryIds, boolean active) throws SQLException
- Specified by:
setEntriesActivein interfaceDbContactsHandler- Throws:
SQLException
-
setEntriesGroup
public abstract void setEntriesGroup(Connection c, long[] entryIds, long groupId) throws SQLException
- Specified by:
setEntriesGroupin interfaceDbContactsHandler- Throws:
SQLException
-
-