Interface DbContactsHandler
-
- All Known Implementing Classes:
DbContactsHandlerImpl
,HSqlDbContactsHandler
public interface DbContactsHandler
DbContactsHandler.- Author:
- Andreas Rudolph
-
-
Method Summary
-
-
-
Method Detail
-
getEntry
DbContactsEntry getEntry(Connection c, long id) throws SQLException
- Throws:
SQLException
-
getEntry
DbContactsEntry getEntry(Connection c, javax.mail.internet.InternetAddress address) throws SQLException
- Throws:
SQLException
-
getEntries
DbContactsEntry[] getEntries(Connection c) throws SQLException
- Throws:
SQLException
-
getEntries
DbContactsEntry[] getEntries(Connection c, long[] ids) throws SQLException
- Throws:
SQLException
-
getEntriesByAddress
@Deprecated DbContactsEntry[] getEntriesByAddress(Connection c, String key, String value, boolean ignoreCase) throws SQLException
Deprecated.- Throws:
SQLException
-
getEntriesByBirthday
DbContactsEntry[] getEntriesByBirthday(Connection c, Date begin, Date end) throws SQLException
- Throws:
SQLException
-
getEntriesByBirthday
DbContactsEntry[] getEntriesByBirthday(Connection c, Date begin, Date end, Boolean active) throws SQLException
- Throws:
SQLException
-
getEntriesByInternetAddress
DbContactsEntry[] getEntriesByInternetAddress(Connection c, javax.mail.internet.InternetAddress address) throws SQLException
- Throws:
SQLException
-
getEntriesByInternetAddress
DbContactsEntry[] getEntriesByInternetAddress(Connection c, javax.mail.internet.InternetAddress address, int limit) throws SQLException
- Throws:
SQLException
-
getEntriesByKeyword
DbContactsEntry[] getEntriesByKeyword(Connection c, String keyword) throws SQLException
- Throws:
SQLException
-
getEntriesByKeyword
DbContactsEntry[] getEntriesByKeyword(Connection c, String keyword, int limit) throws SQLException
- Throws:
SQLException
-
getEntriesByKeyword
DbContactsEntry[] getEntriesByKeyword(Connection c, String keyword, long groupId, int limit) throws SQLException
- Throws:
SQLException
-
getEntriesByKeyword
DbContactsEntry[] getEntriesByKeyword(Connection c, String keyword, long[] groupIds, int limit) throws SQLException
- Throws:
SQLException
-
getEntriesBySetting
@Deprecated DbContactsEntry[] getEntriesBySetting(Connection c, String key, String value, boolean ignoreCase) throws SQLException
Deprecated.- Throws:
SQLException
-
getEntryId
long getEntryId(Connection c, String publicId) throws SQLException
- Throws:
SQLException
-
getEntryIds
long[] getEntryIds(Connection c) throws SQLException
- Throws:
SQLException
-
getGroup
DbContactsGroup getGroup(Connection c, long id) throws SQLException
- Throws:
SQLException
-
getGroups
DbContactsGroup[] getGroups(Connection c) throws SQLException
- Throws:
SQLException
-
getGroups
DbContactsGroup[] getGroups(Connection c, long[] ids) throws SQLException
- Throws:
SQLException
-
getGroups
DbContactsGroup[] getGroups(Connection c, String name) throws SQLException
- Throws:
SQLException
-
getGroupEntries
DbContactsEntry[] getGroupEntries(Connection c, long groupId) throws SQLException
- Throws:
SQLException
-
getGroupEntries
DbContactsEntry[] getGroupEntries(Connection c, long[] groupIds) throws SQLException
- Throws:
SQLException
-
getGroupIds
long[] getGroupIds(Connection c) throws SQLException
- Throws:
SQLException
-
loadEntrySettings
void loadEntrySettings(Connection c, DbContactsEntry entry) throws SQLException
- Throws:
SQLException
-
loadEntrySettings
void loadEntrySettings(Connection c, DbContactsEntry[] entries) throws SQLException
- Throws:
SQLException
-
removeEntry
void removeEntry(Connection c, long id) throws SQLException
- Throws:
SQLException
-
removeEntries
void removeEntries(Connection c, long[] ids) throws SQLException
- Throws:
SQLException
-
removeGroup
void removeGroup(Connection c, long id) throws SQLException
- Throws:
SQLException
-
removeGroups
void removeGroups(Connection c, long[] ids) throws SQLException
- Throws:
SQLException
-
saveEntry
void saveEntry(Connection c, DbContactsEntry entry) throws SQLException
- Throws:
SQLException
-
saveGroup
void saveGroup(Connection c, DbContactsGroup group) throws SQLException
- Throws:
SQLException
-
setEntryActive
void setEntryActive(Connection c, long entryId, boolean active) throws SQLException
- Throws:
SQLException
-
setEntryGroup
void setEntryGroup(Connection c, long entryId, long groupId) throws SQLException
- Throws:
SQLException
-
setEntriesActive
void setEntriesActive(Connection c, long[] entryIds, boolean active) throws SQLException
- Throws:
SQLException
-
setEntriesGroup
void setEntriesGroup(Connection c, long[] entryIds, long groupId) throws SQLException
- Throws:
SQLException
-
-