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 StringFIELD_ACCOUNT_AUTO_RETRIEVALstatic StringFIELD_ACCOUNT_AUTO_RETRIEVAL_ATstatic StringFIELD_ACCOUNT_AUTO_RETRIEVAL_INTERVALstatic StringFIELD_ACCOUNT_ENABLEDstatic StringFIELD_ACCOUNT_IDstatic StringFIELD_ACCOUNT_NAMEstatic StringFIELD_ACCOUNT_NOTESstatic StringFIELD_ACCOUNT_TYPEstatic StringFIELD_SETTING_KEYstatic StringFIELD_SETTING_VALUEstatic StringPROC_REMOVE_ACCOUNTSstatic StringPROC_REMOVE_ACCOUNTS_SETTINGSstatic StringPROC_SAVE_ACCOUNTSstatic StringPROC_SAVE_ACCOUNTS_SETTINGSstatic StringTABLE_ACCOUNTSstatic StringTABLE_ACCOUNTS_SETTINGSstatic StringVIEW_ACCOUNTSstatic StringVIEW_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)DbMailAccountgetPrivateAccount(Connection c)DbMailAccount[]getSharedAccounts(Connection c)voidloadAccountSettings(Connection c, DbMailAccount[] accounts)voidremoveAccounts(Connection c, long[] ids)voidsaveAccount(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:
getAccountsin interfaceDbMailAccountHandler- Specified by:
getAccountsin classDbMailAccountHandlerImpl- Throws:
SQLException
-
getAccounts
public DbMailAccount[] getAccounts(Connection c, long[] ids) throws SQLException
- Specified by:
getAccountsin interfaceDbMailAccountHandler- Specified by:
getAccountsin classDbMailAccountHandlerImpl- Throws:
SQLException
-
getAccountsForAutoRetrieval
public DbMailAccount[] getAccountsForAutoRetrieval(Connection c) throws SQLException
- Specified by:
getAccountsForAutoRetrievalin interfaceDbMailAccountHandler- Specified by:
getAccountsForAutoRetrievalin classDbMailAccountHandlerImpl- Throws:
SQLException
-
getAccountIds
public long[] getAccountIds(Connection c) throws SQLException
- Specified by:
getAccountIdsin interfaceDbMailAccountHandler- Specified by:
getAccountIdsin classDbMailAccountHandlerImpl- Throws:
SQLException
-
getPrivateAccount
public DbMailAccount getPrivateAccount(Connection c) throws SQLException
- Specified by:
getPrivateAccountin interfaceDbMailAccountHandler- Specified by:
getPrivateAccountin classDbMailAccountHandlerImpl- Throws:
SQLException
-
getSharedAccounts
public DbMailAccount[] getSharedAccounts(Connection c) throws SQLException
- Specified by:
getSharedAccountsin interfaceDbMailAccountHandler- Specified by:
getSharedAccountsin classDbMailAccountHandlerImpl- Throws:
SQLException
-
loadAccountSettings
public void loadAccountSettings(Connection c, DbMailAccount[] accounts) throws SQLException
- Specified by:
loadAccountSettingsin interfaceDbMailAccountHandler- Specified by:
loadAccountSettingsin classDbMailAccountHandlerImpl- Throws:
SQLException
-
removeAccounts
public void removeAccounts(Connection c, long[] ids) throws SQLException
- Specified by:
removeAccountsin interfaceDbMailAccountHandler- Specified by:
removeAccountsin classDbMailAccountHandlerImpl- Throws:
SQLException
-
saveAccount
public void saveAccount(Connection c, DbMailAccount account) throws SQLException
- Specified by:
saveAccountin interfaceDbMailAccountHandler- Specified by:
saveAccountin classDbMailAccountHandlerImpl- Throws:
SQLException
-
-