|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgoodsjpi.Persistent
goodslib.Blob
Binary large object class. This class can be used as base for creating multimedia or text objects with large size and sequential access. This class provide functionality for incremental object loading by parallel task.
Field Summary | |
protected byte[] |
data
|
protected Blob |
last
|
protected Blob |
next
|
Fields inherited from class goodsjpi.Persistent |
defaultMetaobject, metaobject |
Constructor Summary | |
Blob(byte[] buf)
|
|
Blob(int partSize)
|
Method Summary | |
void |
append(Blob bp)
Append new blob object at the end of blob objects chain. |
protected void |
fetched()
|
boolean |
handle()
This method is called by 'play' method for each part of blob object within conext of current task. |
void |
play()
Default implementation of this method just extracts all parts of blob from database and calls handle method for each part. |
Methods inherited from class goodsjpi.Persistent |
attachToStorage, clone, clusterWith, finalize, getDatabase, getOid, getStorageId, hashCode, onLoad |
Methods inherited from class java.lang.Object |
equals, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Blob next
protected Blob last
protected byte[] data
Constructor Detail |
public Blob(int partSize)
public Blob(byte[] buf)
Method Detail |
public boolean handle()
public void play()
protected void fetched()
public void append(Blob bp)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |