Table of Contents

Class DatabaseUtils

Namespace
Android.Database
Assembly
MASES.Netdroid.dll
public class DatabaseUtils : JVMBridgeBase<DatabaseUtils>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JVMBridgeBase
JVMBridgeBase<DatabaseUtils>
DatabaseUtils
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<DatabaseUtils>.IsAssignableFrom(IJavaType)
JVMBridgeBase<DatabaseUtils>.IsAssignableFrom<T>()
JVMBridgeBase<DatabaseUtils>.Execute<T>(params T[])
JVMBridgeBase<DatabaseUtils>.DynBridgeClazz
JVMBridgeBase<DatabaseUtils>.BridgeClazz
JVMBridgeBase.RuntimeClassNameOf<T>()
JVMBridgeBase.ClassNameOf<T>()
JVMBridgeBase.ClassOf<T>()
JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)
JVMBridgeBase.MonitorEnter()
JVMBridgeBase.MonitorExit()
JVMBridgeBase.IsInstanceOf(IJavaType)
JVMBridgeBase.IsInstanceOf<T>()
JVMBridgeBase.RuntimeIsInstanceOf<T>()
JVMBridgeBase.CastTo<TNewClass>()
JVMBridgeBase.CastDirect<TNewClass>()
JVMBridgeBase.Dispose()
JVMBridgeBase.ToString()
JVMBridgeBase.GetHashCode()
JVMBridgeBase.Notify()
JVMBridgeBase.NotifyAll()
JVMBridgeBase.Wait()
JVMBridgeBase.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeListener
Extension Methods

Constructors

DatabaseUtils()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

public DatabaseUtils()

DatabaseUtils(params object[])

Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class

public DatabaseUtils(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

STATEMENT_ABORT

public static int STATEMENT_ABORT { get; }

Property Value

int

STATEMENT_ATTACH

public static int STATEMENT_ATTACH { get; }

Property Value

int

STATEMENT_BEGIN

public static int STATEMENT_BEGIN { get; }

Property Value

int

STATEMENT_COMMIT

public static int STATEMENT_COMMIT { get; }

Property Value

int

STATEMENT_DDL

public static int STATEMENT_DDL { get; }

Property Value

int

STATEMENT_OTHER

public static int STATEMENT_OTHER { get; }

Property Value

int

STATEMENT_PRAGMA

public static int STATEMENT_PRAGMA { get; }

Property Value

int

STATEMENT_SELECT

public static int STATEMENT_SELECT { get; }

Property Value

int

STATEMENT_UNPREPARED

public static int STATEMENT_UNPREPARED { get; }

Property Value

int

STATEMENT_UPDATE

public static int STATEMENT_UPDATE { get; }

Property Value

int

Methods

AppendEscapedSQLString(StringBuilder, String)

public static void AppendEscapedSQLString(StringBuilder arg0, String arg1)

Parameters

arg0 StringBuilder

StringBuilder

arg1 String

String

AppendSelectionArgs(String[], String[])

public static String[] AppendSelectionArgs(String[] arg0, String[] arg1)

Parameters

arg0 String[]

String

arg1 String[]

String

Returns

String[]

String

AppendValueToSql(StringBuilder, object)

public static void AppendValueToSql(StringBuilder arg0, object arg1)

Parameters

arg0 StringBuilder

StringBuilder

arg1 object

object

BindObjectToProgram(SQLiteProgram, int, object)

public static void BindObjectToProgram(SQLiteProgram arg0, int arg1, object arg2)

Parameters

arg0 SQLiteProgram

SQLiteProgram

arg1 int

int

arg2 object

object

BlobFileDescriptorForQuery(SQLiteDatabase, String, String[])

public static ParcelFileDescriptor BlobFileDescriptorForQuery(SQLiteDatabase arg0, String arg1, String[] arg2)

Parameters

arg0 SQLiteDatabase

SQLiteDatabase

arg1 String

String

arg2 String[]

String

Returns

ParcelFileDescriptor

ParcelFileDescriptor

BlobFileDescriptorForQuery(SQLiteStatement, String[])

public static ParcelFileDescriptor BlobFileDescriptorForQuery(SQLiteStatement arg0, String[] arg1)

Parameters

arg0 SQLiteStatement

SQLiteStatement

arg1 String[]

String

Returns

ParcelFileDescriptor

ParcelFileDescriptor

ConcatenateWhere(String, String)

public static String ConcatenateWhere(String arg0, String arg1)

Parameters

arg0 String

String

arg1 String

String

Returns

String

String

CreateDbFromSqlStatements(Context, String, int, String)

public static void CreateDbFromSqlStatements(Context arg0, String arg1, int arg2, String arg3)

Parameters

arg0 Context

Context

arg1 String

String

arg2 int

int

arg3 String

String

CursorDoubleToContentValues(Cursor, String, ContentValues, String)

public static void CursorDoubleToContentValues(Cursor arg0, String arg1, ContentValues arg2, String arg3)

Parameters

arg0 Cursor

Cursor

arg1 String

String

arg2 ContentValues

ContentValues

arg3 String

String

CursorDoubleToContentValuesIfPresent(Cursor, ContentValues, String)

public static void CursorDoubleToContentValuesIfPresent(Cursor arg0, ContentValues arg1, String arg2)

Parameters

arg0 Cursor

Cursor

arg1 ContentValues

ContentValues

arg2 String

String

CursorDoubleToCursorValues(Cursor, String, ContentValues)

public static void CursorDoubleToCursorValues(Cursor arg0, String arg1, ContentValues arg2)

Parameters

arg0 Cursor

Cursor

arg1 String

String

arg2 ContentValues

ContentValues

CursorFloatToContentValuesIfPresent(Cursor, ContentValues, String)

public static void CursorFloatToContentValuesIfPresent(Cursor arg0, ContentValues arg1, String arg2)

Parameters

arg0 Cursor

Cursor

arg1 ContentValues

ContentValues

arg2 String

String

CursorIntToContentValues(Cursor, String, ContentValues)

public static void CursorIntToContentValues(Cursor arg0, String arg1, ContentValues arg2)

Parameters

arg0 Cursor

Cursor

arg1 String

String

arg2 ContentValues

ContentValues

CursorIntToContentValues(Cursor, String, ContentValues, String)

public static void CursorIntToContentValues(Cursor arg0, String arg1, ContentValues arg2, String arg3)

Parameters

arg0 Cursor

Cursor

arg1 String

String

arg2 ContentValues

ContentValues

arg3 String

String

CursorIntToContentValuesIfPresent(Cursor, ContentValues, String)

public static void CursorIntToContentValuesIfPresent(Cursor arg0, ContentValues arg1, String arg2)

Parameters

arg0 Cursor

Cursor

arg1 ContentValues

ContentValues

arg2 String

String

CursorLongToContentValues(Cursor, String, ContentValues)

public static void CursorLongToContentValues(Cursor arg0, String arg1, ContentValues arg2)

Parameters

arg0 Cursor

Cursor

arg1 String

String

arg2 ContentValues

ContentValues

CursorLongToContentValues(Cursor, String, ContentValues, String)

public static void CursorLongToContentValues(Cursor arg0, String arg1, ContentValues arg2, String arg3)

Parameters

arg0 Cursor

Cursor

arg1 String

String

arg2 ContentValues

ContentValues

arg3 String

String

CursorLongToContentValuesIfPresent(Cursor, ContentValues, String)

public static void CursorLongToContentValuesIfPresent(Cursor arg0, ContentValues arg1, String arg2)

Parameters

arg0 Cursor

Cursor

arg1 ContentValues

ContentValues

arg2 String

String

CursorRowToContentValues(Cursor, ContentValues)

public static void CursorRowToContentValues(Cursor arg0, ContentValues arg1)

Parameters

arg0 Cursor

Cursor

arg1 ContentValues

ContentValues

CursorShortToContentValuesIfPresent(Cursor, ContentValues, String)

public static void CursorShortToContentValuesIfPresent(Cursor arg0, ContentValues arg1, String arg2)

Parameters

arg0 Cursor

Cursor

arg1 ContentValues

ContentValues

arg2 String

String

CursorStringToContentValues(Cursor, String, ContentValues)

public static void CursorStringToContentValues(Cursor arg0, String arg1, ContentValues arg2)

Parameters

arg0 Cursor

Cursor

arg1 String

String

arg2 ContentValues

ContentValues

CursorStringToContentValues(Cursor, String, ContentValues, String)

public static void CursorStringToContentValues(Cursor arg0, String arg1, ContentValues arg2, String arg3)

Parameters

arg0 Cursor

Cursor

arg1 String

String

arg2 ContentValues

ContentValues

arg3 String

String

CursorStringToContentValuesIfPresent(Cursor, ContentValues, String)

public static void CursorStringToContentValuesIfPresent(Cursor arg0, ContentValues arg1, String arg2)

Parameters

arg0 Cursor

Cursor

arg1 ContentValues

ContentValues

arg2 String

String

CursorStringToInsertHelper(Cursor, String, InsertHelper, int)

public static void CursorStringToInsertHelper(Cursor arg0, String arg1, DatabaseUtils.InsertHelper arg2, int arg3)

Parameters

arg0 Cursor

Cursor

arg1 String

String

arg2 DatabaseUtils.InsertHelper

DatabaseUtils.InsertHelper

arg3 int

int

DumpCurrentRow(Cursor)

public static void DumpCurrentRow(Cursor arg0)

Parameters

arg0 Cursor

Cursor

DumpCurrentRow(Cursor, PrintStream)

public static void DumpCurrentRow(Cursor arg0, PrintStream arg1)

Parameters

arg0 Cursor

Cursor

arg1 PrintStream

PrintStream

DumpCurrentRow(Cursor, StringBuilder)

public static void DumpCurrentRow(Cursor arg0, StringBuilder arg1)

Parameters

arg0 Cursor

Cursor

arg1 StringBuilder

StringBuilder

DumpCurrentRowToString(Cursor)

public static String DumpCurrentRowToString(Cursor arg0)

Parameters

arg0 Cursor

Cursor

Returns

String

String

DumpCursor(Cursor)

public static void DumpCursor(Cursor arg0)

Parameters

arg0 Cursor

Cursor

DumpCursor(Cursor, PrintStream)

public static void DumpCursor(Cursor arg0, PrintStream arg1)

Parameters

arg0 Cursor

Cursor

arg1 PrintStream

PrintStream

DumpCursor(Cursor, StringBuilder)

public static void DumpCursor(Cursor arg0, StringBuilder arg1)

Parameters

arg0 Cursor

Cursor

arg1 StringBuilder

StringBuilder

DumpCursorToString(Cursor)

public static String DumpCursorToString(Cursor arg0)

Parameters

arg0 Cursor

Cursor

Returns

String

String

GetCollationKey(String)

public static String GetCollationKey(String arg0)

Parameters

arg0 String

String

Returns

String

String

GetHexCollationKey(String)

public static String GetHexCollationKey(String arg0)

Parameters

arg0 String

String

Returns

String

String

GetSqlStatementType(String)

public static int GetSqlStatementType(String arg0)

Parameters

arg0 String

String

Returns

int

int

LongForQuery(SQLiteDatabase, String, String[])

public static long LongForQuery(SQLiteDatabase arg0, String arg1, String[] arg2)

Parameters

arg0 SQLiteDatabase

SQLiteDatabase

arg1 String

String

arg2 String[]

String

Returns

long

long

LongForQuery(SQLiteStatement, String[])

public static long LongForQuery(SQLiteStatement arg0, String[] arg1)

Parameters

arg0 SQLiteStatement

SQLiteStatement

arg1 String[]

String

Returns

long

long

QueryNumEntries(SQLiteDatabase, String)

public static long QueryNumEntries(SQLiteDatabase arg0, String arg1)

Parameters

arg0 SQLiteDatabase

SQLiteDatabase

arg1 String

String

Returns

long

long

QueryNumEntries(SQLiteDatabase, String, String)

public static long QueryNumEntries(SQLiteDatabase arg0, String arg1, String arg2)

Parameters

arg0 SQLiteDatabase

SQLiteDatabase

arg1 String

String

arg2 String

String

Returns

long

long

QueryNumEntries(SQLiteDatabase, String, String, String[])

public static long QueryNumEntries(SQLiteDatabase arg0, String arg1, String arg2, String[] arg3)

Parameters

arg0 SQLiteDatabase

SQLiteDatabase

arg1 String

String

arg2 String

String

arg3 String[]

String

Returns

long

long

ReadExceptionFromParcel(Parcel)

public static void ReadExceptionFromParcel(Parcel arg0)

Parameters

arg0 Parcel

Parcel

ReadExceptionWithFileNotFoundExceptionFromParcel(Parcel)

public static void ReadExceptionWithFileNotFoundExceptionFromParcel(Parcel arg0)

Parameters

arg0 Parcel

Parcel

Exceptions

FileNotFoundException

ReadExceptionWithOperationApplicationExceptionFromParcel(Parcel)

public static void ReadExceptionWithOperationApplicationExceptionFromParcel(Parcel arg0)

Parameters

arg0 Parcel

Parcel

Exceptions

OperationApplicationException

SqlEscapeString(String)

public static String SqlEscapeString(String arg0)

Parameters

arg0 String

String

Returns

String

String

StringForQuery(SQLiteDatabase, String, String[])

public static String StringForQuery(SQLiteDatabase arg0, String arg1, String[] arg2)

Parameters

arg0 SQLiteDatabase

SQLiteDatabase

arg1 String

String

arg2 String[]

String

Returns

String

String

StringForQuery(SQLiteStatement, String[])

public static String StringForQuery(SQLiteStatement arg0, String[] arg1)

Parameters

arg0 SQLiteStatement

SQLiteStatement

arg1 String[]

String

Returns

String

String

WriteExceptionToParcel(Parcel, JVMBridgeException)

public static void WriteExceptionToParcel(Parcel arg0, JVMBridgeException arg1)

Parameters

arg0 Parcel

Parcel

arg1 JVMBridgeException

Exception