FileDocCategorySizeDatePackage
LobHolder.javaAPI DocHibernate 3.2.52252Tue Dec 12 16:22:26 GMT 2006org.hibernate.test.lob

LobHolder

public class LobHolder extends Object
An entity containing all kinds of good LOB-type data...

{@link #serialData} is used to hold general serializable data which is mapped via the {@link org.hibernate.type.SerializableType}.

{@link #materializedClob} is used to hold CLOB data that is materialized into a String immediately; it is mapped via the {@link org.hibernate.type.TextType}.

{@link #clobLocator} is used to hold CLOB data that is materialized lazily via a JDBC CLOB locator; it is mapped via the {@link org.hibernate.type.ClobType}

{@link #materializedBlob} is used to hold BLOB data that is materialized into a byte array immediately; it is mapped via the {@link org.hibernate.test.lob.MaterializedBlobType}.

{@link #blobLocator} is used to hold BLOB data that is materialized lazily via a JDBC BLOB locator; it is mapped via the {@link org.hibernate.type.BlobType}

author
Steve Ebersole

Fields Summary
private Long
id
private Serializable
serialData
private String
materializedClob
private Clob
clobLocator
private byte[]
materializedBlob
private Blob
blobLocator
Constructors Summary
Methods Summary
public java.sql.BlobgetBlobLocator()

		return blobLocator;
	
public java.sql.ClobgetClobLocator()

		return clobLocator;
	
public java.lang.LonggetId()

		return id;
	
public byte[]getMaterializedBlob()

		return materializedBlob;
	
public java.lang.StringgetMaterializedClob()

		return materializedClob;
	
public java.io.SerializablegetSerialData()

		return serialData;
	
public voidsetBlobLocator(java.sql.Blob blobLocator)

		this.blobLocator = blobLocator;
	
public voidsetClobLocator(java.sql.Clob clobLocator)

		this.clobLocator = clobLocator;
	
public voidsetId(java.lang.Long id)

		this.id = id;
	
public voidsetMaterializedBlob(byte[] materializedBlob)

		this.materializedBlob = materializedBlob;
	
public voidsetMaterializedClob(java.lang.String materializedClob)

		this.materializedClob = materializedClob;
	
public voidsetSerialData(java.io.Serializable serialData)

		this.serialData = serialData;