public class TableIterator extends Object implements DataIterator
Modifier and Type | Field and Description |
---|---|
protected List<ColumnDefinition> |
columnDefs |
protected TableResourceManager |
resourceManager |
protected ResultSet |
rs |
protected BStructureType |
type |
Constructor and Description |
---|
TableIterator(TableResourceManager rm,
ResultSet rs,
BStructureType type) |
TableIterator(TableResourceManager rm,
ResultSet rs,
BStructureType type,
List<ColumnDefinition> columnDefs) |
Modifier and Type | Method and Description |
---|---|
void |
close(boolean isInTransaction) |
BMap<String,BValue> |
generateNext() |
Object[] |
getArray(int columnIndex) |
String |
getBlob(int columnIndex) |
boolean |
getBoolean(int columnIndex) |
List<ColumnDefinition> |
getColumnDefinitions() |
protected BNewArray |
getDataArray(Array array) |
double |
getFloat(int columnIndex) |
long |
getInt(int columnIndex) |
String |
getString(int columnIndex) |
Object[] |
getStruct(int columnIndex) |
BStructureType |
getStructType() |
boolean |
next() |
void |
reset(boolean isInTransaction) |
protected ResultSet rs
protected TableResourceManager resourceManager
protected BStructureType type
protected List<ColumnDefinition> columnDefs
public TableIterator(TableResourceManager rm, ResultSet rs, BStructureType type, List<ColumnDefinition> columnDefs)
public TableIterator(TableResourceManager rm, ResultSet rs, BStructureType type)
public boolean next()
next
in interface DataIterator
public void close(boolean isInTransaction)
close
in interface DataIterator
public void reset(boolean isInTransaction)
reset
in interface DataIterator
public String getString(int columnIndex)
getString
in interface DataIterator
public long getInt(int columnIndex)
getInt
in interface DataIterator
public double getFloat(int columnIndex)
getFloat
in interface DataIterator
public boolean getBoolean(int columnIndex)
getBoolean
in interface DataIterator
public String getBlob(int columnIndex)
getBlob
in interface DataIterator
public Object[] getStruct(int columnIndex)
getStruct
in interface DataIterator
public Object[] getArray(int columnIndex)
getArray
in interface DataIterator
public BMap<String,BValue> generateNext()
generateNext
in interface DataIterator
public List<ColumnDefinition> getColumnDefinitions()
getColumnDefinitions
in interface DataIterator
public BStructureType getStructType()
getStructType
in interface DataIterator
protected BNewArray getDataArray(Array array) throws SQLException
SQLException
Copyright © 2018 WSO2. All rights reserved.