Interface SqlResult<T>
- Type Parameters:
T- the execution result type
- All Known Subinterfaces:
RowSet<R>
public interface SqlResult<T>
An interface that represents the execution result of an operation on the database server.
-
Method Summary
Modifier and TypeMethodDescriptionGet the column descriptors in the SqlResult.Get the names of columns in the SqlResult.next()Return the next available result ornull, e.g for a simple query that executed multiple queries or for a batch result.<V> Vproperty(PropertyKind<V> propertyKind) Get the specific property with the specifiedPropertyKind.introwCount()Get the number of the affected rows in the operation to this SqlResult.intsize()Get the number of rows retrieved in the SqlResult.value()
-
Method Details
-
rowCount
int rowCount()Get the number of the affected rows in the operation to this SqlResult.- Returns:
- the count of affected rows.
-
rowDescriptor
RowDescriptor rowDescriptor() -
columnsNames
-
columnDescriptors
List<ColumnDescriptor> columnDescriptors()Get the column descriptors in the SqlResult.- Returns:
- the list of column descriptors
-
size
int size()Get the number of rows retrieved in the SqlResult.- Returns:
- the count of rows.
-
property
Get the specific property with the specifiedPropertyKind.- Type Parameters:
V- the type of the property value- Parameters:
propertyKind- the unique object which is used to indicate which property of the execution result to fetch- Returns:
- the value of the property
-
value
-
next
-