类 NonContextualLobCreator
- java.lang.Object
-
- org.hibernate.engine.jdbc.AbstractLobCreator
-
- org.hibernate.engine.jdbc.NonContextualLobCreator
-
- 所有已实现的接口:
LobCreator
public class NonContextualLobCreator extends AbstractLobCreator implements LobCreator
LobCreatorimplementation using non-contextual or local creation, meaning that we generate the LOB references ourselves as opposed to delegating to the JDBCConnection.- 作者:
- Steve Ebersole, Gail Badner
-
-
字段概要
字段 修饰符和类型 字段 说明 static NonContextualLobCreatorINSTANCESingleton access
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 BlobcreateBlob(byte[] bytes)Create a BLOB reference encapsulating the given byte array.BlobcreateBlob(InputStream stream, long length)Create a BLOB reference encapsulating the given binary stream.ClobcreateClob(Reader reader, long length)Create a CLOB reference encapsulating the given character data.ClobcreateClob(String string)Create a CLOB reference encapsulating the given String data.NClobcreateNClob(Reader reader, long length)Create a NCLOB reference encapsulating the given character data.NClobcreateNClob(String string)Create a NCLOB reference encapsulating the given String data.-
从类继承的方法 org.hibernate.engine.jdbc.AbstractLobCreator
wrap, wrap, wrap
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.hibernate.engine.jdbc.LobCreator
wrap, wrap, wrap
-
-
-
-
字段详细资料
-
INSTANCE
public static final NonContextualLobCreator INSTANCE
Singleton access
-
-
方法详细资料
-
createBlob
public Blob createBlob(byte[] bytes)
从接口复制的说明:LobCreatorCreate a BLOB reference encapsulating the given byte array.- 指定者:
createBlob在接口中LobCreator- 参数:
bytes- The byte array to wrap as a blob.- 返回:
- The created blob, castable to
Blobas well asBlobImplementer
-
createBlob
public Blob createBlob(InputStream stream, long length)
从接口复制的说明:LobCreatorCreate a BLOB reference encapsulating the given binary stream.- 指定者:
createBlob在接口中LobCreator- 参数:
stream- The binary stream to wrap as a blob.length- The length of the stream.- 返回:
- The created blob, castable to
Blobas well asBlobImplementer
-
createClob
public Clob createClob(String string)
从接口复制的说明:LobCreatorCreate a CLOB reference encapsulating the given String data.- 指定者:
createClob在接口中LobCreator- 参数:
string- The String to wrap as a clob.- 返回:
- The created clob, castable to
Clobas well asClobImplementer
-
createClob
public Clob createClob(Reader reader, long length)
从接口复制的说明:LobCreatorCreate a CLOB reference encapsulating the given character data.- 指定者:
createClob在接口中LobCreator- 参数:
reader- The character data reader.length- The length of the reader data.- 返回:
- The created clob, castable to
Clobas well asClobImplementer
-
createNClob
public NClob createNClob(String string)
从接口复制的说明:LobCreatorCreate a NCLOB reference encapsulating the given String data.- 指定者:
createNClob在接口中LobCreator- 参数:
string- The String to wrap as a NCLOB.- 返回:
- The created NCLOB, castable as
Clobas well asNClobImplementer. In JDK 1.6 environments, also castable to java.sql.NClob
-
createNClob
public NClob createNClob(Reader reader, long length)
从接口复制的说明:LobCreatorCreate a NCLOB reference encapsulating the given character data.- 指定者:
createNClob在接口中LobCreator- 参数:
reader- The character data reader.length- The length of the reader data.- 返回:
- The created NCLOB, castable as
Clobas well asNClobImplementer. In JDK 1.6 environments, also castable to java.sql.NClob
-
-