类 ContextualLobCreator
- java.lang.Object
-
- org.hibernate.engine.jdbc.AbstractLobCreator
-
- org.hibernate.engine.jdbc.ContextualLobCreator
-
- 所有已实现的接口:
LobCreator
public class ContextualLobCreator extends AbstractLobCreator implements LobCreator
LobCreatorimplementation using contextual creation against the JDBCConnectionclass's LOB creation methods.- 作者:
- Steve Ebersole, Gail Badner
-
-
字段概要
字段 修饰符和类型 字段 说明 static LobCreationContext.Callback<Blob>CREATE_BLOB_CALLBACKCallback for performing contextual BLOB creationstatic LobCreationContext.Callback<Clob>CREATE_CLOB_CALLBACKCallback for performing contextual CLOB creationstatic LobCreationContext.Callback<NClob>CREATE_NCLOB_CALLBACKCallback for performing contextual NCLOB creation
-
构造器概要
构造器 构造器 说明 ContextualLobCreator(LobCreationContext lobCreationContext)Constructs a ContextualLobCreator
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 BlobcreateBlob()Create the basic contextual BLOB reference.BlobcreateBlob(byte[] bytes)Create a BLOB reference encapsulating the given byte array.BlobcreateBlob(InputStream inputStream, long length)Create a BLOB reference encapsulating the given binary stream.ClobcreateClob()Create the basic contextual CLOB reference.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()Create the basic contextual NCLOB reference.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
-
-
-
-
字段详细资料
-
CREATE_BLOB_CALLBACK
public static final LobCreationContext.Callback<Blob> CREATE_BLOB_CALLBACK
Callback for performing contextual BLOB creation
-
CREATE_CLOB_CALLBACK
public static final LobCreationContext.Callback<Clob> CREATE_CLOB_CALLBACK
Callback for performing contextual CLOB creation
-
CREATE_NCLOB_CALLBACK
public static final LobCreationContext.Callback<NClob> CREATE_NCLOB_CALLBACK
Callback for performing contextual NCLOB creation
-
-
构造器详细资料
-
ContextualLobCreator
public ContextualLobCreator(LobCreationContext lobCreationContext)
Constructs a ContextualLobCreator- 参数:
lobCreationContext- The context for performing LOB creation
-
-
方法详细资料
-
createBlob
public Blob createBlob()
Create the basic contextual BLOB reference.- 返回:
- The created BLOB reference.
-
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 inputStream, long length)
从接口复制的说明:LobCreatorCreate a BLOB reference encapsulating the given binary stream.- 指定者:
createBlob在接口中LobCreator- 参数:
inputStream- 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()
Create the basic contextual CLOB reference.- 返回:
- The created CLOB reference.
-
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()
Create the basic contextual NCLOB reference.- 返回:
- The created NCLOB reference.
-
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
-
-