|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.objectweb.jorm.naming.lib.BasicPNamingContext
|
+--org.objectweb.jorm.facility.naming.polymorphid.PolymorphRefNC
| Fields inherited from class org.objectweb.jorm.naming.lib.BasicPNamingContext |
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 | |
PolymorphRefNC()
|
|
| Method Summary | |
boolean |
codingSupported(short codingtype)
It tests if a given coding type is supported by this naming context. |
PName |
decodeAbstract(java.lang.Object en,
java.lang.Object context)
The decodeAbstract 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. |
java.lang.Object |
encodeAbstract(PName pn)
The encodeAbstract 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 infoitem)
It associates a PName to an information item within a naming context. |
PName |
export(java.lang.Object conn,
java.lang.Object infoitem,
java.lang.Object hints)
It associates a PName to an information item within a naming context. |
PName |
getNull()
It yields a "null" representation of a name within this naming context. |
java.lang.Object |
resolve(java.lang.Object conn,
PName pn)
It retrieves the information item associated to the given PName (if any exists). |
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 |
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 org.objectweb.jorm.naming.lib.BasicPNamingContext |
decode, decodeByte, decodeChar, decodeDate, decodeInt, decodeLong, decodeObyte, decodeOchar, decodeOint, decodeOlong, decodeOshort, decodeShort, encode, encodeByte, encodeChar, encodeDate, encodeInt, encodeLong, encodeObyte, encodeOchar, encodeOint, encodeOlong, encodeOshort, encodeShort, getPType |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.objectweb.jorm.naming.api.PNameManager |
getPType |
| Methods inherited from interface org.objectweb.jorm.naming.api.PNameCoder |
decode, decodeByte, decodeChar, decodeDate, decodeInt, decodeLong, decodeObyte, decodeOchar, decodeOint, decodeOlong, decodeOshort, decodeShort, encode, encodeByte, encodeChar, encodeDate, encodeInt, encodeLong, encodeObyte, encodeOchar, encodeOint, encodeOlong, encodeOshort, encodeShort |
| Constructor Detail |
public PolymorphRefNC()
| Method Detail |
public boolean codingSupported(short codingtype)
PNameCodercodingSupported in interface PNameCodercodingSupported in class BasicPNamingContextorg.objectweb.jorm.naming.api.PNameCodercodingtype - One of the coding type defined by CTxxx constants
defined within this interface.
public PName decodeAbstract(java.lang.Object en,
java.lang.Object context)
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PNameCoderdecodeAbstract in interface PNameCoderdecodeAbstract in class BasicPNamingContextorg.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 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 java.lang.Object encodeAbstract(PName pn)
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PNameCoderencodeAbstract in interface PNameCoderencodeAbstract in class BasicPNamingContextorg.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 PName export(java.lang.Object conn,
java.lang.Object infoitem)
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 infoitem,
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 void setPType(PType pt)
PNameManagersetPType in interface PNameManagersetPType in class BasicPNamingContextorg.objectweb.jorm.naming.api.PNameManagerpt - The PType of the JORM class reference managed by this naming
context.
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 boolean supportDynamicComposite()
PNameCodersupportDynamicComposite in interface PNameCodersupportDynamicComposite in class BasicPNamingContextorg.objectweb.jorm.naming.api.PNameCoder
public boolean supportCompositeField(java.lang.String fn,
PType ft)
PNameCodersupportCompositeField in interface PNameCodersupportCompositeField in class BasicPNamingContextorg.objectweb.jorm.naming.api.PNameCoderpublic boolean supportStaticComposite()
PNameCodersupportStaticComposite in interface PNameCodersupportStaticComposite in class BasicPNamingContextorg.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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||