Beispiel #1
0
 public SWIGTYPE_p_intarray_module sqlite3_intarray_register(SWIGTYPE_p_sqlite3 db) {
   myLastReturnCode = 0;
   myLong[0] = 0;
   myLastReturnCode =
       _SQLiteManualJNI.sqlite3_intarray_register(SWIGTYPE_p_sqlite3.getCPtr(db), myLong);
   return myLong[0] == 0 ? null : new SWIGTYPE_p_intarray_module(myLong[0], true);
 }
Beispiel #2
0
 public SWIGTYPE_p_sqlite3_stmt sqlite3_prepare_v2(SWIGTYPE_p_sqlite3 db, String sql) {
   myLastReturnCode = 0;
   myLong[0] = 0;
   myLastReturnCode =
       _SQLiteManualJNI.sqlite3_prepare_v2(SWIGTYPE_p_sqlite3.getCPtr(db), sql, myLong);
   long ptr = myLong[0];
   myLong[0] = 0;
   return ptr == 0 ? null : new SWIGTYPE_p_sqlite3_stmt(ptr, true);
 }
Beispiel #3
0
 public String sqlite3_load_extension(SWIGTYPE_p_sqlite3 db, String file, String proc) {
   myLastReturnCode = 0;
   myString[0] = null;
   myLastReturnCode =
       _SQLiteManualJNI.sqlite3_load_extension(
           SWIGTYPE_p_sqlite3.getCPtr(db), file, proc, myString);
   String r = myString[0];
   myString[0] = null;
   return r;
 }
Beispiel #4
0
 public ProgressHandler install_progress_handler(SWIGTYPE_p_sqlite3 db, int stepsPerCallback) {
   myLastReturnCode = 0;
   myLong[0] = 0;
   myObject[0] = null;
   myLastReturnCode =
       _SQLiteManualJNI.install_progress_handler(
           SWIGTYPE_p_sqlite3.getCPtr(db), stepsPerCallback, myLong, myObject);
   ByteBuffer r = myObject[0] instanceof ByteBuffer ? (ByteBuffer) myObject[0] : null;
   myObject[0] = null;
   long ptr = myLong[0];
   myLong[0] = 0;
   if (ptr == 0 || r == null) return null;
   return new ProgressHandler(new SWIGTYPE_p_direct_buffer(ptr, true), r, stepsPerCallback);
 }
Beispiel #5
0
 public SWIGTYPE_p_sqlite3_blob sqlite3_blob_open(
     SWIGTYPE_p_sqlite3 db,
     String database,
     String table,
     String column,
     long rowid,
     boolean writeAccess) {
   myLastReturnCode = 0;
   myLong[0] = 0;
   myLastReturnCode =
       _SQLiteManualJNI.sqlite3_blob_open(
           SWIGTYPE_p_sqlite3.getCPtr(db), database, table, column, rowid, writeAccess, myLong);
   long ptr = myLong[0];
   myLong[0] = 0;
   return ptr == 0 ? null : new SWIGTYPE_p_sqlite3_blob(ptr, true);
 }
Beispiel #6
0
 public SQLiteColumnMetadata sqlite3_table_column_metadata(
     SWIGTYPE_p_sqlite3 db, String dbName, String tableName, String columnName)
     throws SQLiteException {
   myString[0] = null;
   myString[1] = null;
   myInt[0] = 0;
   myInt[1] = 0;
   myInt[2] = 0;
   int res =
       _SQLiteManualJNI.sqlite3_table_column_metadata(
           SWIGTYPE_p_sqlite3.getCPtr(db), dbName, tableName, columnName, myString, myInt);
   SQLiteColumnMetadata columnMetadata =
       new SQLiteColumnMetadata(
           myString[0], myString[1], myInt[0] == 1, myInt[1] == 1, myInt[2] == 1);
   myString[0] = null;
   myString[1] = null;
   myInt[0] = 0;
   myInt[1] = 0;
   myInt[2] = 0;
   if (res != SQLiteConstants.SQLITE_OK)
     throw new SQLiteException(res, "failed calling sqlite3_table_column_metadata()");
   return columnMetadata;
 }
Beispiel #7
0
 public static int sqlite3_exec(SWIGTYPE_p_sqlite3 db, String sql, String[] outError) {
   assert outError == null || outError.length == 1 : outError.length;
   return _SQLiteManualJNI.sqlite3_exec(SWIGTYPE_p_sqlite3.getCPtr(db), sql, outError);
 }
Beispiel #8
0
 public static int uninstall_progress_handler(SWIGTYPE_p_sqlite3 db, ProgressHandler handler) {
   SWIGTYPE_p_direct_buffer pointer = handler.dispose();
   if (pointer == null) return 0;
   return _SQLiteManualJNI.uninstall_progress_handler(
       SWIGTYPE_p_sqlite3.getCPtr(db), SWIGTYPE_p_direct_buffer.getCPtr(pointer));
 }