|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.objectweb.jorm.genclass.lib.GenClassBinding
|
+--org.objectweb.jorm.mapper.fos.genclass.FosGenClassBinding
author Sebastien Chassande-Barrioz
| Field Summary |
| Fields inherited from class org.objectweb.jorm.genclass.lib.GenClassBinding |
genClassMapping, indexes, pName, status |
| Fields inherited from interface org.objectweb.jorm.api.PBinding |
ACTION_BIND, ACTION_EXIST, ACTION_EXPORT, ACTION_READ, ACTION_UNBIND, ACTION_UNEXPORT, ACTION_WRITE, LIFECYCLE_ACTIVEFORIO, LIFECYCLE_DELTOWRITE, LIFECYCLE_ERROR, LIFECYCLE_NEWTOWRITE, LIFECYCLE_NOTBOUND |
| Constructor Summary | |
FosGenClassBinding()
It constructs a FosGenClassBinding. |
|
FosGenClassBinding(GenClassMapping mapping)
It constructs a FosGenClassBinding for a GC whose elements are GC in turn. |
|
| Method Summary | |
boolean |
exist(java.lang.Object conn)
It verifies if the DSI attached to this binding exists within the DS. |
void |
read(java.lang.Object conn,
PAccessor pa)
It reads the data store instance designated by the PName of this binding and transfers each attribute value to the accessor object. |
void |
readFile(java.io.ObjectInputStream ois,
FosAccess conn,
java.lang.Object ctxt)
Reads the content of a persistent object from the file represented by the given ObjectInputStream. |
void |
write(java.lang.Object conn,
PAccessor pa)
It transfers each attribute value taken from the PAccessor object to the data store instance designated by the PName associated with this binding. |
void |
writeFile(java.io.ObjectOutputStream oos,
FosAccess conn,
java.lang.Object ctxt)
Writes the content of a persistent object to the file represented by the given ObjectOutputStream. |
| Methods inherited from class org.objectweb.jorm.genclass.lib.GenClassBinding |
bind, export, export, getPClassMapping, getPName, getStatus, init, read, setPName, setStatus, unbind, unexport |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FosGenClassBinding()
public FosGenClassBinding(GenClassMapping mapping)
throws PExceptionProtocol
| Method Detail |
public boolean exist(java.lang.Object conn)
throws PException
conn - The connection that can be used to refer to the DS.
PExceptionIO - It is raised when a problem occured while
accessing to the DS.
PExceptionNaming - It is raised when there is a problem for the
associated binder to manage this PName.
PExceptionProtocol - It is raised when it is called with a
state different from the following ones:
LIFECYCLE_ACTIVEFORIO
PException
public void read(java.lang.Object conn,
PAccessor pa)
throws PException
conn - The connection that can be used to refer to the DS.pa - The PAccessor used to access memory variables.
PExceptionIO - It is raised when a problem occured while
accessing to the DS.
PExceptionNaming - It is raised when there is a problem for the
associated binder to manage this PName.
PExceptionProtocol - It is raised when it is called with a
state different from the following ones:
LIFECYCLE_ACTIVEFORIO
PException
public void write(java.lang.Object conn,
PAccessor pa)
throws PException
conn - The connection that can be used to refer to the DS.pa - The PAccessor used to access memory variables.
PExceptionIO - It is raised when a problem occured while
accessing to the DS.
PExceptionNaming - It is raised when there is a problem for the
associated binder to manage this PName.
PExceptionProtocol - It is raised when it is called with a
state different from the following ones:
LIFECYCLE_ACTIVEFORIO
LIFECYCLE_NEWTOWRITE
LIFECYCLE_DELTOWRITE
PExceptionTyping - It is raised when a reference to be stored
has a type incompatible with the respective
field definition.
PException
public void readFile(java.io.ObjectInputStream ois,
FosAccess conn,
java.lang.Object ctxt)
throws java.lang.Exception
ois - The ObjectInputStream representing the file from which to
read.conn - The connection used to access the File Object Store.
java.lang.Exception
public void writeFile(java.io.ObjectOutputStream oos,
FosAccess conn,
java.lang.Object ctxt)
throws java.lang.Exception
oos - The ObjectOutputStream representing the file to which to
write.conn - The connection used to access the File Object Store.
java.lang.Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||