Package mil.nga.geopackage.db
Interface Result
-
- All Known Subinterfaces:
UserCoreResult<TColumn,TTable,TRow>
public interface ResultDatabase result interface- Since:
- 3.1.0
- Author:
- osbornb
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Close the resultbyte[]getBlob(int columnIndex)Returns the value of the requested column as a byte array.intgetColumnCount()Get the number of columnsintgetColumnIndex(String columnName)Returns the zero-based index for the given column name, or -1 if the column doesn't exist.doublegetDouble(int columnIndex)Returns the value of the requested column as an double.floatgetFloat(int columnIndex)Returns the value of the requested column as an float.intgetInt(int columnIndex)Returns the value of the requested column as an int.longgetLong(int columnIndex)Returns the value of the requested column as an long.intgetPosition()Get the current positionshortgetShort(int columnIndex)Returns the value of the requested column as an short.StringgetString(int columnIndex)Returns the value of the requested column as a String.intgetType(int columnIndex)Returns data type of the given column's valueObjectgetValue(int index)Get the value for the columnObjectgetValue(int index, GeoPackageDataType dataType)Get the value for the columnbooleanmoveToFirst()Move the cursor to the first row.booleanmoveToNext()Move the cursor to the next row.booleanmoveToPosition(int position)Move the cursor to an absolute positionbooleanwasNull()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
-
-