|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
org.objectweb.jorm.interp.genclass.file.lib.FileGenClassBinding
author Sebastien Chassande-Barrioz
| Constructor Summary | |
FileGenClassBinding()
|
|
FileGenClassBinding(GenClassMapping mapping)
It constructs a RdbGenClassBinding. |
|
| Method Summary | |
boolean |
exist(java.lang.Object conn)
It verifies if the DSI attached to this binding exists within the DS. |
byte |
pngetByteField(java.lang.String fn,
java.lang.Object ctx)
It retrieves the value of a byte field. |
char |
pngetCharField(java.lang.String fn,
java.lang.Object ctx)
It retrieves the value of a char field. |
int |
pngetIntField(java.lang.String fn,
java.lang.Object ctx)
It retrieves the value of an int field. |
java.lang.Integer |
pngetIntObjField(java.lang.String fn,
java.lang.Object ctx)
It retrieves the value of an int field. |
long |
pngetLongField(java.lang.String fn,
java.lang.Object ctx)
It retrieves the value of a long field. |
short |
pngetShortField(java.lang.String fn,
java.lang.Object ctx)
It retrieves the value of a short field. |
java.lang.String |
pngetStringField(java.lang.String fn,
java.lang.Object ctx)
It retrieves the value of a string field. |
void |
read(java.lang.Object conn)
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)
Reads the content of a persistent object from the file represented by the given ObjectInputStream. |
void |
readFile(java.io.ObjectInputStream ois,
javax.resource.cci.Connection conn)
Reads the content of a persistent object from the file represented by the given ObjectInputStream. |
void |
write(java.lang.Object conn)
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)
Writes the content of a persistent object to the file represented by the given ObjectOutputStream. |
void |
writeFile(java.io.ObjectOutputStream oos,
javax.resource.cci.Connection conn)
Writes the content of a persistent object to the file represented by the given ObjectOutputStream. |
| Methods inherited from interface org.objectweb.jorm.naming.api.PNameGetter |
pngetDateField, pngetObyteField, pngetOcharField, pngetOintField, pngetOlongField, pngetOshortField |
| Constructor Detail |
public FileGenClassBinding()
public FileGenClassBinding(GenClassMapping mapping)
throws PExceptionProtocol
| Method Detail |
public boolean exist(java.lang.Object conn)
throws PExceptionIO,
PExceptionNaming,
PExceptionProtocol
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
LIFECYCLE_NOACC
public void read(java.lang.Object conn)
throws PExceptionIO,
PExceptionNaming,
PExceptionProtocol
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
public void write(java.lang.Object conn)
throws PExceptionIO,
PExceptionNaming,
PExceptionProtocol,
PExceptionTyping
conn - The connection that can be used to refer to the DS.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.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
LIFECYCLE_DELTOWRITENOACCPExceptionTyping - It is raised when a reference to be stored
has a type incompatible with the respective
field definition.
public void readFile(java.io.ObjectInputStream ois)
throws java.lang.Exception
ois - The ObjectInputStream representing the file from which to
read.
public void readFile(java.io.ObjectInputStream ois,
javax.resource.cci.Connection conn)
throws java.lang.Exception
ois - The ObjectInputStream representing the file from which to
read.conn - The connection used to access the file repository.
public void writeFile(java.io.ObjectOutputStream oos)
throws java.lang.Exception
oos - The ObjectOutputStream representing the file to which to
write.
public void writeFile(java.io.ObjectOutputStream oos,
javax.resource.cci.Connection conn)
throws java.lang.Exception
oos - The ObjectOutputStream representing the file to which to
write.conn - The connection used to access the file repository.
public byte pngetByteField(java.lang.String fn,
java.lang.Object ctx)
throws PExceptionTyping,
PExceptionIO
pngetByteField in interface PNameGetterfn - A String containing the name of the field.cxt - A context used by PNameGetter to extract the related data.PExceptionTyping - There is no field with this name and
this type within this composite name.PExceptionIO - It is raised when a problem occurs while
potentially accessing the DSI.
public char pngetCharField(java.lang.String fn,
java.lang.Object ctx)
throws PExceptionTyping,
PExceptionIO
pngetCharField in interface PNameGetterfn - A String containing the name of the field.cxt - A context used by PNameGetter to extract the related data.PExceptionTyping - There is no field with this name and
this type within this composite name.PExceptionIO - It is raised when a problem occurs while
potentially accessing the DSI.
public short pngetShortField(java.lang.String fn,
java.lang.Object ctx)
throws PExceptionTyping,
PExceptionIO
pngetShortField in interface PNameGetterfn - A String containing the name of the field.cxt - A context used by PNameGetter to extract the related data.PExceptionTyping - There is no field with this name and
this type within this composite name.PExceptionIO - It is raised when a problem occurs while
potentially accessing the DSI.
public int pngetIntField(java.lang.String fn,
java.lang.Object ctx)
throws PExceptionTyping,
PExceptionIO
pngetIntField in interface PNameGettercxt - A context used by PNameGetter to extract the related data.fn - A String containing the name of the field.PExceptionTyping - There is no field with this name and
this type within this composite name.PExceptionIO - It is raised when a problem occurs while
potentially accessing the DSI.
public java.lang.Integer pngetIntObjField(java.lang.String fn,
java.lang.Object ctx)
throws PExceptionTyping,
PExceptionIO
cxt - A context used by PNameGetter to extract the related data.fn - A String containing the name of the field.PExceptionTyping - There is no field with this name and
this type within this composite name.PExceptionIO - It is raised when a problem occurs while
potentially accessing the DSI.
public long pngetLongField(java.lang.String fn,
java.lang.Object ctx)
throws PExceptionTyping,
PExceptionIO
pngetLongField in interface PNameGetterfn - A String containing the name of the field.cxt - A context used by PNameGetter to extract the related data.PExceptionTyping - There is no field with this name and
this type within this composite name.PExceptionIO - It is raised when a problem occurs while
potentially accessing the DSI.
public java.lang.String pngetStringField(java.lang.String fn,
java.lang.Object ctx)
throws PExceptionTyping,
PExceptionIO
pngetStringField in interface PNameGetterfn - A String containing the name of the field.cxt - A context used by PNameGetter to extract the related data.PExceptionTyping - There is no field with this name and
this type within this composite name.PExceptionIO - It is raised when a problem occurs while
potentially accessing the DSI.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||