us.the.mac.board
Class BoardContent

java.lang.Object
  extended by android.content.ContentProvider
      extended by us.the.mac.board.BoardContent
All Implemented Interfaces:
ComponentCallbacks

public class BoardContent
extends ContentProvider


Nested Class Summary
static class BoardContent.TableData
           
 
Field Summary
static Uri URI_UPDATE_HEADER
          Uri that updates the header of pgn
static Uri URI_UPDATE_MOVE
          Uri that updates a move in pgn format
 
Constructor Summary
BoardContent()
           
 
Method Summary
 int bulkInsert(Uri uri, ContentValues[] values)
           
 int delete(Uri arg0, String arg1, String[] arg2)
           
 String getType(Uri uri)
           
 Uri insert(Uri uri, ContentValues values)
           
 boolean onCreate()
           
 Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder)
           
 int update(Uri uri, ContentValues values, String selection, String[] selectionArgs)
           
 
Methods inherited from class android.content.ContentProvider
applyBatch, attachInfo, getContext, getPathPermissions, getReadPermission, getWritePermission, isTemporary, onConfigurationChanged, onLowMemory, openAssetFile, openFile, openFileHelper, setPathPermissions, setReadPermission, setWritePermission
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

URI_UPDATE_MOVE

public static final Uri URI_UPDATE_MOVE
Uri that updates a move in pgn format


URI_UPDATE_HEADER

public static final Uri URI_UPDATE_HEADER
Uri that updates the header of pgn

Constructor Detail

BoardContent

public BoardContent()
Method Detail

onCreate

public boolean onCreate()
Specified by:
onCreate in class ContentProvider

getType

public String getType(Uri uri)
Specified by:
getType in class ContentProvider

insert

public Uri insert(Uri uri,
                  ContentValues values)
Specified by:
insert in class ContentProvider

bulkInsert

public int bulkInsert(Uri uri,
                      ContentValues[] values)
Overrides:
bulkInsert in class ContentProvider

query

public Cursor query(Uri uri,
                    String[] projection,
                    String selection,
                    String[] selectionArgs,
                    String sortOrder)
Specified by:
query in class ContentProvider

update

public int update(Uri uri,
                  ContentValues values,
                  String selection,
                  String[] selectionArgs)
Specified by:
update in class ContentProvider

delete

public int delete(Uri arg0,
                  String arg1,
                  String[] arg2)
Specified by:
delete in class ContentProvider