Debian Codegraph @

templates/other/ContentProvider/root/src/app_package/ContentProvider.java.ftl

raw
1 package ${packageName};
2
3 import android.content.ContentProvider;
4 import android.content.ContentValues;
5 import android.database.Cursor;
6 import android.net.Uri;
7
8 public class ${className} extends ContentProvider {
9 public ${className}() {
10 }
11
12 @Override
13 public int delete(Uri uri, String selection, String[] selectionArgs) {
14 // Implement this to handle requests to delete one or more rows.
15 throw new UnsupportedOperationException("Not yet implemented");
16 }
17
18 @Override
19 public String getType(Uri uri) {
20 // TODO: Implement this to handle requests for the MIME type of the data
21 // at the given URI.
22 throw new UnsupportedOperationException("Not yet implemented");
23 }
24
25 @Override
26 public Uri insert(Uri uri, ContentValues values) {
27 // TODO: Implement this to handle requests to insert a new row.
28 throw new UnsupportedOperationException("Not yet implemented");
29 }
30
31 @Override
32 public boolean onCreate() {
33 // TODO: Implement this to initialize your content provider on startup.
34 return false;
35 }
36
37 @Override
38 public Cursor query(Uri uri, String[] projection, String selection,
39 String[] selectionArgs, String sortOrder) {
40 // TODO: Implement this to handle query requests from clients.
41 throw new UnsupportedOperationException("Not yet implemented");
42 }
43
44 @Override
45 public int update(Uri uri, ContentValues values, String selection,
46 String[] selectionArgs) {
47 // TODO: Implement this to handle requests to update one or more rows.
48 throw new UnsupportedOperationException("Not yet implemented");
49 }
50 }