|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.objectweb.jorm.naming.lib.BasicPName
This basic implementation of a PName delegates all calls to its methods to the PNamingContext it references. The only call wich is not delegated is to isNull and getPNameManager.
| Field Summary | |
protected PNameManager |
pnc
The PNamingContext that manages this PName |
| Constructor Summary | |
BasicPName()
|
|
| Method Summary | |
boolean |
codingSupported(short codingtype)
It tests if a given coding type is supported for this PName. |
byte[] |
encode()
The encode method produces an encoded representation of this PName within its naming context. |
java.lang.Object |
encodeAbstract()
The encodeAbstract method produces an encoded representation of this PName. |
byte |
encodeByte()
The encodeByte method produces an encoded representation of this PName within its naming context. |
char |
encodeChar()
The encodeChar method produces an encoded representation of this PName within its naming context. |
java.util.Date |
encodeDate()
The encodeDate method produces an encoded representation of this PName within its naming context. |
int |
encodeInt()
The encodeInt method produces an encoded representation of this PName within its naming context. |
long |
encodeLong()
The encodeLong method produces an encoded representation of this PName within its naming context. |
java.lang.Byte |
encodeObyte()
The encodeObyte method produces an encoded representation of this PName within its naming context. |
java.lang.Character |
encodeOchar()
The encodeOchar method produces an encoded representation of this PName within its naming context. |
java.lang.Integer |
encodeOint()
The encodeOint method produces an encoded representation of this PName within its naming context. |
java.lang.Long |
encodeOlong()
The encodeOlong method produces an encoded representation of this PName within its naming context. |
java.lang.Short |
encodeOshort()
The encodeOshort method produces an encoded representation of this PName within its naming context. |
short |
encodeShort()
The encodeShort method produces an encoded representation of this PName within its naming context. |
java.lang.String |
encodeString()
The encodeString method produces an encoded representation of this PName within its naming context. |
PName |
export(java.lang.Object conn,
PNamingContext pnc)
It associates a PName to an information item within a naming context. |
PName |
export(java.lang.Object conn,
PNamingContext pnc,
java.lang.Object hints)
It associates a PName to an information item within a naming context. |
PNameManager |
getPNameManager()
It retrieves the name manager associated to this PName. |
PType |
getPType()
It retrieves the PType associated to this PName if any exists. |
java.lang.Object |
resolve(java.lang.Object conn)
It retrieves the information item associated to the given PName (if any exists). |
void |
setPNamingContext(PNamingContext pnc)
|
void |
unexport(java.lang.Object conn)
It removes this 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 |
| Methods inherited from interface org.objectweb.jorm.naming.api.PName |
isNull |
| Field Detail |
protected PNameManager pnc
| Constructor Detail |
public BasicPName()
| Method Detail |
public void setPNamingContext(PNamingContext pnc)
public boolean codingSupported(short codingtype)
PNamecodingSupported in interface PNameorg.objectweb.jorm.naming.api.PNamecodingtype - One of the coding type defined by
PNamingContext.CTxxx constants defined within the
PNamingContext interface.
public byte[] encode()
throws PExceptionNaming
PNameencode in interface PNameorg.objectweb.jorm.naming.api.PNameconn - The connection which can be used to access the data store.
public java.lang.Object encodeAbstract()
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PNameencodeAbstract in interface PNameorg.objectweb.jorm.naming.api.PNameconn - The connection which can be used to access the data store.
public byte encodeByte()
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PNameencodeByte in interface PNameorg.objectweb.jorm.naming.api.PNameconn - The connection which can be used to access the data store.
public java.lang.Byte encodeObyte()
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PNameencodeObyte in interface PNameorg.objectweb.jorm.naming.api.PNameconn - The connection which can be used to access the data store.
public char encodeChar()
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PNameencodeChar in interface PNameorg.objectweb.jorm.naming.api.PNameconn - The connection which can be used to access the data store.
public java.lang.Character encodeOchar()
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PNameencodeOchar in interface PNameorg.objectweb.jorm.naming.api.PNameconn - The connection which can be used to access the data store.
public int encodeInt()
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PNameencodeInt in interface PNameorg.objectweb.jorm.naming.api.PNameconn - The connection which can be used to access the data store.
public java.lang.Integer encodeOint()
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PNameencodeOint in interface PNameorg.objectweb.jorm.naming.api.PNameconn - The connection which can be used to access the data store.
public long encodeLong()
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PNameencodeLong in interface PNameorg.objectweb.jorm.naming.api.PNameconn - The connection which can be used to access the data store.
public java.lang.Long encodeOlong()
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PNameencodeOlong in interface PNameorg.objectweb.jorm.naming.api.PNameconn - The connection which can be used to access the data store.
public short encodeShort()
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PNameencodeShort in interface PNameorg.objectweb.jorm.naming.api.PNameconn - The connection which can be used to access the data store.
public java.lang.Short encodeOshort()
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PNameencodeOshort in interface PNameorg.objectweb.jorm.naming.api.PNameconn - The connection which can be used to access the data store.
public java.lang.String encodeString()
throws PExceptionNaming
PNameencodeString in interface PNameorg.objectweb.jorm.naming.api.PNameconn - The connection which can be used to access the data store.
public java.util.Date encodeDate()
throws PExceptionNaming
PNameencodeDate in interface PNameorg.objectweb.jorm.naming.api.PNameconn - The connection which can be used to access the data store.
public PName export(java.lang.Object conn,
PNamingContext pnc)
throws PException
PNameexport in interface PNameorg.objectweb.jorm.naming.api.PNameconn - The connection that can be used to access the data store.pnc - Thhe naming context which must provide a PName for
this PName.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,
PNamingContext pnc,
java.lang.Object hints)
throws PException
PNameexport in interface PNameorg.objectweb.jorm.naming.api.PNameconn - The connection that can be used to access the data store.pnc - Thhe naming context which must provide a PName for
this PName.hints - Any information relevant for name creation.PExceptionNaming - Raised in case of problem within the
naming context.PExceptionIO - Raised in case of problem during the access of
the data storepublic PNameManager getPNameManager()
PNamegetPNameManager in interface PNameorg.objectweb.jorm.naming.api.PNamepublic PType getPType()
PNamegetPType in interface PNameorg.objectweb.jorm.naming.api.PName
public java.lang.Object resolve(java.lang.Object conn)
throws java.lang.UnsupportedOperationException,
PException
PNameresolve in interface PNameorg.objectweb.jorm.naming.api.PNameconn - 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 store
public void unexport(java.lang.Object conn)
throws PException
PNameunexport in interface PNameorg.objectweb.jorm.naming.api.PNameconn - The connection that can be used to access the data store.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 | |||||||||