-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ce04c5d
commit 7b20733
Showing
156 changed files
with
3,901 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# osx noise | ||
.DS_Store | ||
profile | ||
|
||
# xcode noise | ||
build/* | ||
*.mode1 | ||
*.mode1v3 | ||
*.mode2v3 | ||
*.perspective | ||
*.perspectivev3 | ||
*.pbxuser | ||
*.xcworkspace | ||
xcuserdata | ||
|
||
# svn & cvs | ||
.svn | ||
CVS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Welcome to AndroidSQLLiteOrm. | ||
|
||
The purpose of this project is to simplify the Android SQLLite apis. I found the apis to be un-intuitive. Now un-intuitive to one person is different to another. So to many out there the Android SQLLite apis are perfectly fine. Not to me, so I thought about projects that are already out there that simplify Data Access. And since I do a lot of work with the Spring Framework, I thought I could match Spring's JdbcTemplate api and make it run on Android. And that is exactly what I have done. | ||
|
||
So, if you have used Spring's JdbcTemplate before, then you know how to use AndroidSQLLiteOrm. | ||
|
||
I have added a couple of features above the JdbcTemplate. I have added basic ORM support. Very generic and basic. So I do not do associations. I do Foreign Key Associations of ManyToOne, simple for saving Child records to have the FK stored in its table. But I do not retrieve any associations when querying. The ORM support works really well with Creating and Android database, where Create Table scripts can be automatically generated, as well as Alter Table scripts for updates to your database version. | ||
|
||
For the best documentation on how to use this project. Check out the full set of Unit and Integration tests. You can even run the tests if you like to prove that it works. | ||
|
||
Thank you for looking at my project | ||
|
||
Mark Spritzler | ||
|
||
Please raise issues/Feedback and comments on GitHub to this project. |
Binary file not shown.
Binary file added
BIN
+13.6 KB
bin/classes/com/perfectworldprogramming/mobile/orm/AndroidSQLiteTemplate.class
Binary file not shown.
Binary file added
BIN
+8.78 KB
bin/classes/com/perfectworldprogramming/mobile/orm/CursorAdapter.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+460 Bytes
bin/classes/com/perfectworldprogramming/mobile/orm/R$drawable.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+827 Bytes
bin/classes/com/perfectworldprogramming/mobile/orm/annotations/Column.class
Binary file not shown.
Binary file added
BIN
+489 Bytes
bin/classes/com/perfectworldprogramming/mobile/orm/annotations/ColumnSetter.class
Binary file not shown.
Binary file added
BIN
+1.28 KB
bin/classes/com/perfectworldprogramming/mobile/orm/annotations/ColumnType.class
Binary file not shown.
Binary file added
BIN
+598 Bytes
bin/classes/com/perfectworldprogramming/mobile/orm/annotations/ForeignKey.class
Binary file not shown.
Binary file added
BIN
+598 Bytes
bin/classes/com/perfectworldprogramming/mobile/orm/annotations/PrimaryKey.class
Binary file not shown.
Binary file added
BIN
+461 Bytes
bin/classes/com/perfectworldprogramming/mobile/orm/annotations/Transient.class
Binary file not shown.
Binary file added
BIN
+480 Bytes
bin/classes/com/perfectworldprogramming/mobile/orm/creator/CreateStatementGenerator.class
Binary file not shown.
Binary file added
BIN
+6.8 KB
...sses/com/perfectworldprogramming/mobile/orm/creator/SQLLiteCreateStatementGenerator.class
Binary file not shown.
Binary file added
BIN
+514 Bytes
bin/classes/com/perfectworldprogramming/mobile/orm/exception/DataAccessException.class
Binary file not shown.
Binary file added
BIN
+600 Bytes
...classes/com/perfectworldprogramming/mobile/orm/exception/EmptySQLStatementException.class
Binary file not shown.
Binary file added
BIN
+761 Bytes
bin/classes/com/perfectworldprogramming/mobile/orm/exception/ExtraResultsException.class
Binary file not shown.
Binary file added
BIN
+1.2 KB
...es/com/perfectworldprogramming/mobile/orm/exception/InvalidCursorExtractorException.class
Binary file not shown.
Binary file added
BIN
+1.2 KB
...es/com/perfectworldprogramming/mobile/orm/exception/InvalidCursorRowMapperException.class
Binary file not shown.
Binary file added
BIN
+880 Bytes
bin/classes/com/perfectworldprogramming/mobile/orm/exception/InvalidQueryTypeException.class
Binary file not shown.
Binary file added
BIN
+1001 Bytes
...classes/com/perfectworldprogramming/mobile/orm/exception/NoPrimaryKeyFieldException.class
Binary file not shown.
Binary file added
BIN
+761 Bytes
bin/classes/com/perfectworldprogramming/mobile/orm/exception/NoRowsReturnedException.class
Binary file not shown.
Binary file added
BIN
+5.06 KB
bin/classes/com/perfectworldprogramming/mobile/orm/helper/AndroidSQLLiteOpenHelper.class
Binary file not shown.
Binary file added
BIN
+1.84 KB
bin/classes/com/perfectworldprogramming/mobile/orm/helper/DBHelper.class
Binary file not shown.
Binary file added
BIN
+335 Bytes
bin/classes/com/perfectworldprogramming/mobile/orm/interfaces/CursorExtractor.class
Binary file not shown.
Binary file added
BIN
+332 Bytes
bin/classes/com/perfectworldprogramming/mobile/orm/interfaces/CursorRowMapper.class
Binary file not shown.
Binary file added
BIN
+2.29 KB
bin/classes/com/perfectworldprogramming/mobile/orm/interfaces/JdbcOperations.class
Binary file not shown.
Binary file added
BIN
+6.17 KB
bin/classes/com/perfectworldprogramming/mobile/orm/reflection/DomainClassAnalyzer.class
Binary file not shown.
Binary file added
BIN
+25.4 KB
bin/classes/com/perfectworldprogramming/mobile/orm/test/AndroidSQLiteTemplateTests.class
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+1.29 KB
bin/classes/com/perfectworldprogramming/mobile/orm/test/MyInstrumentationTestRunner.class
Binary file not shown.
Binary file added
BIN
+2.4 KB
bin/classes/com/perfectworldprogramming/mobile/orm/test/creator/TableCreatorTest.class
Binary file not shown.
Binary file added
BIN
+2.78 KB
bin/classes/com/perfectworldprogramming/mobile/orm/test/domain/Account.class
Binary file not shown.
Binary file added
BIN
+3.67 KB
bin/classes/com/perfectworldprogramming/mobile/orm/test/domain/Address.class
Binary file not shown.
Binary file added
BIN
+1.47 KB
bin/classes/com/perfectworldprogramming/mobile/orm/test/domain/NoPKDomain.class
Binary file not shown.
Binary file added
BIN
+6.16 KB
bin/classes/com/perfectworldprogramming/mobile/orm/test/domain/Person.class
Binary file not shown.
Binary file added
BIN
+390 Bytes
bin/classes/com/perfectworldprogramming/mobile/orm/test/domain/WrongTypeMappedDomain.class
Binary file not shown.
Binary file added
BIN
+2.17 KB
...ses/com/perfectworldprogramming/mobile/orm/test/helper/AndroidSQLLiteOpenHelperTest.class
Binary file not shown.
Binary file added
BIN
+1.94 KB
bin/classes/com/perfectworldprogramming/mobile/orm/test/helper/DBHelperTests.class
Binary file not shown.
Binary file added
BIN
+2.61 KB
...asses/com/perfectworldprogramming/mobile/orm/test/interfaces/AddressCursorExtractor.class
Binary file not shown.
Binary file added
BIN
+1.75 KB
...asses/com/perfectworldprogramming/mobile/orm/test/interfaces/AddressCursorRowMapper.class
Binary file not shown.
Binary file added
BIN
+4.4 KB
...classes/com/perfectworldprogramming/mobile/orm/test/interfaces/CursorExtractorTests.class
Binary file not shown.
Binary file added
BIN
+6.73 KB
...classes/com/perfectworldprogramming/mobile/orm/test/interfaces/CursorRowMapperTests.class
Binary file not shown.
Binary file added
BIN
+2.65 KB
...lasses/com/perfectworldprogramming/mobile/orm/test/interfaces/PersonCursorExtractor.class
Binary file not shown.
Binary file added
BIN
+1.97 KB
...lasses/com/perfectworldprogramming/mobile/orm/test/interfaces/PersonCursorRowMapper.class
Binary file not shown.
Binary file added
BIN
+5.4 KB
bin/classes/com/perfectworldprogramming/mobile/orm/test/interfaces/SampleDataHelper.class
Binary file not shown.
Binary file added
BIN
+6.03 KB
...ses/com/perfectworldprogramming/mobile/orm/test/reflection/DomainClassAnalyzerTests.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+472 Bytes
bin/org/springframework/mobile/orm/creator/CreateStatementGenerator.class
Binary file not shown.
Binary file added
BIN
+6.66 KB
bin/org/springframework/mobile/orm/creator/SQLLiteCreateStatementGenerator.class
Binary file not shown.
Binary file added
BIN
+498 Bytes
bin/org/springframework/mobile/orm/exception/DataAccessException.class
Binary file not shown.
Binary file added
BIN
+576 Bytes
bin/org/springframework/mobile/orm/exception/EmptySQLStatementException.class
Binary file not shown.
Binary file added
BIN
+737 Bytes
bin/org/springframework/mobile/orm/exception/ExtraResultsException.class
Binary file not shown.
Binary file added
BIN
+1.17 KB
bin/org/springframework/mobile/orm/exception/InvalidCursorExtractorException.class
Binary file not shown.
Binary file added
BIN
+1.17 KB
bin/org/springframework/mobile/orm/exception/InvalidCursorRowMapperException.class
Binary file not shown.
Binary file added
BIN
+856 Bytes
bin/org/springframework/mobile/orm/exception/InvalidQueryTypeException.class
Binary file not shown.
Binary file added
BIN
+977 Bytes
bin/org/springframework/mobile/orm/exception/NoPrimaryKeyFieldException.class
Binary file not shown.
Binary file added
BIN
+737 Bytes
bin/org/springframework/mobile/orm/exception/NoRowsReturnedException.class
Binary file not shown.
Binary file added
BIN
+5.02 KB
bin/org/springframework/mobile/orm/helper/AndroidSQLLiteOpenHelper.class
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+327 Bytes
bin/org/springframework/mobile/orm/interfaces/CursorExtractor.class
Binary file not shown.
Binary file added
BIN
+324 Bytes
bin/org/springframework/mobile/orm/interfaces/CursorRowMapper.class
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+6.07 KB
bin/org/springframework/mobile/orm/reflection/DomainClassAnalyzer.class
Binary file not shown.
Binary file added
BIN
+25 KB
bin/org/springframework/mobile/orm/test/AndroidSQLiteTemplateTests.class
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+1.23 KB
bin/org/springframework/mobile/orm/test/MyInstrumentationTestRunner.class
Binary file not shown.
Binary file added
BIN
+2.34 KB
bin/org/springframework/mobile/orm/test/creator/TableCreatorTest.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+374 Bytes
bin/org/springframework/mobile/orm/test/domain/WrongTypeMappedDomain.class
Binary file not shown.
Binary file added
BIN
+2.1 KB
bin/org/springframework/mobile/orm/test/helper/AndroidSQLLiteOpenHelperTest.class
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+2.53 KB
bin/org/springframework/mobile/orm/test/interfaces/AddressCursorExtractor.class
Binary file not shown.
Binary file added
BIN
+1.69 KB
bin/org/springframework/mobile/orm/test/interfaces/AddressCursorRowMapper.class
Binary file not shown.
Binary file added
BIN
+4.24 KB
bin/org/springframework/mobile/orm/test/interfaces/CursorExtractorTests.class
Binary file not shown.
Binary file added
BIN
+6.55 KB
bin/org/springframework/mobile/orm/test/interfaces/CursorRowMapperTests.class
Binary file not shown.
Binary file added
BIN
+2.56 KB
bin/org/springframework/mobile/orm/test/interfaces/PersonCursorExtractor.class
Binary file not shown.
Binary file added
BIN
+1.9 KB
bin/org/springframework/mobile/orm/test/interfaces/PersonCursorRowMapper.class
Binary file not shown.
Binary file added
BIN
+5.26 KB
bin/org/springframework/mobile/orm/test/interfaces/SampleDataHelper.class
Binary file not shown.
Binary file added
BIN
+5.89 KB
bin/org/springframework/mobile/orm/test/reflection/DomainClassAnalyzerTests.class
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
-optimizationpasses 5 | ||
-dontusemixedcaseclassnames | ||
-dontskipnonpubliclibraryclasses | ||
-dontpreverify | ||
-verbose | ||
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/* | ||
|
||
-keep public class * extends android.app.Activity | ||
-keep public class * extends android.app.Application | ||
-keep public class * extends android.app.Service | ||
-keep public class * extends android.content.BroadcastReceiver | ||
-keep public class * extends android.content.ContentProvider | ||
-keep public class * extends android.app.backup.BackupAgentHelper | ||
-keep public class * extends android.preference.Preference | ||
-keep public class com.android.vending.licensing.ILicensingService | ||
|
||
-keepclasseswithmembernames class * { | ||
native <methods>; | ||
} | ||
|
||
-keepclasseswithmembernames class * { | ||
public <init>(android.content.Context, android.util.AttributeSet); | ||
} | ||
|
||
-keepclasseswithmembernames class * { | ||
public <init>(android.content.Context, android.util.AttributeSet, int); | ||
} | ||
|
||
-keepclassmembers enum * { | ||
public static **[] values(); | ||
public static ** valueOf(java.lang.String); | ||
} | ||
|
||
-keep class * implements android.os.Parcelable { | ||
public static final android.os.Parcelable$Creator *; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# This file is automatically generated by Android Tools. | ||
# Do not modify this file -- YOUR CHANGES WILL BE ERASED! | ||
# | ||
# This file must be checked in Version Control Systems. | ||
# | ||
# To customize properties used by the Ant build system use, | ||
# "ant.properties", and override values to adapt the script to your | ||
# project structure. | ||
|
||
# Project target. | ||
target=android-8 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:orientation="vertical" | ||
android:layout_width="fill_parent" | ||
android:layout_height="fill_parent" | ||
> | ||
<TextView | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:text="@string/hello" | ||
/> | ||
</LinearLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="hello">Hello World, Main!</string> | ||
<string name="app_name">AndroidSQLLiteOrm</string> | ||
</resources> |
Oops, something went wrong.