在java里面执行一条oracle的sql更新语句,没有在任何事务里面,有没有被意外回退的可能?包括数据库执行的一些回退操作会不会引起这个更新操作回退。
希望老鸟们前来回答,分多,人傻,速来!
另外恭祝大伙元宵节快乐!人多分再加
希望老鸟们前来回答,分多,人傻,速来!
另外恭祝大伙元宵节快乐!人多分再加
解决方案 »
- 求助:关于ireport打印pdf字体加粗
- 使用MM7api开发彩信程序的问题
- javax.servlet.ServletException: ORA-01000:超出打开游标的最大数
- sturs2 附件在哪里改
- 关于使用spring访问webservice
- Tomcat配置问题,在线!
- 急问:如何在客户端访问jboss上的datasource??
- 使用事务回滚中的问题
- Jboss+CMp的问题
- 在webshere中成功配置了oracle jndi名称为什么还找不到类工厂,已经放在指定路径并且是classes12.zip/classes12.jar
- 当我们有个东西弄不出来的时候,要怎么弄
- 急急急急急急!!!!!!
public T execute(StatementCallback<T> action) throws DataAccessException {
Assert.notNull(action, "Callback object must not be null");
Connection con = DataSourceUtils.getConnection(getDataSource());
Statement stmt = null;
try {
Connection conToUse = con;
if (this.nativeJdbcExtractor != null &&
this.nativeJdbcExtractor.isNativeConnectionNecessaryForNativeStatements()) {
conToUse = this.nativeJdbcExtractor.getNativeConnection(con);
}
stmt = conToUse.createStatement();
applyStatementSettings(stmt);
Statement stmtToUse = stmt;
if (this.nativeJdbcExtractor != null) {
stmtToUse = this.nativeJdbcExtractor.getNativeStatement(stmt);
}
T result = action.doInStatement(stmtToUse);
handleWarnings(stmt);
return result;
}
catch (SQLException ex) {
// Release Connection early, to avoid potential connection pool deadlock
// in the case when the exception translator hasn't been initialized yet.
JdbcUtils.closeStatement(stmt);
stmt = null;
DataSourceUtils.releaseConnection(con, getDataSource());
con = null;
throw getExceptionTranslator().translate("StatementCallback", getSql(action), ex);
}
finally {
JdbcUtils.closeStatement(stmt);
DataSourceUtils.releaseConnection(con, getDataSource());
}
}这个是update时候调用的execute,没有回退吧