Skip to content

Commit

Permalink
Get all the files commited
Browse files Browse the repository at this point in the history
  • Loading branch information
bytor99999 committed Oct 28, 2011
1 parent ce04c5d commit 7b20733
Show file tree
Hide file tree
Showing 156 changed files with 3,901 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
<classpathentry kind="src" path="gen"/>
<classpathentry kind="src" path="test"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="output" path="bin"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
18 changes: 18 additions & 0 deletions .gitignore
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
10 changes: 5 additions & 5 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.springframework.mobile.orm"
package="com.perfectworldprogramming.mobile.orm"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="8" />

<instrumentation android:targetPackage="org.springframework.mobile.orm" android:name="android.test.InstrumentationTestRunner" />
<instrumentation android:targetPackage="com.perfectworldprogramming.mobile.orm" android:name="android.test.InstrumentationTestRunner" />

<!--application android:icon="@drawable/icon" android:label="@string/app_name">
<uses-library android:name="android.test.runner" />
</application-->

<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name="Main"
<activity android:name=".Mainnnnnnperfectworldprogramming.mobile.orm.Main"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand All @@ -25,8 +25,8 @@
</application>

<!--instrumentation android:label="ORM Unit Tests"
android:targetPackage="org.springframework.mobile.orm.test"
android:name="android.test.InstrumentationTestRunner" /--><!-- org.springframework.mobile.orm.test.MyInstrumentationTestRunner -->
android:targetPackage="com.perfectworldprogramming.mobile.orm.test"
android:name="android.test.InstrumentationTestRunner" /--><!-- com.perfectworldprogramming.mobile.orm.test.MyInstrumentationTestRunner -->

<uses-permission android:name="android.permission.PERSISTENT_ACTIVITY"/>

Expand Down
15 changes: 15 additions & 0 deletions README
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 added bin/classes.dex
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 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 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 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/org/springframework/mobile/orm/Main.class
Binary file not shown.
Binary file added bin/org/springframework/mobile/orm/R$attr.class
Binary file not shown.
Binary file added bin/org/springframework/mobile/orm/R$drawable.class
Binary file not shown.
Binary file added bin/org/springframework/mobile/orm/R$layout.class
Binary file not shown.
Binary file added bin/org/springframework/mobile/orm/R$string.class
Binary file not shown.
Binary file added bin/org/springframework/mobile/orm/R.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 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/org/springframework/mobile/orm/test/Main.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 not shown.
Binary file not shown.
Binary file not shown.
Binary file added bin/resources.ap_
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* should not be modified by hand.
*/

package org.springframework.mobile.orm;
package com.perfectworldprogramming.mobile.orm;

public final class R {
public static final class attr {
Expand Down
36 changes: 36 additions & 0 deletions proguard.cfg
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 *;
}
11 changes: 11 additions & 0 deletions project.properties
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
Binary file added res/drawable-hdpi/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-ldpi/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions res/layout/main.xml
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>
5 changes: 5 additions & 0 deletions res/values/strings.xml
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>
Loading

0 comments on commit 7b20733

Please sign in to comment.