org.jbpm.bytes
Class ByteArray
java.lang.Object
org.jbpm.bytes.ByteArray
- All Implemented Interfaces:
- Serializable
public class ByteArray
- extends Object
- implements Serializable
is a persistable array of bytes. While there is no generic way of storing blobs that is
supported by many databases, all databases are able to handle small chunks of bytes properly.
It is the responsibility of this class to chop the large byte array into small chunks of 1K
(and combine the chunks again in the reverse way). Hibernate will persist the list of
byte-chunks in the database.
ByteArray is used in process variableInstances and in the file module (that stores the
non-parsed process archive files).
- See Also:
- Serialized Form
name
protected String name
byteBlocks
protected List byteBlocks
ByteArray
public ByteArray()
ByteArray
public ByteArray(byte[] bytes)
ByteArray
public ByteArray(String name,
byte[] bytes)
ByteArray
public ByteArray(ByteArray other)
update
public void update(ByteArray value)
getBytes
public byte[] getBytes()
getId
public long getId()
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
getByteBlocks
public List getByteBlocks()
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.