codingSupported
public boolean codingSupported(int codingtype)
It tests if a given coding type is supported for this PName.
codingtype
- One of the coding type defined by
PNamingContext.CTxxx constants defined within the
PNamingContext interface.
- It returns true if the coding type is supported for this PName.
encode
public byte[] encode()
throws PExceptionNaming
The encode method produces an encoded representation of this
PName within its naming context. The encoding format in the case of this
method is an array of bytes.
- The array of bytes corresponding to the encoded representation.
encodeAbstract
public Object encodeAbstract()
throws PExceptionNaming,
UnsupportedOperationException
The encodeAbstract method produces an encoded representation of
this PName. The encoding format is the case of this method is a Java
object of any complexity. Example of such object is a getter interface
giving access of the fields of a composite relational primary key.
- The Object corresponding to the encoded representation.
encodeBigDecimal
public BigDecimal encodeBigDecimal()
throws PExceptionNaming
The encodeBigDecimal method produces an encoded representation of this
PName within its naming context. The encoding format in the case of this
method is a BigDecimal.
- The BigDecimal corresponding to the encoded representation.
encodeBigInteger
public BigInteger encodeBigInteger()
throws PExceptionNaming
The encodeBigInteger method produces an encoded representation of this
PName within its naming context. The encoding format in the case of this
method is a BigInteger.
- The BigInteger corresponding to the encoded representation.
encodeByte
public byte encodeByte()
throws PExceptionNaming,
UnsupportedOperationException
The encodeByte method produces an encoded representation of this
PName within its naming context. The encoding format in the case of this
method is a byte.
- The byte corresponding to the encoded representation.
encodeChar
public char encodeChar()
throws PExceptionNaming,
UnsupportedOperationException
The encodeChar method produces an encoded representation of this
PName within its naming context. The encoding format in the case of this
method is a char.
- The char corresponding to the encoded representation.
encodeCharArray
public char[] encodeCharArray()
throws PExceptionNaming
The encodeCharArray method produces an encoded representation of this
PName within its naming context. The encoding format in the case of this
method is a char[].
- The char[] corresponding to the encoded representation.
encodeDate
public Date encodeDate()
throws PExceptionNaming
The encodeDate method produces an encoded representation of this
PName within its naming context. The encoding format in the case of this
method is a Date.
- The Date corresponding to the encoded representation.
encodeInt
public int encodeInt()
throws PExceptionNaming,
UnsupportedOperationException
The encodeInt method produces an encoded representation of this
PName within its naming context. The encoding format in the case of this
method is a int.
- The int corresponding to the encoded representation.
encodeLong
public long encodeLong()
throws PExceptionNaming,
UnsupportedOperationException
The encodeLong method produces an encoded representation of this
PName within its naming context. The encoding format in the case of this
method is a long.
- The long corresponding to the encoded representation.
encodeObyte
public Byte encodeObyte()
throws PExceptionNaming,
UnsupportedOperationException
The encodeObyte method produces an encoded representation of this
PName within its naming context. The encoding format in the case of this
method is a Byte.
- The Byte corresponding to the encoded representation.
encodeOchar
public Character encodeOchar()
throws PExceptionNaming,
UnsupportedOperationException
The encodeOchar method produces an encoded representation of this
PName within its naming context. The encoding format in the case of this
method is a Character.
- The Character corresponding to the encoded representation.
encodeOint
public Integer encodeOint()
throws PExceptionNaming,
UnsupportedOperationException
The encodeOint method produces an encoded representation of this
PName within its naming context. The encoding format in the case of this
method is a Integer.
- The Integer corresponding to the encoded representation.
encodeOlong
public Long encodeOlong()
throws PExceptionNaming,
UnsupportedOperationException
The encodeOlong method produces an encoded representation of this
PName within its naming context. The encoding format in the case of this
method is a Long.
- The Long corresponding to the encoded representation.
encodeOshort
public Short encodeOshort()
throws PExceptionNaming,
UnsupportedOperationException
The encodeOshort method produces an encoded representation of this
PName within its naming context. The encoding format in the case of this
method is a Short.
- The Short corresponding to the encoded representation.
encodeShort
public short encodeShort()
throws PExceptionNaming,
UnsupportedOperationException
The encodeShort method produces an encoded representation of this
PName within its naming context. The encoding format in the case of this
method is a short.
- The short corresponding to the encoded representation.
encodeString
public String encodeString()
throws PExceptionNaming
The encodeString method produces an encoded representation of this
PName within its naming context. The encoding format in the case of this
method is a String.
- The String corresponding to the encoded representation.
export
public PName export(Object conn,
PNamingContext pnc)
throws PException
It associates a PName to an information item within a naming context.
conn
- The connection that can be used to access the data store.pnc
- Thhe naming context which must provide a PName for
this PName.
- The new PName associated to this PName.
export
public PName export(Object conn,
PNamingContext pnc,
Object hints)
throws PException
It associates a PName to an information item within a naming context.
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.
- The new PName associated to this PName.
getPNameManager
public PNameManager getPNameManager()
It retrieves the name manager associated to this PName.
- The naming context which provide this pname
getPType
public PType getPType()
It retrieves the PType associated to this PName if any exists. If none
is associated, it returns null.
- The PType associated to this PName.
isNull
public boolean isNull()
It tells if this name corresponds to "null" representation within a
its naming context.
- true if it represents a "null" name.
resolve
public PName resolve(Object conn)
throws UnsupportedOperationException,
PException
It retrieves the information item associated to the given PName (if any
exists).
conn
- The connection that can be used to access the data store.
- The information item associated with the given PName within
a naming context.
unexport
public void unexport(Object conn)
throws PException
It removes this PName and all the associated information within a naming
context (i.e., the association between the PName and its information
item).
conn
- The connection that can be used to access the data store.
unexport
public void unexport(Object conn,
Object hints)
throws PException
It removes this PName and all the associated information within a naming
context (i.e., the association between the PName and its information
item).
conn
- The connection that can be used to access the data store.hints
- Any information relevant for name removing.