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:
getEntry
in interfaceDbContactsHandler
- Throws:
SQLException
-
getEntry
public final DbContactsEntry getEntry(Connection c, javax.mail.internet.InternetAddress address) throws SQLException
- Specified by:
getEntry
in interfaceDbContactsHandler
- Throws:
SQLException
-
getEntries
public final DbContactsEntry[] getEntries(Connection c) throws SQLException
- Specified by:
getEntries
in interfaceDbContactsHandler
- Throws:
SQLException
-
getEntries
public abstract DbContactsEntry[] getEntries(Connection c, long[] ids) throws SQLException
- Specified by:
getEntries
in interfaceDbContactsHandler
- Throws:
SQLException
-
getEntriesByAddress
@Deprecated public abstract DbContactsEntry[] getEntriesByAddress(Connection c, String key, String value, boolean ignoreCase) throws SQLException
Deprecated.- Specified by:
getEntriesByAddress
in interfaceDbContactsHandler
- Throws:
SQLException
-
getEntriesByBirthday
public final DbContactsEntry[] getEntriesByBirthday(Connection c, Date begin, Date end) throws SQLException
- Specified by:
getEntriesByBirthday
in interfaceDbContactsHandler
- Throws:
SQLException
-
getEntriesByBirthday
public abstract DbContactsEntry[] getEntriesByBirthday(Connection c, Date begin, Date end, Boolean active) throws SQLException
- Specified by:
getEntriesByBirthday
in interfaceDbContactsHandler
- Throws:
SQLException
-
getEntriesByInternetAddress
public final DbContactsEntry[] getEntriesByInternetAddress(Connection c, javax.mail.internet.InternetAddress address) throws SQLException
- Specified by:
getEntriesByInternetAddress
in interfaceDbContactsHandler
- Throws:
SQLException
-
getEntriesByInternetAddress
public abstract DbContactsEntry[] getEntriesByInternetAddress(Connection c, javax.mail.internet.InternetAddress address, int limit) throws SQLException
- Specified by:
getEntriesByInternetAddress
in interfaceDbContactsHandler
- Throws:
SQLException
-
getEntriesByKeyword
public final DbContactsEntry[] getEntriesByKeyword(Connection c, String keyword) throws SQLException
- Specified by:
getEntriesByKeyword
in interfaceDbContactsHandler
- Throws:
SQLException
-
getEntriesByKeyword
public final DbContactsEntry[] getEntriesByKeyword(Connection c, String keyword, int limit) throws SQLException
- Specified by:
getEntriesByKeyword
in interfaceDbContactsHandler
- Throws:
SQLException
-
getEntriesByKeyword
public final DbContactsEntry[] getEntriesByKeyword(Connection c, String keyword, long groupId, int limit) throws SQLException
- Specified by:
getEntriesByKeyword
in interfaceDbContactsHandler
- Throws:
SQLException
-
getEntriesByKeyword
public abstract DbContactsEntry[] getEntriesByKeyword(Connection c, String keyword, long[] groupIds, int limit) throws SQLException
- Specified by:
getEntriesByKeyword
in interfaceDbContactsHandler
- Throws:
SQLException
-
getEntriesBySetting
@Deprecated public abstract DbContactsEntry[] getEntriesBySetting(Connection c, String key, String value, boolean ignoreCase) throws SQLException
Deprecated.- Specified by:
getEntriesBySetting
in interfaceDbContactsHandler
- Throws:
SQLException
-
getEntryId
public abstract long getEntryId(Connection c, String publicId) throws SQLException
- Specified by:
getEntryId
in interfaceDbContactsHandler
- Throws:
SQLException
-
getEntryIds
public abstract long[] getEntryIds(Connection c) throws SQLException
- Specified by:
getEntryIds
in interfaceDbContactsHandler
- Throws:
SQLException
-
getGroup
public final DbContactsGroup getGroup(Connection c, long id) throws SQLException
- Specified by:
getGroup
in interfaceDbContactsHandler
- Throws:
SQLException
-
getGroups
public final DbContactsGroup[] getGroups(Connection c) throws SQLException
- Specified by:
getGroups
in interfaceDbContactsHandler
- Throws:
SQLException
-
getGroups
public abstract DbContactsGroup[] getGroups(Connection c, long[] ids) throws SQLException
- Specified by:
getGroups
in interfaceDbContactsHandler
- Throws:
SQLException
-
getGroups
public abstract DbContactsGroup[] getGroups(Connection c, String name) throws SQLException
- Specified by:
getGroups
in interfaceDbContactsHandler
- Throws:
SQLException
-
getGroupEntries
public final DbContactsEntry[] getGroupEntries(Connection c, long groupId) throws SQLException
- Specified by:
getGroupEntries
in interfaceDbContactsHandler
- Throws:
SQLException
-
getGroupEntries
public abstract DbContactsEntry[] getGroupEntries(Connection c, long[] groupIds) throws SQLException
- Specified by:
getGroupEntries
in interfaceDbContactsHandler
- Throws:
SQLException
-
getGroupIds
public abstract long[] getGroupIds(Connection c) throws SQLException
- Specified by:
getGroupIds
in interfaceDbContactsHandler
- Throws:
SQLException
-
loadEntrySettings
public final void loadEntrySettings(Connection c, DbContactsEntry entry) throws SQLException
- Specified by:
loadEntrySettings
in interfaceDbContactsHandler
- Throws:
SQLException
-
loadEntrySettings
public abstract void loadEntrySettings(Connection c, DbContactsEntry[] entries) throws SQLException
- Specified by:
loadEntrySettings
in interfaceDbContactsHandler
- Throws:
SQLException
-
removeEntry
public final void removeEntry(Connection c, long id) throws SQLException
- Specified by:
removeEntry
in interfaceDbContactsHandler
- Throws:
SQLException
-
removeEntries
public abstract void removeEntries(Connection c, long[] ids) throws SQLException
- Specified by:
removeEntries
in interfaceDbContactsHandler
- Throws:
SQLException
-
removeGroup
public final void removeGroup(Connection c, long id) throws SQLException
- Specified by:
removeGroup
in interfaceDbContactsHandler
- Throws:
SQLException
-
removeGroups
public abstract void removeGroups(Connection c, long[] ids) throws SQLException
- Specified by:
removeGroups
in interfaceDbContactsHandler
- Throws:
SQLException
-
saveEntry
public abstract void saveEntry(Connection c, DbContactsEntry entry) throws SQLException
- Specified by:
saveEntry
in interfaceDbContactsHandler
- Throws:
SQLException
-
saveGroup
public abstract void saveGroup(Connection c, DbContactsGroup group) throws SQLException
- Specified by:
saveGroup
in interfaceDbContactsHandler
- Throws:
SQLException
-
setEntryActive
public final void setEntryActive(Connection c, long entryId, boolean active) throws SQLException
- Specified by:
setEntryActive
in interfaceDbContactsHandler
- Throws:
SQLException
-
setEntryGroup
public final void setEntryGroup(Connection c, long entryId, long groupId) throws SQLException
- Specified by:
setEntryGroup
in interfaceDbContactsHandler
- Throws:
SQLException
-
setEntriesActive
public abstract void setEntriesActive(Connection c, long[] entryIds, boolean active) throws SQLException
- Specified by:
setEntriesActive
in interfaceDbContactsHandler
- Throws:
SQLException
-
setEntriesGroup
public abstract void setEntriesGroup(Connection c, long[] entryIds, long groupId) throws SQLException
- Specified by:
setEntriesGroup
in interfaceDbContactsHandler
- Throws:
SQLException
-
-