Class SQLResult
java.lang.Object
com.blackrook.sql.SQLResult
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassThe iterator returned to iterate through this result. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionString[]Gets the names of the columns.getId()Object[]getIds()getRow()Gets the first row, or only row in this result, or null if no rows.intGets the amount of affected/returned rows from this query.getRows()Retrieves the rows from the query result.booleanisUpdate()iterator()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Field Details
-
columnNames
Query Columns. -
rowCount
protected int rowCountRows affected or returned in the query. -
nextId
Next id, if generated. -
update
protected boolean updateWas this an update query? -
rows
-
-
Method Details
-
getColumnNames
Gets the names of the columns.- Returns:
- the column names in this result.
-
getRowCount
public int getRowCount()Gets the amount of affected/returned rows from this query.- Returns:
- the amount of records in this result.
-
isUpdate
public boolean isUpdate()- Returns:
- true if this came from an update, false otherwise.
-
getRows
-
getRow
Gets the first row, or only row in this result, or null if no rows.- Returns:
- the row in this result.
-
getId
- Returns:
- the generated id from the last query, if any, or null if none.
-
getIds
- Returns:
- the list of generated ids from the last query.
-
iterator
-