org.objectweb.jorm.interp.genclass.rdb.lib
Class RdbGenClassBinding
java.lang.Object
|
+--org.objectweb.jorm.interp.genclass.lib.GenClassBinding
|
+--org.objectweb.jorm.interp.genclass.rdb.lib.RdbGenClassBinding
- All Implemented Interfaces:
- PBinding, PBindingCtrl
- public class RdbGenClassBinding
- extends GenClassBinding
This class provides the implementation of PBinding for RDBMS.
- Author:
- P. D?chamboux
| 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 |
|
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 |
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. |
| Methods inherited from class org.objectweb.jorm.interp.genclass.lib.GenClassBinding |
bind, export, export, getPClassMapping, getPName, getStatus, init, setPName, setStatus, unbind, unexport |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RdbGenClassBinding
public RdbGenClassBinding()
- It constructs a RdbGenClassBinding.
RdbGenClassBinding
public RdbGenClassBinding(GenClassMapping mapping)
throws PExceptionProtocol
- It constructs a RdbGenClassBinding.
exist
public boolean exist(java.lang.Object conn)
throws PException
- It verifies if the DSI attached to this binding exists within the DS.
- Parameters:
conn - The connection that can be used to refer to the DS.- Returns:
- It returns true if the DSI exists.
- Throws:
PExceptionIO - It is raised when a problem occured while
accessing to the DS.PExceptionProtocol - It is raised when it is called with a
state different from the following ones:
LIFECYCLE_ACTIVEFORIO
LIFECYCLE_NOACC
read
public void read(java.lang.Object conn,
PAccessor pa)
throws PException
- It reads the data store instance designated by the PName of this
binding and transfers each attribute value to the accessor object.
- Parameters:
conn - The connection that can be used to refer to the DS.- Throws:
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
write
public void write(java.lang.Object conn,
PAccessor pa)
throws PException
- It transfers each attribute value taken from the PAccessor
object to the data store instance designated by the PName
associated with this binding.
- Parameters:
conn - The connection that can be used to refer to the DS.- Throws:
e1 - if the state of the binding does not allow writing
to be completed (no valid name for example)
e2 if the pc parameter does not allow acces to the
data storePExceptionIO - It is raised when a problem occured while
accessing to the DS.PExceptionProtocol - It is raised when it is called with a
state different from the following ones:
LIFECYCLE_ACTIVEFORIO
LIFECYCLE_NEWTOWRITE
LIFECYCLE_DELTOWRITE
LIFECYCLE_DELTOWRITENOACC