AnyLogic
Expand
Font size
  • java.lang.Object
    • com.anylogic.engine.database.TableInput
All Implemented Interfaces:
java.io.Serializable, java.lang.AutoCloseable

@AnyLogicInternalAPI
public class TableInput
extends java.lang.Object
implements java.io.Serializable, java.lang.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

Constructors 
TableInput​(Utilities owner, java.lang.String sql, java.lang.Object... params)  
TableInput​(Utilities owner, java.util.function.Supplier<ResultSet> selectResultSet)  
Constructor Description

Method Summary

All Methods Instance Methods Concrete Methods 
boolean absolute​(int row)  
void close()
Closes the underlying result set and drops any cached data
boolean first()  
<T> T getValue​(int rowIndex, java.lang.String columnLabel, java.lang.Class<T> returnType)  
<T> T getValue​(java.lang.String columnLabel, java.lang.Class<T> returnType)  
void loadAll()  
boolean next()
Advances this input to the next table row
int size()  
Modifier and Type Method Description

Methods inherited from class java.lang.Object

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

Constructor Detail

TableInput

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

TableInput

@AnyLogicInternalAPI
public TableInput​(Utilities owner,
                  java.util.function.Supplier<ResultSet> selectResultSet)

Method Detail

getValue

public <T> T getValue​(java.lang.String columnLabel,
                      java.lang.Class<T> returnType)

size

public int size()

getValue

public <T> T getValue​(int rowIndex,
                      java.lang.String columnLabel,
                      java.lang.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 java.lang.AutoCloseable

loadAll

public void loadAll()
How can we improve this article?