简体   繁体   English

oracle.sql.CLOB与java.sql.Clob

[英]oracle.sql.CLOB vs java.sql.Clob

I'm currently using oracle.sql.CLOB to bind to Oracle Clob. 我当前正在使用oracle.sql.CLOB绑定到Oracle Clob。

Are there any benefits of using 使用有什么好处吗

java.sql.Clob clob = con.createClob(); 

instead of creating a temporary Clob using 而不是使用创建临时Clob

oracle.oracle.sql.CLOB.createTemporary(oracleConn, false, oracle.sql.CLOB.DURATION_SESSION);

We are using Java 6. 我们正在使用Java 6。

oracle.sql.CLOB class deprecated for using java.sql.Clob interface : 不建议使用java.sql.Clob 接口使用oracle.sql.CLOB

Deprecated. 已过时。 Use java.sql.Clob interface for declaration instead of using concrete class oracle.sql.CLOB. 使用java.sql.Clob接口进行声明,而不要使用具体的类oracle.sql.CLOB。

Interface is available since Java 1.2 从Java 1.2开始提供接口

See also Oracle's Using Large Objects 另请参见Oracle 使用大对象

 Clob myClob = this.con.createClob(); 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 java.lang.ClassCastException:oracle.sql.CLOB无法强制转换为oracle.sql.CLOB - java.lang.ClassCastException: oracle.sql.CLOB cannot be cast to oracle.sql.CLOB 将字节数组转换为java.sql.Clob - convert byte array to java.sql.Clob 如何将byte []保存为java.sql.Clob? - How to save a byte[] as java.sql.Clob? 如何将varchar转换为java.sql.Clob - How to convert varchar to java.sql.Clob oracle.sql.CLOB无法转换为oracle.sql.DatumWithConnection - oracle.sql.CLOB cannot be cast to oracle.sql.DatumWithConnection DBunit生成java.lang.ClassCastException:尝试加载CLOB字段时,java.lang.String无法强制转换为oracle.sql.CLOB - DBunit generates java.lang.ClassCastException: java.lang.String cannot be cast to oracle.sql.CLOB when trying to load a CLOB field 获取 java.lang.ClassCastException:java.lang.String 无法转换为 java.sql.Clob - Getting the java.lang.ClassCastException: java.lang.String cannot be cast to java.sql.Clob ComboPooledDataSource -com.sun.proxy。$ Proxy78无法转换为oracle.sql.CLOB - ComboPooledDataSource -com.sun.proxy.$Proxy78 cannot be cast to oracle.sql.CLOB SQL Server CLOB数据转换为String Java + Angular - SQL Server CLOB data to String Java + Angular 如何从weblogic.jdbc.wrapper.Clob_oracle_sql_CLOB获取字符串? - How to get String from weblogic.jdbc.wrapper.Clob_oracle_sql_CLOB?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM