API Diff Specification
To Version: Android SDK 0.9_r1
From Version: Android SDK m5-rc14
Generated 2008.08.14 15:44

Class android.database.sqlite.SQLiteDatabase

The superclass changed from java.lang.Object to android.database.sqlite.SQLiteClosable.
Removed interface android.database.sqlite.SQLiteClosable.

Removed Methods
SQLiteDatabase create(File, int, CursorFactory) Create a new SQLite database and open it.
SQLiteDatabase create(String, int, CursorFactory) Create a new SQLite database and open it.
Locale getLocale() Returns the default collation as set by .setLocale.
SQLiteDatabase open(File, CursorFactory) Open a SQLite database from a file.
SQLiteDatabase open(String, CursorFactory) Open a SQLite database from a file.
Cursor query(boolean, String, String[], String, String[], String, String, String) Query the given URL, returning a Cursor over the result set.
 

Added Methods
void beginTransaction() Begins a transaction.
void endTransaction() End a transaction.
void execSQL(String, Object[]) Execute a single SQL statement that is not a query.
boolean inTransaction() return true if there is a transaction pending
long insertOrThrow(String, String, ContentValues) Convenience method for inserting a row into the database.
boolean isDbLockedByCurrentThread() Checks if the database lock is held by this thread.
boolean isDbLockedByOtherThreads() Checks if the database is locked by another thread.
boolean isOpen() @return true if the DB is currently open (has not been closed)
boolean isReadOnly() return whether the DB is opened as read only.
boolean needUpgrade(int)  
void onAllReferencesReleased()  
SQLiteDatabase openDatabase(String, CursorFactory, int) Open the database according to the flags .OPEN_READWRITE .OPEN_READONLY .CREATE_IF_NECESSARY and/or .NO_LOCALIZED_COLLATORS.
SQLiteDatabase openOrCreateDatabase(File, CursorFactory) Equivalent to openDatabase(file.getPath(), factory, CREATE_IF_NECESSARY).
SQLiteDatabase openOrCreateDatabase(String, CursorFactory) Equivalent to openDatabase(path, factory, CREATE_IF_NECESSARY).
Cursor query(boolean, String, String[], String, String[], String, String, String, String) Query the given URL, returning a Cursor over the result set.
Cursor query(String, String[], String, String[], String, String, String, String) Query the given table, returning a Cursor over the result set.
int releaseMemory() Attempts to release memory that SQLite holds but does not require to operate properly.
long replaceOrThrow(String, String, ContentValues) Convenience method for replacing a row in the database.
void setLockingEnabled(boolean) Control whether or not the SQLiteDatabase is made threadsafe by using locks around critical sections.
void setTransactionSuccessful() Marks the current transaction as successful.
boolean yieldIfContended() Temporarily end the transaction to let other threads run.
 

Changed Methods
Cursor queryWithFactory(CursorFactory, boolean, String, String[], String, String[], String, String, String, String) Change in signature from (CursorFactory, boolean, String, String[], String, String[], String, String, String) to (CursorFactory, boolean, String, String[], String, String[], String, String, String, String).
Query the given URL, returning a Cursor over the result set.
 

Added Fields
int CREATE_IF_NECESSARY Flag for .openDatabase to create the database file if it does not already exist.
int SQLITE_MAX_LIKE_PATTERN_LENGTH Maximum Length Of A LIKE Or GLOB Pattern The pattern matching algorithm used in the default LIKE and GLOB implementation of SQLite can exhibit O(N^2) performance (where N is the number of characters in the pattern) for certain pathological cases.
 

©2008 Google - Code Home - Site Terms of Service - Privacy Policy
Generated by JDiff