|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.ObjectContentProvider
netsurfers.gicp.net.provider.DatabaseProvider
public class DatabaseProvider
DatabaseProvider extend from ContentProvider
which
can query, insert, update, delete the data
字段摘要 | |
---|---|
static Uri |
CONTENT_URI
|
构造方法摘要 | |
---|---|
DatabaseProvider()
|
方法摘要 | |
---|---|
int |
delete(Uri uri,
String where,
String[] whereArgs)
A request to delete one or more rows |
String |
getType(Uri uri)
Return the MIME type of the data at the given URI |
Uri |
insert(Uri uri,
ContentValues initialValues)
Implement this to insert a new row |
boolean |
onCreate()
Called when the provider is being started |
Cursor |
query(Uri uri,
String[] projection,
String selection,
String[] selectionArgs,
String sortOrder)
Receives a query request from a client in a local process, and returns a Cursor |
int |
update(Uri uri,
ContentValues values,
String selection,
String[] selectionArgs)
Update a content URI |
从类 java.lang.Object 继承的方法 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
字段详细信息 |
---|
public static final Uri CONTENT_URI
构造方法详细信息 |
---|
public DatabaseProvider()
方法详细信息 |
---|
public int delete(Uri uri, String where, String[] whereArgs)
ContentProvider
public String getType(Uri uri)
ContentProvider
public Uri insert(Uri uri, ContentValues initialValues)
ContentProvider
public boolean onCreate()
ContentProvider
public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder)
ContentProvider
public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs)
ContentProvider
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |