|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | 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 getPNamingContext.
| 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. |
char[] |
encodeCharArray()
The encodeCharArray 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. |
PName |
resolve(java.lang.Object conn)
It retrieves the information item associated to the given PName (if any exists). |
void |
setPNamingContext(PNamingContext pnc)
|
java.lang.String |
toString()
|
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). |
void |
unexport(java.lang.Object conn,
java.lang.Object hints)
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, wait, wait, wait |
| Methods inherited from interface org.objectweb.jorm.naming.api.PName |
isNull |
| Field Detail |
protected transient PNameManager pnc
| Constructor Detail |
public BasicPName()
| Method Detail |
public java.lang.String toString()
toString in class java.lang.Objectpublic void setPNamingContext(PNamingContext pnc)
public boolean codingSupported(short codingtype)
PName
codingSupported in interface PNamecodingtype - One of the coding type defined by
PNamingContext.CTxxx constants defined within the
PNamingContext interface.
public byte[] encode()
throws PExceptionNaming
PName
encode in interface PNamePExceptionNaming
public java.lang.Object encodeAbstract()
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PName
encodeAbstract in interface PNamePExceptionNaming
java.lang.UnsupportedOperationException
public byte encodeByte()
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PName
encodeByte in interface PNamePExceptionNaming
java.lang.UnsupportedOperationException
public java.lang.Byte encodeObyte()
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PName
encodeObyte in interface PNamePExceptionNaming
java.lang.UnsupportedOperationException
public char encodeChar()
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PName
encodeChar in interface PNamePExceptionNaming
java.lang.UnsupportedOperationException
public java.lang.Character encodeOchar()
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PName
encodeOchar in interface PNamePExceptionNaming
java.lang.UnsupportedOperationException
public int encodeInt()
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PName
encodeInt in interface PNamePExceptionNaming
java.lang.UnsupportedOperationException
public java.lang.Integer encodeOint()
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PName
encodeOint in interface PNamePExceptionNaming
java.lang.UnsupportedOperationException
public long encodeLong()
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PName
encodeLong in interface PNamePExceptionNaming
java.lang.UnsupportedOperationException
public java.lang.Long encodeOlong()
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PName
encodeOlong in interface PNamePExceptionNaming
java.lang.UnsupportedOperationException
public short encodeShort()
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PName
encodeShort in interface PNamePExceptionNaming
java.lang.UnsupportedOperationException
public java.lang.Short encodeOshort()
throws PExceptionNaming,
java.lang.UnsupportedOperationException
PName
encodeOshort in interface PNamePExceptionNaming
java.lang.UnsupportedOperationException
public java.lang.String encodeString()
throws PExceptionNaming
PName
encodeString in interface PNamePExceptionNaming
public char[] encodeCharArray()
throws PExceptionNaming
PName
encodeCharArray in interface PNamePExceptionNaming
public java.util.Date encodeDate()
throws PExceptionNaming
PName
encodeDate in interface PNamePExceptionNaming
public PName export(java.lang.Object conn,
PNamingContext pnc)
throws PException
PName
export in interface PNameconn - The connection that can be used to access the data store.pnc - Thhe naming context which must provide a PName for
this PName.
PException
public PName export(java.lang.Object conn,
PNamingContext pnc,
java.lang.Object hints)
throws PException
PName
export in interface 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.
PExceptionpublic PNameManager getPNameManager()
PName
getPNameManager in interface PNamepublic PType getPType()
PName
getPType in interface PName
public PName resolve(java.lang.Object conn)
throws java.lang.UnsupportedOperationException,
PException
PName
resolve in interface PNameconn - The connection that can be used to access the data store.
java.lang.UnsupportedOperationException
PException
public void unexport(java.lang.Object conn)
throws PException
PName
unexport in interface PNameconn - The connection that can be used to access the data store.
PException
public void unexport(java.lang.Object conn,
java.lang.Object hints)
throws PException
PName
unexport in interface PNameconn - The connection that can be used to access the data store.hints - Any information relevant for name removing.
PException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||