|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.objectweb.jorm.facility.naming.basidir.BasidBinder
| Field Summary | |
protected short |
codingType
|
protected java.lang.Object |
nullOValue
|
protected long |
nullValue
|
protected PClassMapping |
pcm
|
protected PType |
ptype
|
| Fields inherited from interface org.objectweb.jorm.naming.api.PNameCoder |
CTBYTE, CTBYTEARRAY, CTCHAR, CTCHARARRAY, CTCOMPOSITE, CTDATE, CTINT, CTLONG, CTOBYTE, CTOCHAR, CTOINT, CTOLONG, CTOSHORT, CTSHORT, CTSTRING, CTSYSTEM |
| Constructor Summary | |
BasidBinder()
|
|
BasidBinder(PMapper m,
java.lang.String genname,
byte clact)
|
|
BasidBinder(short codingtype)
|
|
BasidBinder(short codingtype,
long nullValue)
|
|
BasidBinder(short codingtype,
java.lang.Object nullValue)
|
|
| Method Summary | |
void |
bind(PName pn,
PBindingCtrl pb)
It associates a PBinding object with a PName within a PBinder. |
boolean |
codingSupported(short codingtype)
It tests if a given coding type is supported by this naming context. |
PName |
decode(byte[] en)
The decode methods recreates PName within a naming context from an encoded representation. |
PName |
decodeAbstract(java.lang.Object en,
java.lang.Object context)
The decodeAbstract methods recreates PName within a naming context from an encoded representation. |
PName |
decodeByte(byte en)
The decodeByte methods recreates PName within a naming context from an encoded representation. |
PName |
decodeChar(char en)
The decodeChar methods recreates PName within a naming context from an encoded representation. |
PName |
decodeDate(java.util.Date en)
The decodeDate methods recreates PName within a naming context from an encoded representation. |
PName |
decodeInt(int en)
The decodeInt methods recreates PName within a naming context from an encoded representation. |
PName |
decodeLong(long en)
The decodeLong methods recreates PName within a naming context from an encoded representation. |
PName |
decodeObyte(java.lang.Byte en)
The decodeObyte methods recreates PName within a naming context from an encoded representation. |
PName |
decodeOchar(java.lang.Character en)
The decodeOchar methods recreates PName within a naming context from an encoded representation. |
PName |
decodeOint(java.lang.Integer en)
The decodeOint methods recreates PName within a naming context from an encoded representation. |
PName |
decodeOlong(java.lang.Long en)
The decodeOlong methods recreates PName within a naming context from an encoded representation. |
PName |
decodeOshort(java.lang.Short en)
The decodeOshort methods recreates PName within a naming context from an encoded representation. |
PName |
decodeShort(short en)
The decodeShort methods recreates PName within a naming context from an encoded representation. |
PName |
decodeString(java.lang.String en)
The decodeString methods recreates PName within a naming context from an encoded representation. |
byte[] |
encode(PName pn)
The encode method produces an encoded representation of a PName within a naming context. |
java.lang.Object |
encodeAbstract(PName pn)
The encodeAbstract method produces an encoded representation of a PName within a naming context. |
byte |
encodeByte(PName pn)
The encodeByte method produces an encoded representation of a PName within a naming context. |
char |
encodeChar(PName pn)
The encodeChar method produces an encoded representation of a PName within a naming context. |
java.util.Date |
encodeDate(PName pn)
The encodeDate method produces an encoded representation of a PName within a naming context. |
int |
encodeInt(PName pn)
The encodeInt method produces an encoded representation of a PName within a naming context. |
long |
encodeLong(PName pn)
The encodeLong method produces an encoded representation of a PName within a naming context. |
java.lang.Byte |
encodeObyte(PName pn)
The encodeObyte method produces an encoded representation of a PName within a naming context. |
java.lang.Character |
encodeOchar(PName pn)
The encodeOchar method produces an encoded representation of a PName within a naming context. |
java.lang.Integer |
encodeOint(PName pn)
The encodeOint method produces an encoded representation of a PName within a naming context. |
java.lang.Long |
encodeOlong(PName pn)
The encodeOlong method produces an encoded representation of a PName within a naming context. |
java.lang.Short |
encodeOshort(PName pn)
The encodeOshort method produces an encoded representation of a PName within a naming context. |
short |
encodeShort(PName pn)
The encodeShort method produces an encoded representation of a PName within a naming context. |
java.lang.String |
encodeString(PName pn)
The encodeString method produces an encoded representation of a PName within a naming context. |
PName |
export(java.lang.Object conn,
java.lang.Object en)
It associates a PName to an information item within a naming context. |
PName |
export(java.lang.Object conn,
java.lang.Object en,
java.lang.Object hints)
It associates a PName to an information item within a naming context. |
PClassMapping |
getBinderClassMapping()
It returns the PClassMapping for which it is the binder. |
java.lang.String |
getClassName()
|
short |
getCodingType()
|
PName |
getNull()
It yields a "null" representation of a name within this naming context. |
PType |
getPType()
Retrieves the PType associated to the JORM class which is the type of the name managed by this naming context. |
PBinding |
lookup(PName pn)
It looks for a PBinding object with the given PName within a PBinder. |
java.lang.Object |
resolve(java.lang.Object conn,
PName pn)
It retrieves the information item associated to the given PName (if any exists). |
void |
setCodingType(short codingType)
|
void |
setNulOValue(java.lang.Object nullvalue)
|
void |
setNulValue(long nullvalue)
|
void |
setPClassMapping(PClassMapping pcm)
It set the PClassMapping which use this binder slave. |
void |
setPType(PType pt)
Assigns the PType associated to the JORM class which is the type of the name managed by this naming context. |
boolean |
supportCompositeField(java.lang.String fn,
PType ft)
In case of a naming context that supports composite names (i.e., names composed of several typed fields, whose type is limited to scalar ones), it tests if a particular field is defined by this composite name. |
boolean |
supportDynamicComposite()
Tests if this naming context supports comosite name through a dynamic approach, which means that encodingAbstract/decodingAbstract use getter objects that implement the PNameGetter interface. |
boolean |
supportStaticComposite()
Tests if this naming context supports comosite name through a static approach, which means that encodingAbstract/decodingAbstract use getter objects that implement specific NsFieldGetter interface generated for a particular field "Field" within a particular NameDef space "Ns". |
void |
unbind(PBindingCtrl pb)
It releases the link between the PBinding passed as parameter and its associated DSI represented by the PName referenced by this PBinding. |
void |
unexport(java.lang.Object conn,
PName pn)
It removes the PName and all the associated information within a naming context (i.e., the association between the PName and its information item). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected short codingType
protected java.lang.Object nullOValue
protected long nullValue
protected PType ptype
protected PClassMapping pcm
| Constructor Detail |
public BasidBinder()
public BasidBinder(PMapper m,
java.lang.String genname,
byte clact)
throws PException
public BasidBinder(short codingtype)
public BasidBinder(short codingtype,
java.lang.Object nullValue)
public BasidBinder(short codingtype,
long nullValue)
| Method Detail |
public short getCodingType()
public void setCodingType(short codingType)
public void setNulOValue(java.lang.Object nullvalue)
public void setNulValue(long nullvalue)
public boolean codingSupported(short codingtype)
PNameCodercodingSupported in interface PNameCoderorg.objectweb.jorm.naming.api.PNameCodercodingtype - One of the coding type defined by CTxxx constants
defined within this interface.
public PName decode(byte[] en)
throws PExceptionNaming
PNameCoderdecode in interface PNameCoderorg.objectweb.jorm.naming.api.PNameCoderconn - The connection that can be used to access the data store.en - The byte to be decoded.
public PName decodeAbstract(java.lang.Object en,
java.lang.Object context)
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PNameCoderdecodeAbstract in interface PNameCoderorg.objectweb.jorm.naming.api.PNameCodercontext - A context used to decode the related data.conn - The connection that can be used to access the data store.en - The Object to be decoded.
public PName decodeByte(byte en)
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PNameCoderdecodeByte in interface PNameCoderorg.objectweb.jorm.naming.api.PNameCoderconn - The connection that can be used to access the data store.en - The byte to be decoded.
public PName decodeObyte(java.lang.Byte en)
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PNameCoderdecodeObyte in interface PNameCoderorg.objectweb.jorm.naming.api.PNameCoderconn - The connection that can be used to access the data store.en - The Byte to be decoded.
public PName decodeChar(char en)
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PNameCoderdecodeChar in interface PNameCoderorg.objectweb.jorm.naming.api.PNameCoderconn - The connection that can be used to access the data store.en - The char to be decoded.
public PName decodeOchar(java.lang.Character en)
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PNameCoderdecodeOchar in interface PNameCoderorg.objectweb.jorm.naming.api.PNameCoderconn - The connection that can be used to access the data store.en - The Character to be decoded.
public PName decodeInt(int en)
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PNameCoderdecodeInt in interface PNameCoderorg.objectweb.jorm.naming.api.PNameCoderconn - The connection that can be used to access the data store.en - The int to be decoded.
public PName decodeOint(java.lang.Integer en)
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PNameCoderdecodeOint in interface PNameCoderorg.objectweb.jorm.naming.api.PNameCoderconn - The connection that can be used to access the data store.en - The Integer to be decoded.
public PName decodeLong(long en)
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PNameCoderdecodeLong in interface PNameCoderorg.objectweb.jorm.naming.api.PNameCoderconn - The connection that can be used to access the data store.en - The long to be decoded.
public PName decodeOlong(java.lang.Long en)
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PNameCoderdecodeOlong in interface PNameCoderorg.objectweb.jorm.naming.api.PNameCoderconn - The connection that can be used to access the data store.en - The Long to be decoded.
public PName decodeShort(short en)
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PNameCoderdecodeShort in interface PNameCoderorg.objectweb.jorm.naming.api.PNameCoderconn - The connection that can be used to access the data store.en - The short to be decoded.
public PName decodeOshort(java.lang.Short en)
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PNameCoderdecodeOshort in interface PNameCoderorg.objectweb.jorm.naming.api.PNameCoderconn - The connection that can be used to access the data store.en - The Short to be decoded.
public PName decodeString(java.lang.String en)
throws PExceptionNaming
PNameCoderdecodeString in interface PNameCoderorg.objectweb.jorm.naming.api.PNameCoderconn - The connection that can be used to access the data store.en - The String to be decoded.
public PName decodeDate(java.util.Date en)
throws PExceptionNaming
PNameCoderdecodeDate in interface PNameCoderorg.objectweb.jorm.naming.api.PNameCoderconn - The connection that can be used to access the data store.en - The Date to be decoded.
public byte[] encode(PName pn)
throws PExceptionNaming
PNameCoderencode in interface PNameCoderorg.objectweb.jorm.naming.api.PNameCoderconn - The connection that can be used to access the data store.pn - The PName to be encoded
public java.lang.Object encodeAbstract(PName pn)
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PNameCoderencodeAbstract in interface PNameCoderorg.objectweb.jorm.naming.api.PNameCoderconn - The connection that can be used to access the data store.pn - The PName to be encoded.
public byte encodeByte(PName pn)
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PNameCoderencodeByte in interface PNameCoderorg.objectweb.jorm.naming.api.PNameCoderconn - The connection that can be used to access the data store.pn - The PName to be encoded
public java.lang.Byte encodeObyte(PName pn)
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PNameCoderencodeObyte in interface PNameCoderorg.objectweb.jorm.naming.api.PNameCoderconn - The connection that can be used to access the data store.pn - The PName to be encoded
public char encodeChar(PName pn)
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PNameCoderencodeChar in interface PNameCoderorg.objectweb.jorm.naming.api.PNameCoderconn - The connection that can be used to access the data store.pn - The PName to be encoded
public java.lang.Character encodeOchar(PName pn)
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PNameCoderencodeOchar in interface PNameCoderorg.objectweb.jorm.naming.api.PNameCoderconn - The connection that can be used to access the data store.pn - The PName to be encoded
public int encodeInt(PName pn)
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PNameCoderencodeInt in interface PNameCoderorg.objectweb.jorm.naming.api.PNameCoderconn - The connection that can be used to access the data store.pn - The PName to be encoded
public java.lang.Integer encodeOint(PName pn)
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PNameCoderencodeOint in interface PNameCoderorg.objectweb.jorm.naming.api.PNameCoderconn - The connection that can be used to access the data store.pn - The PName to be encoded
public long encodeLong(PName pn)
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PNameCoderencodeLong in interface PNameCoderorg.objectweb.jorm.naming.api.PNameCoderconn - The connection that can be used to access the data store.pn - The PName to be encoded
public java.lang.Long encodeOlong(PName pn)
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PNameCoderencodeOlong in interface PNameCoderorg.objectweb.jorm.naming.api.PNameCoderconn - The connection that can be used to access the data store.pn - The PName to be encoded
public short encodeShort(PName pn)
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PNameCoderencodeShort in interface PNameCoderorg.objectweb.jorm.naming.api.PNameCoderconn - The connection that can be used to access the data store.pn - The PName to be encoded
public java.lang.Short encodeOshort(PName pn)
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PNameCoderencodeOshort in interface PNameCoderorg.objectweb.jorm.naming.api.PNameCoderconn - The connection that can be used to access the data store.pn - The PName to be encoded
public java.lang.String encodeString(PName pn)
throws PExceptionNaming
PNameCoderencodeString in interface PNameCoderorg.objectweb.jorm.naming.api.PNameCoderconn - The connection that can be used to access the data store.pn - The PName to be encoded
public java.util.Date encodeDate(PName pn)
throws PExceptionNaming
PNameCoderencodeDate in interface PNameCoderorg.objectweb.jorm.naming.api.PNameCoderconn - The connection that can be used to access the data store.pn - The PName to be encoded
public PName export(java.lang.Object conn,
java.lang.Object en)
throws PException
PNameManagerexport in interface PNameManagerorg.objectweb.jorm.naming.api.PNameManagerconn - The connection that can be used to access the data store.infoitem - The information item that must be accessible through a
PName within a naming context.PName associated to the given information
item.PExceptionNaming - Raised in case of problem within the
naming context.PExceptionIO - Raised in case of problem during the access of
the data store.
public PName export(java.lang.Object conn,
java.lang.Object en,
java.lang.Object hints)
throws PException
PNameManagerexport in interface PNameManagerorg.objectweb.jorm.naming.api.PNameManagerconn - The connection that can be used to access the data store.infoitem - The information item that must be accessible through a
PName within a naming context.hints - Any information relevant for name creation.PName associated to the given information
item.PExceptionNaming - Raised in case of problem within the
naming context.PExceptionIO - Raised in case of problem during the access of
the data store.public PName getNull()
PNameCodergetNull in interface PNameCoderorg.objectweb.jorm.naming.api.PNameCoderpublic PType getPType()
PNameManagergetPType in interface PNameManagerorg.objectweb.jorm.naming.api.PNameManagerpublic java.lang.String getClassName()
public java.lang.Object resolve(java.lang.Object conn,
PName pn)
throws PException
PNamingContextresolve in interface PNamingContextorg.objectweb.jorm.naming.api.PNamingContextconn - The connection that can be used to access the data store.pn - The PName to be looked up.PExceptionNaming - Raised in case of problem within the
naming context.PExceptionIO - Raised in case of problem during the access of
the data storepublic void setPType(PType pt)
PNameManagersetPType in interface PNameManagerorg.objectweb.jorm.naming.api.PNameManagerpt - The PType of the JORM class reference managed by this naming
context.public boolean supportDynamicComposite()
PNameCodersupportDynamicComposite in interface PNameCoderorg.objectweb.jorm.naming.api.PNameCoder
public boolean supportCompositeField(java.lang.String fn,
PType ft)
PNameCodersupportCompositeField in interface PNameCoderorg.objectweb.jorm.naming.api.PNameCoderpublic boolean supportStaticComposite()
PNameCodersupportStaticComposite in interface PNameCoderorg.objectweb.jorm.naming.api.PNameCoder
public void unexport(java.lang.Object conn,
PName pn)
throws PException
PNameManagerunexport in interface PNameManagerorg.objectweb.jorm.naming.api.PNameManagerconn - The connection that can be used to access the data store.pn - A PName valid in this naming context. In case of a PBinder,
export is done on a PBinding.PExceptionNaming - Raised in case of problem within the
naming context.PExceptionIO - Raised in case of problem during the access of
the data store
public PBinding lookup(PName pn)
throws PException
PBinderlookup in interface PBinderorg.objectweb.jorm.naming.api.PBinderpn - The PName to associate to the PBinding. This PName must be
valid within this binder just like with a naming context.PExceptionNaming - The given PName is not valid in this
PBinder or this PBinding cannot be managed
by this PBinder.
public void bind(PName pn,
PBindingCtrl pb)
throws PException
PBinderbind in interface PBinderorg.objectweb.jorm.naming.api.PBinderpn - The PName to associate to the PBinding. This PName must be
valid within this binder just like with a naming context.pb - The PBinding to bind with the given PName; this PBinding
must have been created or initialised by this PBinder.PExceptionNaming - The given PName is not valid in this
PBinder or this PBinding cannot be managed
by this PBinder.public PClassMapping getBinderClassMapping()
PBindergetBinderClassMapping in interface PBinderorg.objectweb.jorm.naming.api.PBinder
public void unbind(PBindingCtrl pb)
throws PException
PBinderunbind in interface PBinderorg.objectweb.jorm.naming.api.PBinderpb - The PBinding to unbind.PExceptionNaming - This PBinding cannot be managed by this
PBinder.public void setPClassMapping(PClassMapping pcm)
PBindersetPClassMapping in interface PBinderorg.objectweb.jorm.naming.api.PBinderpcm - The PClassMapping.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||