Handling Large Database Columns
If your SQL repository definition includes properties that might correspond to large objects in the database, you might need to set some properties in the SQL Repository component to handle them.
Property | Description |
---|
useSetBinaryStream
| If useSetBinaryStream is set to true , the SQL repository always uses setBinaryStream() instead of setBytes() in prepared statements. The setBinaryStream() is required for large byte arrays in some JDBC drivers. |
useSetUnicodeStream
| If useSetUnicodeStream is set to true, the SQL repository always uses setUnicodeStream() instead of setString() in prepared statements. The setUnicodeStream() method is required for large Strings in some JDBC drivers. Setting useSetUnicodeStream="true" is recommended if you use Oracle with internationalized content, but is not recommended if you do not have internationalized content in your database. Note that if you use MS SQL Server, you must set useSetUnicodeStream to false. |
useSetAsciiStream
| If useSetAsciiStream is set to true , the SQL repository always uses setAsciiStream() instead of setString() in prepared statements. You can useSetAsciiStream instead of useSetUnicodeStream , but you lose the ability to handle internationalized values in the database. |
useSetObject
| If useSetObject is set to true , the SQL repository always uses setObject() instead of setInt() , setFloat() , setDouble() , or setString() in prepared statements. |