mirror of https://github.com/apache/openjpa.git
[OPENJPA-2690] Update OSGi Import-Package to support Oracle CLOB/BLOB
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1786518 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8567a5e5c2
commit
49c1478cf3
|
@ -241,8 +241,8 @@ public class OracleDictionary
|
|||
// all fine
|
||||
}
|
||||
|
||||
oracleClob_empty_lob_Method = getMethodByReflection("oracle.sql.CLOB", "empty_lob");
|
||||
oracleBlob_empty_lob_Method = getMethodByReflection("oracle.sql.BLOB", "empty_lob");
|
||||
oracleClob_empty_lob_Method = getMethodByReflection("oracle.sql.CLOB", "getEmptyCLOB");
|
||||
oracleBlob_empty_lob_Method = getMethodByReflection("oracle.sql.BLOB", "getEmptyBLOB");
|
||||
oracleClob_isEmptyLob_Method = getMethodByReflection("oracle.sql.CLOB", "isEmptyLob");
|
||||
|
||||
}
|
||||
|
@ -1267,6 +1267,10 @@ public class OracleDictionary
|
|||
throws SQLException {
|
||||
if (EMPTY_CLOB != null)
|
||||
return EMPTY_CLOB;
|
||||
|
||||
if (oracleClob_empty_lob_Method == null)
|
||||
return null;
|
||||
|
||||
try {
|
||||
return EMPTY_CLOB = (Clob) oracleClob_empty_lob_Method.invoke(null, new Object[0]);
|
||||
} catch (Exception e) {
|
||||
|
@ -1278,6 +1282,10 @@ public class OracleDictionary
|
|||
throws SQLException {
|
||||
if (EMPTY_BLOB != null)
|
||||
return EMPTY_BLOB;
|
||||
|
||||
if (oracleBlob_empty_lob_Method == null)
|
||||
return null;
|
||||
|
||||
try {
|
||||
return EMPTY_BLOB = (Blob) oracleBlob_empty_lob_Method.invoke(null, new Object[0]);
|
||||
} catch (Exception e) {
|
||||
|
|
|
@ -121,6 +121,9 @@
|
|||
<Private-Package />
|
||||
<Export-Package>org.apache.openjpa.*;version=${project.version}</Export-Package>
|
||||
<Import-Package>
|
||||
oracle.jdbc.pool;resolution:=optional,
|
||||
oracle.jdbc;resolution:=optional,
|
||||
oracle.sql;resolution:=optional,
|
||||
com.ibm.*;resolution:=optional,
|
||||
org.postgresql.*;resolution:=optional,
|
||||
org.apache.tools.ant.*;resolution:=optional,
|
||||
|
|
Loading…
Reference in New Issue