Skip to content
Andrew G edited this page Feb 2, 2015 · 12 revisions

Legacy Change Log

This section will contain changes from other releases on the xx.xx version. For example if the library is at version 2.1.5, then all versions earlier than 2.1 will be shown here.

1.1.xx

1.2.0

  1. Added SQLite Triggers!
  2. Added the IN and NOT IN operators to Condition
  3. Fixes an issue where a FlowCursorList was A. not caching models and B. not handling ModelView properly, thanks Cain.
  4. Added ForeignKeyAction which specify the action to take when updates and deletes occur to the foreign key. Thanks Michal
  5. Added the Insert statement wrapper! Particularily useful for Trigger

1.1.7

  1. ConditionQueryBuilder no longer maps columnName to a Condition since if we wanted to do OR operation on the same column multiple times, it would only take the last condition since it was a Map of columnNames.
  2. Added Condition.Operation constant class for operation and SQL method constants
  3. Fixed the IS NULL and IS NOT NULL conditions and wrote test to ensure working

1.1.6

  1. Fixes issue where boxed primitive values such as Long, when null, were throwing NullPointerException in bindToStatement(). Added a test to prevent any future issues.
  2. From.as() wasn't using type parameters in return, thus a warning would be thrown.
  3. Added two new methods to Queriable: queryCursorList() and queryTableList(). These corresponding methods will make constructing a FlowCursorList or FlowTableList from a completed query much simpler.

1.1.5

  1. Fixed issue where using non-string foreign keys caused a build error.
  2. Optimized loading foreign key objects from the DB by checking using the Cursor.isNull() method before calling a SELECT query (thanks Michal)
  3. Made FlowCursorList and FlowTableList more robust and flexible by enabling Queriable objects to be used to generate it's internal cursor. Added Condition... parameter to FlowTableList as well.
  4. Added two new methods to Queriable: queryClose() will execute a query on the DB and close the Cursor if needed. getTable() simply returns the table that the query comes from.
  5. Made TransactionListenerAdapter both the class and the onResultReceived() method no longer abstract to make it useful in situations other than results.

1.1.4

  1. Fixed issue where Collate enum was not appending COLLATE to the SQL query
  2. Added the ability to chain Condition together using different separators. Just call separator() on a Condition used in a ConditionQueryBuilder.
  3. Added tests for Between and these fixes.

1.1.3

  1. Fixes an issue with Boolean converter throwing a NullPointerException when a ModelContainer does not contain the field.
  2. Added null checks in the toModel() method of a ContainerAdapter definition class.
  3. We bindNull() and putNull() for missing foreign key fields in the ````$Adapter``` definition, previously this bug did not allow the removal of foreign key object fields.
  4. Added a purgeQueue() and the ability to set the priority of the batches in the DBBatchSaveQueue
  5. Added the Between method for SQLite statements
  6. Added a method in Delete for clearing multiple tables

1.1.2

  1. Added support for SQLite COLLATE in @Column and Condition classes
  2. Added support for DEFAULT values in column creation.
  3. Deprecated ResultReceiver to replace it with TransactionListenerAdapter which provides a base implementation of TransactionListener. TransactionListener provides more callback methods to the state of a DB transaction. As a result ResultReceiver is no longer an interface, rather an abstract class. NOTE: BaseResultTransaction's TransactionListener must return true from hasResult(BaseResultTransaction, ResultClass) to have onResultReceived() called.
  4. FlowCursorList is more flexible by adding methods to clear the cache, dynamically enable/disable the cache, and set a custom Where for the cursor to use.

1.1.1

Fixed an issue where TypeConverter for boolean values would incorrectly try to cast in bindLong to Boolean

1.0.xx

1.0.3

  1. Added JSONArrayModel, which will operate on all items and backed by a JSONArray
  2. @ContainerKey enables different key from a model container @Key field

1.0.2

  1. Fixes issue in FlowCursorList that caused the cursor to reset everytime getItem(int) was called
  2. Fixes "DSC" to "DESC" for SQL orderby
Clone this wiki locally