AnyLogic
Expand
Font size
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.
See Also:
Serialized Form

Constructor Summary

ConstructorDescription
TableInput(Utilities owner, String sql, Object... params) 
TableInput(Utilities owner, Supplier<ResultSet> selectResultSet) 

Method Summary

Modifier and TypeMethodDescription
booleanabsolute(int row) 
voidclose()
Closes the underlying result set and drops any cached data
booleanfirst() 
<T> TgetValue(int rowIndex, String columnLabel, Class<T> returnType) 
<T> TgetValue(String columnLabel, Class<T> returnType) 
voidloadAll() 
booleannext()
Advances this input to the next table row
intsize() 

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

TableInput

public TableInput(Utilities owner,
 String sql,
 Object... params)

TableInput

@AnyLogicInternalAPI
public TableInput(Utilities owner,
 Supplier<ResultSet> selectResultSet)

Method Details

getValue

public <T> T getValue(String columnLabel,
 Class<T> returnType)

size

public int size()

getValue

public <T> T getValue(int rowIndex,
 String columnLabel,
 Class<T> returnType)

next

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

absolute

public boolean absolute(int row)

first

public boolean first()

close

public void close()
Closes the underlying result set and drops any cached data
Specified by:
close in interface AutoCloseable

loadAll

public void loadAll()