b3c4d9308e4fd66beca3a7824a5db749ce2aace1 |
|
14-Jun-2017 |
Yuichi Araki <yaraki@google.com> |
Add @Transaction annotation @Transaction can be put on methods in abstract Dao classes to make it run in a transaction. A non-abstract method is overridden in the derived Dao class and wrapped in a transaction. Test: SimpleEntityReadWriteTest, DaoWriterTest Bug: 66011356 Change-Id: I40ba2c312aa5609ecee950784498a1d811ff5722
/frameworks/support/room/compiler/src/main/kotlin/android/arch/persistence/room/writer/DaoWriter.kt
|
d2649c45a34db46fb03a24dcb2a443a92298b5ad |
|
01-Aug-2017 |
Sergey Vasilinets <sergeyv@google.com> |
Fix compilation warnings in Room Test: refactoring. Change-Id: Id47b88f6ec4e12822865f38845c352093cdef4ee
/frameworks/support/room/compiler/src/main/kotlin/android/arch/persistence/room/writer/DaoWriter.kt
|
d9a1c84670c4f684943c23efc8813c20ef965eca |
|
20-Jul-2017 |
Yigit Boyar <yboyar@google.com> |
Keep list size variables list for DELETE|UPDATE queries This CL fixes a bug where we would assume that @Query annotations that run DELETE or UPDATE queries would not receive any arguments. This was caused because no-arg queries are prepared separately. Bug: 63872538 Test: SimpleEntityReadWriteTest Change-Id: I87883a9d67932f0176e6e0f26ef8bd071633f34b
/frameworks/support/room/compiler/src/main/kotlin/android/arch/persistence/room/writer/DaoWriter.kt
|
e088306a4368329d3e00b3da0f4682fc37e54cb8 |
|
13-Jul-2017 |
Yuichi Araki <yaraki@google.com> |
Fix @Query without any parameters Bug: 63608092 Test: SimpleEntityReadWriteTest and DaoWriterTest Change-Id: I9998c18ea2f16501ea57925d6e5b0605ba2f946b
/frameworks/support/room/compiler/src/main/kotlin/android/arch/persistence/room/writer/DaoWriter.kt
|
86b3f8d9bd637749668174e0736fe9fbecbcfb09 |
|
27-Jun-2017 |
Yuichi Araki <yaraki@google.com> |
Multiple Entities in Insert, Update and Delete Dao can now have @Insert, @Update and @Delete methods with more than one types of Entities. Bug: 62682405 Test: SimpleEntityReadWriteTest, *ProcessorTests Change-Id: Ib2f1afabff237f26d250b3fcf7b2fdf50d01ecff (cherry picked from commit 77d77afb0cde4df833c6d10f641de2dc81f859b8)
/frameworks/support/room/compiler/src/main/kotlin/android/arch/persistence/room/writer/DaoWriter.kt
|
17caba59e1fd850fe1381d7311d23afc4e07cdfb |
|
05-Jun-2017 |
Yuichi Araki <yaraki@google.com> |
Allow Dao to have constructor with DB param This change allows abstract Dao class to have a constructor with a RoomDatabase parameter. The implementation Dao class will call it with the approppriate database instance. Bug: 38488747 Test: DaoWriterTest, DatabaseProcessorTest Change-Id: I6d7fa98b19a99b7a171983422c882557bde306bc
/frameworks/support/room/compiler/src/main/kotlin/android/arch/persistence/room/writer/DaoWriter.kt
|
2236f645056249c7b7b7bd9cfb67d8e5256c446d |
|
04-Jun-2017 |
Yigit Boyar <yboyar@google.com> |
Support DOA base classes This CL fixes an isuse where a generic base dao would be processed properly but the generated code would still use the generics hence won't compile. Bug: 62103620 Test: BaseDaoTest.kt Change-Id: Ibb6ad15e1376f121410a32f770dce442368ae267
/frameworks/support/room/compiler/src/main/kotlin/android/arch/persistence/room/writer/DaoWriter.kt
|
64db0cc15b78b62a1d44a70fc8b4552e660d952c |
|
17-Apr-2017 |
Yigit Boyar <yboyar@google.com> |
Mass package renaming from android.support to android.arch Bug: 37429162 Test: ./gradlew check passes Change-Id: I911766254b6a9f957ef90429a1efc01c209d693a
/frameworks/support/room/compiler/src/main/kotlin/android/arch/persistence/room/writer/DaoWriter.kt
|