NpsPreparedStatement用于执行ORACLE预编译的SQL语句。
数据库连接将采用在db.xml中定义的DataSource名称为nps的连接。
默认下该数据库连接事务不是自动提交的。使用session.Commit()提交事务;使用session.Rollback()回滚事务。
目前还不支持大对象(CLOB、BLOB、LONG)、数组。
| void |
SetInt(int parameterIndex,int x) throws Exception 将指定参数设置为给定int值。 |
| void |
SetDouble(int parameterIndex,double x) throws Exception 将指定参数设置为给定double值。 |
| void |
SetString(int parameterIndex,String s) throws Exception 将指定参数设置为给定String值。 |
| void |
SetDate(int parameterIndex, Date d) throws Exception 将指定参数设置为给定Date值。 |
| void |
SetNull(int parameterIndex,int sqlType) throws Exception 将指定参数设置为NULL。 |
| NpsResultSet |
ExecuteQuery() throws Exception 执行SQL语句,返回结果集。 |
| int |
ExecuteUpdate() throws Exception 执行Insert、Delete、Update语句,返回影响的行数。 |
| int |
Close() 关闭本对象,释放数据库资源。 |