mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-09 04:34:49 +00:00
HHH-6129 - org.hibernate.LobHelper#createNClob can now return NClob
This commit is contained in:
parent
303691c80e
commit
939fba6b72
@ -22,10 +22,12 @@
|
|||||||
* Boston, MA 02110-1301 USA
|
* Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
package org.hibernate;
|
package org.hibernate;
|
||||||
|
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.io.Reader;
|
import java.io.Reader;
|
||||||
import java.sql.Blob;
|
import java.sql.Blob;
|
||||||
import java.sql.Clob;
|
import java.sql.Clob;
|
||||||
|
import java.sql.NClob;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A {@link Session session's} helper for creating LOB data
|
* A {@link Session session's} helper for creating LOB data
|
||||||
@ -73,27 +75,21 @@ public interface LobHelper {
|
|||||||
public Clob createClob(Reader reader, long length);
|
public Clob createClob(Reader reader, long length);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new {@link java.sql.Clob} from content.
|
* Create a new {@link NClob} from content.
|
||||||
* <p/>
|
|
||||||
* Note, on JDK 1.6+ environments will
|
|
||||||
* create and return a NClob instead (NClob extends the Clob interface).
|
|
||||||
*
|
*
|
||||||
* @param string The string data
|
* @param string The string data
|
||||||
*
|
*
|
||||||
* @return The created {@link java.sql.Clob}/NClob
|
* @return The created {@link NClob}
|
||||||
*/
|
*/
|
||||||
public Clob createNClob(String string);
|
public NClob createNClob(String string);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new {@link Clob} from character reader.
|
* Create a new {@link NClob} from character reader.
|
||||||
* <p/>
|
|
||||||
* Note, on JDK 1.6+ environments will
|
|
||||||
* create and return a NClob instead (NClob extends the Clob interface).
|
|
||||||
*
|
*
|
||||||
* @param reader a character stream
|
* @param reader a character stream
|
||||||
* @param length the number of characters in the stream
|
* @param length the number of characters in the stream
|
||||||
*
|
*
|
||||||
* @return The created {@link java.sql.Clob}/NClob
|
* @return The created {@link NClob}
|
||||||
*/
|
*/
|
||||||
public Clob createNClob(Reader reader, long length);
|
public NClob createNClob(Reader reader, long length);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user