Method statement writer - coral-star.ru

Template method pattern - Wikipedia, the free encyclopedia

Long replaceOrThrow (String table, String nullColumnHack, ContentValues initialValues) Convenience method for replacing a row in the database. Void setForeignKeyConstraintsEnabled (boolean enable) Sets whether foreign key constraints are enabled for the database. Int, conflict_replace, when a unique constraint violation occurs, the pre-existing rows that are causing the constraint violation are removed prior to inserting or updating the current row. Int, conflict_rollback, when a constraint violation occurs, an immediate rollback occurs, thus ending the current transaction, and the command aborts with a return code of sqlite_constraint.

Cursor rawQueryWithFactory (rsorFactory cursorFactory, String sql, String selectionArgs, String editTable) Runs the provided SQL and returns a cursor over the result set. Cursor rawQueryWithFactory (rsorFactory cursorFactory, String sql, String selectionArgs, String editTable, CancellationSignal cancellationSignal) Runs the provided SQL and returns a cursor over the result set. Static SQLiteDatabase openOrCreateDatabase (String path, rsorFactory factory) Equivalent to openDatabase(path, factory, create_IF_necessary). Static SQLiteDatabase openOrCreateDatabase (File file, rsorFactory factory) Equivalent to openDatabase(tPath factory, create_IF_necessary). Cursor query (String table, String columns, String selection, String selectionArgs, String groupBy, String having, String orderBy, String limit) Query the given table, returning a Cursor over the result set. Boolean isOpen Returns true if the database is currently open. Boolean isReadOnly Returns true if the database is opened as read only. Boolean isWriteAheadLoggingEnabled Returns true if write-ahead logging has been enabled for this database.

This method no longer serves any useful purpose and has been deprecated. Boolean needUpgrade (int newVersion) Returns true if the new version code is greater than the current database version. Static SQLiteDatabase openDatabase (String path, rsorFactory factory, int flags, DatabaseErrorHandler errorHandler) static SQLiteDatabase openDatabase (String path, rsorFactory factory, int flags) static SQLiteDatabase openOrCreateDatabase (String path, rsorFactory factory, DatabaseErrorHandler errorHandler) Equivalent. Open flag: Flag for openDatabase(String, rsorFactory, int) to open the database for reading only. Int, oPEN_readwrite, open flag: Flag for openDatabase(String, rsorFactory, int) to open the database for reading and writing.