Package mil.nga.geopackage.db
Interface Result
-
- All Known Subinterfaces:
UserCoreResult<TColumn,TTable,TRow>
public interface Result
Database result interface- Since:
- 3.1.0
- Author:
- osbornb
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Close the resultbyte[]
getBlob(int columnIndex)
Returns the value of the requested column as a byte array.int
getColumnCount()
Get the number of columnsint
getColumnIndex(String columnName)
Returns the zero-based index for the given column name, or -1 if the column doesn't exist.double
getDouble(int columnIndex)
Returns the value of the requested column as an double.float
getFloat(int columnIndex)
Returns the value of the requested column as an float.int
getInt(int columnIndex)
Returns the value of the requested column as an int.long
getLong(int columnIndex)
Returns the value of the requested column as an long.int
getPosition()
Get the current positionshort
getShort(int columnIndex)
Returns the value of the requested column as an short.String
getString(int columnIndex)
Returns the value of the requested column as a String.int
getType(int columnIndex)
Returns data type of the given column's valueObject
getValue(int index)
Get the value for the columnObject
getValue(int index, GeoPackageDataType dataType)
Get the value for the columnboolean
moveToFirst()
Move the cursor to the first row.boolean
moveToNext()
Move the cursor to the next row.boolean
moveToPosition(int position)
Move the cursor to an absolute positionboolean
wasNull()
Was the last value retrieved null
-
-
-
Method Detail
-
getValue
Object getValue(int index)
Get the value for the column- Parameters:
index
- index- Returns:
- value
-
getValue
Object getValue(int index, GeoPackageDataType dataType)
Get the value for the column- Parameters:
index
- indexdataType
- data type- Returns:
- value
-
moveToNext
boolean moveToNext()
Move the cursor to the next row.- Returns:
- true if another row
-
getPosition
int getPosition()
Get the current position- Returns:
- position
-
moveToFirst
boolean moveToFirst()
Move the cursor to the first row.- Returns:
- true if moved to first
-
moveToPosition
boolean moveToPosition(int position)
Move the cursor to an absolute position- Parameters:
position
- position- Returns:
- true if moved to position
-
getColumnCount
int getColumnCount()
Get the number of columns- Returns:
- column count
-
getType
int getType(int columnIndex)
Returns data type of the given column's value- Parameters:
columnIndex
- column index- Returns:
- type
-
getColumnIndex
int getColumnIndex(String columnName)
Returns the zero-based index for the given column name, or -1 if the column doesn't exist.- Parameters:
columnName
- column name- Returns:
- column index
-
getString
String getString(int columnIndex)
Returns the value of the requested column as a String.- Parameters:
columnIndex
- column index- Returns:
- string value
-
getLong
long getLong(int columnIndex)
Returns the value of the requested column as an long.- Parameters:
columnIndex
- column index- Returns:
- long value
-
getInt
int getInt(int columnIndex)
Returns the value of the requested column as an int.- Parameters:
columnIndex
- column index- Returns:
- int value
-
getShort
short getShort(int columnIndex)
Returns the value of the requested column as an short.- Parameters:
columnIndex
- column index- Returns:
- short value
-
getDouble
double getDouble(int columnIndex)
Returns the value of the requested column as an double.- Parameters:
columnIndex
- column index- Returns:
- double value
-
getFloat
float getFloat(int columnIndex)
Returns the value of the requested column as an float.- Parameters:
columnIndex
- column index- Returns:
- float value
-
getBlob
byte[] getBlob(int columnIndex)
Returns the value of the requested column as a byte array.- Parameters:
columnIndex
- column index- Returns:
- bytes value
-
wasNull
boolean wasNull()
Was the last value retrieved null- Returns:
- true if was null
-
close
void close()
Close the result
-
-