| java.lang.Object net.sourceforge.orbroker.Statement
All known Subclasses: net.sourceforge.orbroker.StaticStatement, net.sourceforge.orbroker.DynamicStatement,
Statement | abstract class Statement (Code) | | author: Nils Kilden-Pedersen |
Inner Class :final static class Type | |
Method Summary | |
final protected Object | buildResultObject(ResultRow row) Build result object. | final protected void | buildResultObject(ResultRow row, Object resultObject) | final protected void | closeStatement(PreparedStatement ps) | int[] | executeBatch(Connection con, ConnectionContext context, String batchParameterName, Object[] batchParameters) | QueryResult | executeQuery(Connection con, boolean scrollableSupport, ConnectionContext context) | int | executeUpdate(Connection con, ConnectionContext context) | final String | getId() | abstract ImmutableSQL | getRunnableSQL(ConnectionContext context) | final protected void | logSqlStatement(String statement) | static Statement | newInstance(String id, ResultObjectDefinition resultObjectDef, String externalSource) | static Statement | newInstance(String id, String statement, ResultObjectDefinition resultObjectDef) | final protected void | setColumnValue(PreparedStatement ps, Object value, int columnIndex) | static void | setValuesOnMap(Map map, ResultRow row) Set row to map. | final public String | toString() |
Statement | protected Statement(String id, ResultObjectDefinition resultObjectDef)(Code) | | Constructor.
Parameters: id - Statement ID Parameters: resultObjectDef - Result object factory |
buildResultObject | final protected Object buildResultObject(ResultRow row)(Code) | | Build result object. This will build a result object according to
the result object id specified on the statement. If no result
object id has been specified, then one of the two following objects
will be returned:
-
If the ResultRow contains only one column,
then that column value object will be returned.
-
If the ResultRow contains more than one column,
then a
Map will be returned containing the
column names as keys, and the column value objects
as values.
Parameters: row - Result row result object |
logSqlStatement | final protected void logSqlStatement(String statement)(Code) | | |
setValuesOnMap | static void setValuesOnMap(Map map, ResultRow row)(Code) | | Set row to map.
Parameters: map - Map to set values on Parameters: row - Result row |
|
|