Class HSqlDbMailAccountHandler
- java.lang.Object
-
- com.openindex.openestate.tool.mail.db.DbMailAccountHandlerImpl
-
- com.openindex.openestate.tool.mail.db.hsql.HSqlDbMailAccountHandler
-
- All Implemented Interfaces:
DbMailAccountHandler
public class HSqlDbMailAccountHandler extends DbMailAccountHandlerImpl
HSqlDbAccountHandler.- Author:
- Andreas Rudolph
-
-
Field Summary
Fields Modifier and Type Field Description static String
FIELD_ACCOUNT_AUTO_RETRIEVAL
static String
FIELD_ACCOUNT_AUTO_RETRIEVAL_AT
static String
FIELD_ACCOUNT_AUTO_RETRIEVAL_INTERVAL
static String
FIELD_ACCOUNT_ENABLED
static String
FIELD_ACCOUNT_ID
static String
FIELD_ACCOUNT_NAME
static String
FIELD_ACCOUNT_NOTES
static String
FIELD_ACCOUNT_TYPE
static String
FIELD_SETTING_KEY
static String
FIELD_SETTING_VALUE
static String
PROC_REMOVE_ACCOUNTS
static String
PROC_REMOVE_ACCOUNTS_SETTINGS
static String
PROC_SAVE_ACCOUNTS
static String
PROC_SAVE_ACCOUNTS_SETTINGS
static String
TABLE_ACCOUNTS
static String
TABLE_ACCOUNTS_SETTINGS
static String
VIEW_ACCOUNTS
static String
VIEW_ACCOUNTS_SETTINGS
-
Constructor Summary
Constructors Constructor Description HSqlDbMailAccountHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long[]
getAccountIds(Connection c)
DbMailAccount[]
getAccounts(Connection c, long[] ids)
DbMailAccount[]
getAccounts(Connection c, DbMailAccount.Type[] types, Boolean enabled)
DbMailAccount[]
getAccountsForAutoRetrieval(Connection c)
DbMailAccount
getPrivateAccount(Connection c)
DbMailAccount[]
getSharedAccounts(Connection c)
void
loadAccountSettings(Connection c, DbMailAccount[] accounts)
void
removeAccounts(Connection c, long[] ids)
void
saveAccount(Connection c, DbMailAccount account)
-
Methods inherited from class com.openindex.openestate.tool.mail.db.DbMailAccountHandlerImpl
getAccount, getAccounts, getAccounts, getAccounts, loadAccountSettings, removeAccount
-
-
-
-
Field Detail
-
PROC_REMOVE_ACCOUNTS
public static final String PROC_REMOVE_ACCOUNTS
- See Also:
- Constant Field Values
-
PROC_REMOVE_ACCOUNTS_SETTINGS
public static final String PROC_REMOVE_ACCOUNTS_SETTINGS
- See Also:
- Constant Field Values
-
PROC_SAVE_ACCOUNTS
public static final String PROC_SAVE_ACCOUNTS
- See Also:
- Constant Field Values
-
PROC_SAVE_ACCOUNTS_SETTINGS
public static final String PROC_SAVE_ACCOUNTS_SETTINGS
- See Also:
- Constant Field Values
-
VIEW_ACCOUNTS
public static final String VIEW_ACCOUNTS
- See Also:
- Constant Field Values
-
VIEW_ACCOUNTS_SETTINGS
public static final String VIEW_ACCOUNTS_SETTINGS
- See Also:
- Constant Field Values
-
TABLE_ACCOUNTS
public static final String TABLE_ACCOUNTS
- See Also:
- Constant Field Values
-
FIELD_ACCOUNT_ID
public static final String FIELD_ACCOUNT_ID
- See Also:
- Constant Field Values
-
FIELD_ACCOUNT_NAME
public static final String FIELD_ACCOUNT_NAME
- See Also:
- Constant Field Values
-
FIELD_ACCOUNT_NOTES
public static final String FIELD_ACCOUNT_NOTES
- See Also:
- Constant Field Values
-
FIELD_ACCOUNT_ENABLED
public static final String FIELD_ACCOUNT_ENABLED
- See Also:
- Constant Field Values
-
FIELD_ACCOUNT_TYPE
public static final String FIELD_ACCOUNT_TYPE
- See Also:
- Constant Field Values
-
FIELD_ACCOUNT_AUTO_RETRIEVAL
public static final String FIELD_ACCOUNT_AUTO_RETRIEVAL
- See Also:
- Constant Field Values
-
FIELD_ACCOUNT_AUTO_RETRIEVAL_INTERVAL
public static final String FIELD_ACCOUNT_AUTO_RETRIEVAL_INTERVAL
- See Also:
- Constant Field Values
-
FIELD_ACCOUNT_AUTO_RETRIEVAL_AT
public static final String FIELD_ACCOUNT_AUTO_RETRIEVAL_AT
- See Also:
- Constant Field Values
-
TABLE_ACCOUNTS_SETTINGS
public static final String TABLE_ACCOUNTS_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
-
-
Method Detail
-
getAccounts
public DbMailAccount[] getAccounts(Connection c, DbMailAccount.Type[] types, Boolean enabled) throws SQLException
- Specified by:
getAccounts
in interfaceDbMailAccountHandler
- Specified by:
getAccounts
in classDbMailAccountHandlerImpl
- Throws:
SQLException
-
getAccounts
public DbMailAccount[] getAccounts(Connection c, long[] ids) throws SQLException
- Specified by:
getAccounts
in interfaceDbMailAccountHandler
- Specified by:
getAccounts
in classDbMailAccountHandlerImpl
- Throws:
SQLException
-
getAccountsForAutoRetrieval
public DbMailAccount[] getAccountsForAutoRetrieval(Connection c) throws SQLException
- Specified by:
getAccountsForAutoRetrieval
in interfaceDbMailAccountHandler
- Specified by:
getAccountsForAutoRetrieval
in classDbMailAccountHandlerImpl
- Throws:
SQLException
-
getAccountIds
public long[] getAccountIds(Connection c) throws SQLException
- Specified by:
getAccountIds
in interfaceDbMailAccountHandler
- Specified by:
getAccountIds
in classDbMailAccountHandlerImpl
- Throws:
SQLException
-
getPrivateAccount
public DbMailAccount getPrivateAccount(Connection c) throws SQLException
- Specified by:
getPrivateAccount
in interfaceDbMailAccountHandler
- Specified by:
getPrivateAccount
in classDbMailAccountHandlerImpl
- Throws:
SQLException
-
getSharedAccounts
public DbMailAccount[] getSharedAccounts(Connection c) throws SQLException
- Specified by:
getSharedAccounts
in interfaceDbMailAccountHandler
- Specified by:
getSharedAccounts
in classDbMailAccountHandlerImpl
- Throws:
SQLException
-
loadAccountSettings
public void loadAccountSettings(Connection c, DbMailAccount[] accounts) throws SQLException
- Specified by:
loadAccountSettings
in interfaceDbMailAccountHandler
- Specified by:
loadAccountSettings
in classDbMailAccountHandlerImpl
- Throws:
SQLException
-
removeAccounts
public void removeAccounts(Connection c, long[] ids) throws SQLException
- Specified by:
removeAccounts
in interfaceDbMailAccountHandler
- Specified by:
removeAccounts
in classDbMailAccountHandlerImpl
- Throws:
SQLException
-
saveAccount
public void saveAccount(Connection c, DbMailAccount account) throws SQLException
- Specified by:
saveAccount
in interfaceDbMailAccountHandler
- Specified by:
saveAccount
in classDbMailAccountHandlerImpl
- Throws:
SQLException
-
-