Created
November 27, 2012 02:37
-
-
Save azuby/4152044 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
Job job = new Job(activity); | |
// Create | |
job.create(); | |
// Read | |
ArrayList<NameValuePair> parameters; | |
Job.where(parameters) | |
// Update | |
job.update(); | |
// Destroy | |
job.destroy(); |
This file contains hidden or 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
public class Job extends Model { | |
private static final String ROUTE = "jobs"; | |
public Job(Activity activity) { | |
super(ROUTE, activity); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment