Package com.anylogic.engine.database
- java.lang.Object
- com.anylogic.engine.database.TableInput
- All Implemented Interfaces:
Serializable
,AutoCloseable
@AnyLogicInternalAPI public class TableInput extends Object implements Serializable, AutoCloseable
This class is internal and shouldn't be called by user.
it may be removed/renamed in future.
it may be removed/renamed in future.
- See Also:
- Serialized Form
Constructor | Description |
---|---|
TableInput | |
TableInput |
Modifier and Type | Method | Description |
---|---|---|
boolean | absolute | |
void | close() |
Closes the underlying result set and drops any cached data
|
boolean | first() | |
<T> T | getValue | |
<T> T | getValue | |
void | loadAll() | |
boolean | next() |
Advances this input to the next table row
|
int | size() |
public TableInput(Utilities owner, String sql, Object... params)
@AnyLogicInternalAPI public TableInput(Utilities owner, Supplier<ResultSet> selectResultSet)
public <T> T getValue(String columnLabel, Class<T> returnType)
public int size()
public <T> T getValue(int rowIndex, String columnLabel, Class<T> returnType)
public boolean next()
Advances this input to the next table row
- Returns:
true
if the new current row is valid;false
if there are no more rows
public boolean absolute(int row)
public boolean first()
public void close()
Closes the underlying result set and drops any cached data
- Specified by:
close
in interfaceAutoCloseable
public void loadAll()