|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The PName interface defines the behaviour of a persistent name as it is managed by its associated naming context. Indeed, such a behaviour is supported partly within the name implementation, and partly within its naming context.
| 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. |
boolean |
isNull()
It tells if this name corresponds to "null" representation within a its naming context. |
java.lang.Object |
resolve(java.lang.Object conn)
It retrieves the information item associated to the given PName (if any exists). |
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). |
| Method Detail |
public boolean codingSupported(short codingtype)
codingtype - One of the coding type defined by
PNamingContext.CTxxx constants defined within the
PNamingContext interface.
public byte[] encode()
throws PExceptionNaming
conn - The connection which can be used to access the data store.
public java.lang.Object encodeAbstract()
throws PExceptionNaming,
java.lang.UnsupportedOperationException
conn - The connection which can be used to access the data store.
public byte encodeByte()
throws PExceptionNaming,
java.lang.UnsupportedOperationException
conn - The connection which can be used to access the data store.
public java.lang.Byte encodeObyte()
throws PExceptionNaming,
java.lang.UnsupportedOperationException
conn - The connection which can be used to access the data store.
public char encodeChar()
throws PExceptionNaming,
java.lang.UnsupportedOperationException
conn - The connection which can be used to access the data store.
public java.lang.Character encodeOchar()
throws PExceptionNaming,
java.lang.UnsupportedOperationException
conn - The connection which can be used to access the data store.
public int encodeInt()
throws PExceptionNaming,
java.lang.UnsupportedOperationException
conn - The connection which can be used to access the data store.
public java.lang.Integer encodeOint()
throws PExceptionNaming,
java.lang.UnsupportedOperationException
conn - The connection which can be used to access the data store.
public long encodeLong()
throws PExceptionNaming,
java.lang.UnsupportedOperationException
conn - The connection which can be used to access the data store.
public java.lang.Long encodeOlong()
throws PExceptionNaming,
java.lang.UnsupportedOperationException
conn - The connection which can be used to access the data store.
public short encodeShort()
throws PExceptionNaming,
java.lang.UnsupportedOperationException
conn - The connection which can be used to access the data store.
public java.lang.Short encodeOshort()
throws PExceptionNaming,
java.lang.UnsupportedOperationException
conn - The connection which can be used to access the data store.
public java.lang.String encodeString()
throws PExceptionNaming
conn - The connection which can be used to access the data store.
public java.util.Date encodeDate()
throws PExceptionNaming
conn - The connection which can be used to access the data store.
public PName export(java.lang.Object conn,
PNamingContext pnc)
throws PException
conn - 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
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.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()
public PType getPType()
public boolean isNull()
public java.lang.Object resolve(java.lang.Object conn)
throws java.lang.UnsupportedOperationException,
PException
conn - 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
conn - 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 | |||||||||