|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jorm.naming.lib.BasicPName
This basic implementation of a PName delegates all calls to its methods to the PNamingContext it references. The only calls that are not delegated are calls to isNull, getPNamingContext.
Field Summary | |
protected PNameManager |
pnc
The PNamingContext that manages this PName |
Constructor Summary | |
BasicPName()
|
Method Summary | |
boolean |
codingSupported(int 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. |
java.math.BigDecimal |
encodeBigDecimal()
The encodeBigDecimal method produces an encoded representation of this PName within its naming context. |
java.math.BigInteger |
encodeBigInteger()
The encodeBigInteger method produces an encoded representation of this PName within its naming context. |
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()
public void setPNamingContext(PNamingContext pnc)
public boolean codingSupported(int codingtype)
PName
codingSupported
in interface PName
codingtype
- One of the coding type defined by
PNamingContext.CTxxx constants defined within the
PNamingContext interface.
public byte[] encode() throws PExceptionNaming
PName
encode
in interface PName
PExceptionNaming
public java.lang.Object encodeAbstract() throws PExceptionNaming, java.lang.UnsupportedOperationException
PName
encodeAbstract
in interface PName
PExceptionNaming
java.lang.UnsupportedOperationException
public byte encodeByte() throws PExceptionNaming, java.lang.UnsupportedOperationException
PName
encodeByte
in interface PName
PExceptionNaming
java.lang.UnsupportedOperationException
public java.lang.Byte encodeObyte() throws PExceptionNaming, java.lang.UnsupportedOperationException
PName
encodeObyte
in interface PName
PExceptionNaming
java.lang.UnsupportedOperationException
public char encodeChar() throws PExceptionNaming, java.lang.UnsupportedOperationException
PName
encodeChar
in interface PName
PExceptionNaming
java.lang.UnsupportedOperationException
public java.lang.Character encodeOchar() throws PExceptionNaming, java.lang.UnsupportedOperationException
PName
encodeOchar
in interface PName
PExceptionNaming
java.lang.UnsupportedOperationException
public int encodeInt() throws PExceptionNaming, java.lang.UnsupportedOperationException
PName
encodeInt
in interface PName
PExceptionNaming
java.lang.UnsupportedOperationException
public java.lang.Integer encodeOint() throws PExceptionNaming, java.lang.UnsupportedOperationException
PName
encodeOint
in interface PName
PExceptionNaming
java.lang.UnsupportedOperationException
public long encodeLong() throws PExceptionNaming, java.lang.UnsupportedOperationException
PName
encodeLong
in interface PName
PExceptionNaming
java.lang.UnsupportedOperationException
public java.lang.Long encodeOlong() throws PExceptionNaming, java.lang.UnsupportedOperationException
PName
encodeOlong
in interface PName
PExceptionNaming
java.lang.UnsupportedOperationException
public short encodeShort() throws PExceptionNaming, java.lang.UnsupportedOperationException
PName
encodeShort
in interface PName
PExceptionNaming
java.lang.UnsupportedOperationException
public java.lang.Short encodeOshort() throws PExceptionNaming, java.lang.UnsupportedOperationException
PName
encodeOshort
in interface PName
PExceptionNaming
java.lang.UnsupportedOperationException
public java.lang.String encodeString() throws PExceptionNaming
PName
encodeString
in interface PName
PExceptionNaming
public char[] encodeCharArray() throws PExceptionNaming
PName
encodeCharArray
in interface PName
PExceptionNaming
public java.util.Date encodeDate() throws PExceptionNaming
PName
encodeDate
in interface PName
PExceptionNaming
public java.math.BigInteger encodeBigInteger() throws PExceptionNaming
PName
encodeBigInteger
in interface PName
PExceptionNaming
public java.math.BigDecimal encodeBigDecimal() throws PExceptionNaming
PName
encodeBigDecimal
in interface PName
PExceptionNaming
public PName export(java.lang.Object conn, PNamingContext pnc) throws PException
PName
export
in interface PName
conn
- 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 PName
conn
- 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.
PException
public PNameManager getPNameManager()
PName
getPNameManager
in interface PName
public PType getPType()
PName
getPType
in interface PName
public PName resolve(java.lang.Object conn) throws java.lang.UnsupportedOperationException, PException
PName
resolve
in interface PName
conn
- 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 PName
conn
- 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 PName
conn
- 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 |