|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.almworks.sqlite4java.SQLiteLongArray
public class SQLiteLongArray
SQLiteLongArray wraps a virtual table handle, created with SQLiteConnection.createArray(java.lang.String, boolean).
Use methods of this class to set the array's contents (maybe several times), and dispose it when done.
value with INTEGER affinity.
If you bind ordered and/or unique values to the array, it may greatly improve performance if the underlying
code knows about that fact. See bind(long[], int, int, boolean, boolean) method for details.
| Method Summary | |
|---|---|
SQLiteLongArray |
bind(long... values)
Fills virtual array table with values from a Java array. |
SQLiteLongArray |
bind(long[] values,
boolean ordered,
boolean unique)
Fills virtual array table with values from a Java array. |
SQLiteLongArray |
bind(long[] values,
int offset,
int length)
Fills virtual array table with values from a Java array. |
SQLiteLongArray |
bind(long[] values,
int offset,
int length,
boolean ordered,
boolean unique)
Fills virtual array table with values from the specified portion of a Java array. |
void |
dispose()
Disposes this instance, making it unusable and freeing the resources. |
java.lang.String |
getName()
Returns the name of the virtual table, which should be used in SQL. |
boolean |
isDisposed()
Returns true if the instance is disposed and cannot be used. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public java.lang.String getName()
public boolean isDisposed()
public java.lang.String toString()
toString in class java.lang.Objectpublic void dispose()
dispose() second time has no effect.
Calling bind(long[], int, int, boolean, boolean) after instance has been disposed would result in exception.
public SQLiteLongArray bind(long[] values,
int offset,
int length,
boolean ordered,
boolean unique)
throws SQLiteException
values - array of the values to bind, may be null if length == 0offset - the index of an element to be bound as the first rowlength - the number of values to bind, if set to 0 then the virtual array table will be emptyordered - if true, the values within the specified by offset and length region are in non-strict ascending orderunique - if true, the values within the specified by offset and length region are not repeating
SQLiteException - if this instance has been disposed or problem occurs on the underlying layer
java.lang.ArrayIndexOutOfBoundsException - if offset and length do not specify a valid range within values array
java.lang.NullPointerException - if values is null and length is not zero
public SQLiteLongArray bind(long[] values,
int offset,
int length)
throws SQLiteException
bind(long[], int, int, boolean, boolean).
values - array of the values to bind, may be null if length == 0offset - the index of an element to be bound as the first rowlength - the number of values to bind, if set to 0 then the virtual array table will be empty
SQLiteException - if this instance has been disposed or problem occurs on the underlying layer
java.lang.ArrayIndexOutOfBoundsException - if offset and length do not specify a valid range within values array
java.lang.NullPointerException - if values is null and length is not zero
public SQLiteLongArray bind(long... values)
throws SQLiteException
bind(long[], int, int, boolean, boolean).
values - array of the values to bind, if null - bind to an empty array
SQLiteException - if this instance has been disposed or problem occurs on the underlying layer
java.lang.ArrayIndexOutOfBoundsException - if offset and length do not specify a valid range within values array
public SQLiteLongArray bind(long[] values,
boolean ordered,
boolean unique)
throws SQLiteException
bind(long[], int, int, boolean, boolean).
values - array of the values to bind, if null - bind to an empty arrayordered - if true, the values within the specified by offset and length region are in non-strict ascending orderunique - if true, the values within the specified by offset and length region are not repeating
SQLiteException - if this instance has been disposed or problem occurs on the underlying layer
java.lang.ArrayIndexOutOfBoundsException - if offset and length do not specify a valid range within values array
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||