org.jbpm.pvm.internal.lob
Class Lob

java.lang.Object
  extended by org.jbpm.pvm.internal.lob.Lob
All Implemented Interfaces:
java.io.Serializable

public class Lob
extends java.lang.Object
implements java.io.Serializable

Author:
Tom Baeyens
See Also:
Serialized Form

Field Summary
protected  java.sql.Blob blob
           
protected  byte[] bytes
           
protected  java.util.List<BytesChop> bytesChops
           
protected  byte[] cachedBytes
           
protected  char[] cachedChars
           
protected  java.util.List<CharChop> charChops
           
protected  java.sql.Clob clob
           
protected  long dbid
           
protected  int dbversion
           
static BlobStrategy DEFAULT_BLOB_STRATEGY
           
static ClobStrategy DEFAULT_CLOB_STRATEGY
           
protected  java.lang.String text
           
 
Constructor Summary
Lob()
           
Lob(byte[] bytes, boolean generateDbid)
           
Lob(char[] text, boolean generateDbid)
           
 
Method Summary
 byte[] extractBytes()
           
 char[] extractChars()
           
protected  BlobStrategy getBlobStrategy()
           
protected  ClobStrategy getClobStrategy()
           
 long getDbid()
           
protected  java.lang.Object readResolve()
           
 void setDbid(long dbid)
           
protected  java.lang.Object writeReplace()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_BLOB_STRATEGY

public static final BlobStrategy DEFAULT_BLOB_STRATEGY

DEFAULT_CLOB_STRATEGY

public static final ClobStrategy DEFAULT_CLOB_STRATEGY

dbid

protected long dbid

dbversion

protected int dbversion

cachedBytes

protected byte[] cachedBytes

blob

protected java.sql.Blob blob

bytes

protected byte[] bytes

bytesChops

protected java.util.List<BytesChop> bytesChops

cachedChars

protected char[] cachedChars

clob

protected java.sql.Clob clob

text

protected java.lang.String text

charChops

protected java.util.List<CharChop> charChops
Constructor Detail

Lob

public Lob()

Lob

public Lob(byte[] bytes,
           boolean generateDbid)
Parameters:
bytes - The actual bytes that will be stored.
generateId - If true, the default DbidGenerator will be used generate a dbid for this Lob object.

Lob

public Lob(char[] text,
           boolean generateDbid)
Method Detail

getDbid

public long getDbid()

setDbid

public void setDbid(long dbid)

extractChars

public char[] extractChars()

extractBytes

public byte[] extractBytes()

getClobStrategy

protected ClobStrategy getClobStrategy()

getBlobStrategy

protected BlobStrategy getBlobStrategy()

readResolve

protected java.lang.Object readResolve()
                                throws java.io.ObjectStreamException
Throws:
java.io.ObjectStreamException

writeReplace

protected java.lang.Object writeReplace()
                                 throws java.io.ObjectStreamException
Throws:
java.io.ObjectStreamException


Copyright © 2010 JBoss Community. All Rights Reserved.