|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.objectwave.persist.file.ObjectBuilder
Build the DomainObjects from the byte array from the file.
Field Summary | |
static ObjectFormatter |
defaultFormatter
|
Constructor Summary | |
ObjectBuilder()
|
Method Summary | |
Persistence |
buildObject(Persistence queryObject,
byte[] data,
java.lang.Object pkeyData)
Build the Object from the byte [] |
static ObjectBuilder |
getInstance()
Gets the Instance attribute of the ObjectBuilder class |
protected static RDBPersistence |
getRDBAdapter(Persistence object)
A utility method that simplifies code. |
byte[] |
getSaveData(RDBPersistence pObj)
Convert the data in the object to a byte [] of data. |
protected boolean |
isMatch(RDBPersistence one,
RDBPersistence two)
|
protected void |
readPrimitive(java.io.DataInputStream dos,
AttributeTypeColumn col,
Persistence obj)
Read the primitive values from the input stream. |
protected void |
readReference(java.lang.String pkey,
AttributeTypeColumn col,
Persistence obj,
RDBPersistence pObj,
Persistence queryObject)
Utility method that does the work of other methods. |
protected void |
setPrimaryKeyValues(java.lang.Object pkeyData,
Persistence result,
RDBPersistence pResult)
|
protected void |
writePrimitive(java.io.DataOutputStream dos,
AttributeTypeColumn col,
Persistence obj)
Write the primitive value to the output stream. |
protected void |
writeReference(java.io.DataOutputStream dos,
RDBPersistence pFkData,
RDBPersistence pObj,
Persistence fkData,
AttributeTypeColumn fkCol)
Utility method that does the work of other methods. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static ObjectFormatter defaultFormatter
Constructor Detail |
public ObjectBuilder()
Method Detail |
public static ObjectBuilder getInstance()
protected static final RDBPersistence getRDBAdapter(Persistence object)
object
-
protected void setPrimaryKeyValues(java.lang.Object pkeyData, Persistence result, RDBPersistence pResult)
pkeyData
- The new PrimaryKeyValues valueresult
- The new PrimaryKeyValues valuepResult
- The new PrimaryKeyValues valuepublic byte[] getSaveData(RDBPersistence pObj)
pObj
-
protected boolean isMatch(RDBPersistence one, RDBPersistence two)
one
- two
-
public Persistence buildObject(Persistence queryObject, byte[] data, java.lang.Object pkeyData) throws java.lang.InstantiationException, java.lang.IllegalAccessException
queryObject
- data
- pkeyData
-
java.lang.InstantiationException
java.lang.IllegalAccessException
protected void readReference(java.lang.String pkey, AttributeTypeColumn col, Persistence obj, RDBPersistence pObj, Persistence queryObject) throws java.io.IOException, java.lang.InstantiationException, java.lang.IllegalAccessException
col
- obj
- pObj
- queryObject
- pkey
-
java.io.IOException
java.lang.InstantiationException
java.lang.IllegalAccessException
protected void writeReference(java.io.DataOutputStream dos, RDBPersistence pFkData, RDBPersistence pObj, Persistence fkData, AttributeTypeColumn fkCol) throws java.io.IOException
dos
- pFkData
- pObj
- fkData
- fkCol
-
java.io.IOException
protected void writePrimitive(java.io.DataOutputStream dos, AttributeTypeColumn col, Persistence obj) throws java.io.IOException
dos
- col
- obj
-
java.io.IOException
protected void readPrimitive(java.io.DataInputStream dos, AttributeTypeColumn col, Persistence obj) throws java.io.IOException
dos
- col
- obj
-
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |