提交 565b992d authored 作者: Thomas Mueller's avatar Thomas Mueller

Documentation and formatting.

上级 de10ab7d
......@@ -64,7 +64,7 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat
protected CommandInterface command;
private final String sqlStatement;
private ArrayList<Value[]> batchParameters;
private HashMap<String, Integer> cachedColumnLabelMap = null;
private HashMap<String, Integer> cachedColumnLabelMap;
JdbcPreparedStatement(JdbcConnection conn, String sql, int id, int resultSetType,
int resultSetConcurrency, boolean closeWithResultSet) {
......@@ -78,10 +78,10 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat
* Looking up the column index can sometimes show up on the performance profile,
* so cache the map.
*/
void setCachedColumnLabelMap( HashMap<String, Integer> cachedColumnLabelMap) {
this.cachedColumnLabelMap = cachedColumnLabelMap;
void setCachedColumnLabelMap(HashMap<String, Integer> cachedColumnLabelMap) {
this.cachedColumnLabelMap = cachedColumnLabelMap;
}
/**
* Executes a query (select statement) and returns the result set. If
* another result set exists for this statement, this will be closed (even
......@@ -108,7 +108,7 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat
} finally {
setExecutingStatement(null);
}
resultSet = new JdbcResultSet(conn, this, result, id, closedByResultSet, scrollable, updatable, cachedColumnLabelMap);
resultSet = new JdbcResultSet(conn, this, result, id, closedByResultSet, scrollable, updatable, cachedColumnLabelMap);
}
return resultSet;
} catch (Exception e) {
......@@ -1075,6 +1075,7 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat
/**
* Executes the batch.
* If one of the batched statements fails, this database will continue.
*
* @return the array of update counts
*/
......
......@@ -91,7 +91,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
private Value[] updateRow;
private HashMap<String, Integer> columnLabelMap;
private HashMap<Integer, Value[]> patchedRows;
private JdbcPreparedStatement preparedStatement = null;
private JdbcPreparedStatement preparedStatement;
JdbcResultSet(JdbcConnection conn, JdbcStatement stat, ResultInterface result, int id,
boolean closeStatement, boolean scrollable, boolean updatable) {
......@@ -104,7 +104,7 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
this.scrollable = scrollable;
this.updatable = updatable;
}
/**
* Overload used to explicitly set the column-mapping.
*/
......
......@@ -593,6 +593,7 @@ public class JdbcStatement extends TraceObject implements Statement {
/**
* Executes the batch.
* If one of the batched statements fails, this database will continue.
*
* @return the array of update counts
*/
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论