- simple querymit genau 1 resultset
- query: cx, src, retOk, rsVars
- setRSVars: cx, rsVars, rsCode
- 'n' no vars
- 'd' describe output - no vars
- '' default from describe output mit ? Logik
- ?col → :col :col.sqlInd and logic für sqlNull
- unchanged to db2
- fetch: cx, dst, retOk
- close
- update: src, retOk: ohne Resultset, execute oder executeImmediate
- execute: cx, src, retOk, rsVars: 0-n resultsets
- getMoreResults
- queryPrepare cx, src, retOk, rsVars
- queryWithArgs cx, args...
- fetch (close gehört zu prepare nicht args
- updatePrepare cx, src, retOk
- updateWithArgs cx, args ...
- executePrepare: : cx, src, retOk, rsVars
java
- statement
- execute: sql ⇒ updateCount or resultSet(s)
- getMoreResults ⇒ move to next resultSet
- executeQuery: wie execute, für single resultSet
- executeUpdate: wie execute, ohne resultSet
- addBatch, executeBatch ...
- preparedStatement: sql
- execute* ohne sql Parameters, dafür setParameter Methoden
- CallableStatement: subclass von preparedStatement für call