Database

com.anywherecommerce.android.sdk.persistence

Class Database

  • java.lang.Object

  • com.anywherecommerce.android.sdk.persistence.Database

  • public class <span class="typeNameLabel">Database</span>
    extends java.lang.Object
    

Field Summary

  Modifier and TypeField and Description`static java.lang.String``<span class="memberNameLink">

DOCUMENT_COLUMN_NAME static java.lang.String``

KEYWORD_SEARCH_COLUMN_NAME static java.lang.String``

OPERATOR_COLUMN_NAME static boolean``

requiresMigration static java.lang.String``

RUNNING_LOG_TABLE_NAME static java.lang.String``

SESSION_LOG_TABLE_NAME static java.lang.String``

STATUS_COLUMN_NAME static java.lang.String``

STATUS2_COLUMN_NAME static java.lang.String``

TRANSACTION_TIME_COLUMN_NAME static java.lang.String``

TRANSACTIONS_SUMMARY_TABLE static java.lang.String``

TRANSACTIONS_TABLE static java.lang.String``

TYPE_COLUMN_NAME static java.lang.String``

UNIVERSAL_ID_COLUMN_NAME`

Method Summary

  Modifier and TypeMethod and Description`void``<span class="memberNameLink">

close() void``

delete(java.lang.String id) void``

delete(

Transaction app) void``

delete(

TransactionSummary app) boolean``

exists(java.lang.String id)

Transaction``

fetch(java.lang.String id) java.util.ArrayList<

TransactionSummary>``

fetchAll(java.lang.String orderByClause) java.util.ArrayList<

TransactionSummary>````

fetchAllByKeyword(java.lang.String keyword,
java.lang.String statusFilter,
java.lang.String operator,
java.util.Date dateFrom,
java.util.Date dateTo,
java.lang.String orderByClause)
`` java.util.ArrayList<

TransactionSummary>``

fetchByInternalId(java.lang.String internalId) static

Database``

getInstance() void``

persist(

Transaction transaction) Cursor````

query(java.lang.String table,
java.lang.String[] columns,
java.lang.String selection,
java.lang.String[] selectionArgs,
java.lang.String groupBy,
java.lang.String having,
java.lang.String orderBy)
` `Cursor

rawQuery(java.lang.String string)`

Methods inherited from class java.lang.Object

        `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

TRANSACTIONS_SUMMARY_TABLE

        `public static final java.lang.String TRANSACTIONS_SUMMARY_TABLE`See Also:[Constant Field Values](#constant-values.html#com.anywherecommerce.android.sdk.persistence.Database.TRANSACTIONS_SUMMARY_TABLE)

TRANSACTIONS_TABLE

        `public static final java.lang.String TRANSACTIONS_TABLE`See Also:[Constant Field Values](#constant-values.html#com.anywherecommerce.android.sdk.persistence.Database.TRANSACTIONS_TABLE)

RUNNING_LOG_TABLE_NAME

        `public static final java.lang.String RUNNING_LOG_TABLE_NAME`See Also:[Constant Field Values](#constant-values.html#com.anywherecommerce.android.sdk.persistence.Database.RUNNING_LOG_TABLE_NAME)

SESSION_LOG_TABLE_NAME

        `public static final java.lang.String SESSION_LOG_TABLE_NAME`See Also:[Constant Field Values](#constant-values.html#com.anywherecommerce.android.sdk.persistence.Database.SESSION_LOG_TABLE_NAME)

UNIVERSAL_ID_COLUMN_NAME

        `public static final java.lang.String UNIVERSAL_ID_COLUMN_NAME`See Also:[Constant Field Values](#constant-values.html#com.anywherecommerce.android.sdk.persistence.Database.UNIVERSAL_ID_COLUMN_NAME)

DOCUMENT_COLUMN_NAME

        `public static final java.lang.String DOCUMENT_COLUMN_NAME`See Also:[Constant Field Values](#constant-values.html#com.anywherecommerce.android.sdk.persistence.Database.DOCUMENT_COLUMN_NAME)

TYPE_COLUMN_NAME

        `public static final java.lang.String TYPE_COLUMN_NAME`See Also:[Constant Field Values](#constant-values.html#com.anywherecommerce.android.sdk.persistence.Database.TYPE_COLUMN_NAME)

KEYWORD_SEARCH_COLUMN_NAME

        `public static final java.lang.String KEYWORD_SEARCH_COLUMN_NAME`See Also:[Constant Field Values](#constant-values.html#com.anywherecommerce.android.sdk.persistence.Database.KEYWORD_SEARCH_COLUMN_NAME)

STATUS_COLUMN_NAME

        `public static final java.lang.String STATUS_COLUMN_NAME`See Also:[Constant Field Values](#constant-values.html#com.anywherecommerce.android.sdk.persistence.Database.STATUS_COLUMN_NAME)

STATUS2_COLUMN_NAME

        `public static final java.lang.String STATUS2_COLUMN_NAME`See Also:[Constant Field Values](#constant-values.html#com.anywherecommerce.android.sdk.persistence.Database.STATUS2_COLUMN_NAME)

OPERATOR_COLUMN_NAME

        `public static final java.lang.String OPERATOR_COLUMN_NAME`See Also:[Constant Field Values](#constant-values.html#com.anywherecommerce.android.sdk.persistence.Database.OPERATOR_COLUMN_NAME)

TRANSACTION_TIME_COLUMN_NAME

        `public static final java.lang.String TRANSACTION_TIME_COLUMN_NAME`See Also:[Constant Field Values](#constant-values.html#com.anywherecommerce.android.sdk.persistence.Database.TRANSACTION_TIME_COLUMN_NAME)

requiresMigration

        `public static boolean requiresMigration`

Method Detail

getInstance

        `public static 

Database getInstance()`

persist

        ```
        public void persist(

Transaction transaction)
throws java.lang.Exception
`` Throws:java.lang.Exception`

exists

        `public boolean exists(java.lang.String id)`

fetch

        `public 

Transaction fetch(java.lang.String id)`

fetchAll

        ```
        public java.util.ArrayList<

TransactionSummary> fetchAll(java.lang.String orderByClause)
throws java.lang.IllegalAccessException
`` Throws:java.lang.IllegalAccessException`

fetchAllByKeyword

        ```
        public java.util.ArrayList<

TransactionSummary> fetchAllByKeyword(java.lang.String keyword,
java.lang.String statusFilter,
java.lang.String operator,
java.util.Date dateFrom,
java.util.Date dateTo,
java.lang.String orderByClause)
throws java.lang.IllegalAccessException
`` Throws:java.lang.IllegalAccessException`

fetchByInternalId

        ```
        public java.util.ArrayList<

TransactionSummary> fetchByInternalId(java.lang.String internalId)
throws java.lang.IllegalAccessException
`` Throws:java.lang.IllegalAccessException`

delete

        `public void delete(

Transaction app)`

delete

        `public void delete(

TransactionSummary app)`

delete

        `public void delete(java.lang.String id)`

close

        `public void close()`

query

        ```
        public Cursor query(java.lang.String table,
                            java.lang.String[] columns,
                            java.lang.String selection,
                            java.lang.String[] selectionArgs,
                            java.lang.String groupBy,
                            java.lang.String having,
                            java.lang.String orderBy)
        ```

rawQuery

        `public Cursor rawQuery(java.lang.String string)`