public class EasStore extends JdbcAbstractStore
JdbcAbstractStore.Creator<T>, JdbcAbstractStore.DataType, JdbcAbstractStore.EntityPopulator<T>, JdbcAbstractStore.SqlOperation<Res>, JdbcAbstractStore.StatementValues<T>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SELECT_HB |
static java.lang.String |
UPSERT_HB |
datasource, logger
Constructor and Description |
---|
EasStore(javax.sql.DataSource dataSource) |
Modifier and Type | Method and Description |
---|---|
void |
deletePendingReset(Account account) |
java.util.Map<java.lang.String,java.lang.String> |
getFolderSyncVersions(Account account) |
Heartbeat |
getHeartbeat(java.lang.String deviceUid) |
java.util.List<SentItem> |
getSentItems(Account account,
int folderId) |
void |
insertClientId(java.lang.String clientId) |
void |
insertPendingReset(Account account) |
void |
insertSentItems(java.util.List<SentItem> items) |
boolean |
isKnownClientId(java.lang.String clientId) |
java.lang.Boolean |
needReset(Account account) |
void |
resetSentItems(Account account,
int folderId) |
void |
resetSentItems(java.lang.String device) |
void |
setFolderSyncVersions(Account account,
java.util.Map<java.lang.String,java.lang.String> versions) |
void |
setHeartbeat(Heartbeat heartbeat) |
batchInsert, batchInsert, delete, doOrContinue, doOrFail, getConnection, insert, insert, insert, insert, insertAndReturn, insertWithSerial, inTransaction, lastInsertId, select, select, select, staticInTransaction, unique, unique, unique, unique, update, update, update, update, update
public static final java.lang.String SELECT_HB
public static final java.lang.String UPSERT_HB
public Heartbeat getHeartbeat(java.lang.String deviceUid) throws java.sql.SQLException
java.sql.SQLException
public void setHeartbeat(Heartbeat heartbeat) throws ServerFault
ServerFault
public void insertPendingReset(Account account) throws ServerFault
ServerFault
public java.lang.Boolean needReset(Account account) throws java.sql.SQLException
java.sql.SQLException
public void deletePendingReset(Account account) throws java.sql.SQLException
java.sql.SQLException
public void insertSentItems(java.util.List<SentItem> items) throws ServerFault
ServerFault
public java.util.List<SentItem> getSentItems(Account account, int folderId) throws java.sql.SQLException
java.sql.SQLException
public void resetSentItems(Account account, int folderId) throws java.sql.SQLException
java.sql.SQLException
public void resetSentItems(java.lang.String device) throws java.sql.SQLException
java.sql.SQLException
public boolean isKnownClientId(java.lang.String clientId) throws java.sql.SQLException
java.sql.SQLException
public void insertClientId(java.lang.String clientId) throws java.sql.SQLException
java.sql.SQLException
public void setFolderSyncVersions(Account account, java.util.Map<java.lang.String,java.lang.String> versions) throws ServerFault
ServerFault
public java.util.Map<java.lang.String,java.lang.String> getFolderSyncVersions(Account account) throws java.sql.SQLException
java.sql.SQLException
Copyright © 2021. All Rights Reserved.