org.objectweb.jorm.facility.naming.rdbsequence
Class RdbSequencePName

java.lang.Object
  extended byorg.objectweb.jorm.naming.lib.BasicPName
      extended byorg.objectweb.jorm.naming.lib.BasicPolymorphicPName
          extended byorg.objectweb.jorm.facility.naming.rdbsequence.RdbSequencePName
All Implemented Interfaces:
java.lang.Cloneable, PName, PNameGetter, PolymorphicPName, java.io.Serializable

public class RdbSequencePName
extends BasicPolymorphicPName
implements PNameGetter

Author:
S.Chassande-Barrioz
See Also:
Serialized Form

Field Summary
static java.lang.Long NULL_VALUE
           
 
Fields inherited from class org.objectweb.jorm.naming.lib.BasicPolymorphicPName
polymorphic
 
Fields inherited from class org.objectweb.jorm.naming.lib.BasicPName
pnc
 
Constructor Summary
RdbSequencePName(PNameManager pnm, long value)
           
RdbSequencePName(PNameManager pnm, java.lang.Long value)
           
RdbSequencePName(PNameManager pnm, java.lang.Object hints)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 boolean isNull()
          It tells if this name corresponds to "null" representation within a its naming context.
 java.math.BigDecimal pngetBigDecimalField(java.lang.String fn, java.lang.Object ctxt)
          It retrieves the value of a BigDecimal field.
 java.math.BigInteger pngetBigIntegerField(java.lang.String fn, java.lang.Object ctxt)
          It retrieves the value of a BigInteger field.
 byte[] pngetByteArrayField(java.lang.String fn, java.lang.Object ctxt)
          It retrieves the value of a byte[] field.
 byte pngetByteField(java.lang.String fn, java.lang.Object ctxt)
          It retrieves the value of a byte field.
 char[] pngetCharArrayField(java.lang.String fn, java.lang.Object ctxt)
          It retrieves the value of a char[] field.
 char pngetCharField(java.lang.String fn, java.lang.Object ctxt)
          It retrieves the value of a char field.
 java.util.Date pngetDateField(java.lang.String fn, java.lang.Object ctxt)
          It retrieves the value of a date field.
 int pngetIntField(java.lang.String fn, java.lang.Object ctxt)
          It retrieves the value of an int field.
 long pngetLongField(java.lang.String fn, java.lang.Object ctxt)
          It retrieves the value of a long field.
 java.lang.Byte pngetObyteField(java.lang.String fn, java.lang.Object ctxt)
          It retrieves the value of a Byte field.
 java.lang.Character pngetOcharField(java.lang.String fn, java.lang.Object ctxt)
          It retrieves the value of a Character field.
 java.lang.Integer pngetOintField(java.lang.String fn, java.lang.Object ctxt)
          It retrieves the value of an Integer field.
 java.lang.Long pngetOlongField(java.lang.String fn, java.lang.Object ctxt)
          It retrieves the value of a Long field.
 java.lang.Short pngetOshortField(java.lang.String fn, java.lang.Object ctxt)
          It retrieves the value of a Short field.
 short pngetShortField(java.lang.String fn, java.lang.Object ctxt)
          It retrieves the value of a short field.
 java.lang.String pngetStringField(java.lang.String fn, java.lang.Object ctxt)
          It retrieves the value of a string field.
 java.lang.String toString()
           
 
Methods inherited from class org.objectweb.jorm.naming.lib.BasicPolymorphicPName
isPolymorphic, setPNameManager, setPolymorphic
 
Methods inherited from class org.objectweb.jorm.naming.lib.BasicPName
codingSupported, encode, encodeAbstract, encodeBigDecimal, encodeBigInteger, encodeByte, encodeChar, encodeCharArray, encodeDate, encodeInt, encodeLong, encodeObyte, encodeOchar, encodeOint, encodeOlong, encodeOshort, encodeShort, encodeString, export, export, getPNameManager, getPType, resolve, setPNamingContext, unexport, unexport
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.objectweb.jorm.naming.api.PName
codingSupported, encode, encodeAbstract, encodeBigDecimal, encodeBigInteger, encodeByte, encodeChar, encodeCharArray, encodeDate, encodeInt, encodeLong, encodeObyte, encodeOchar, encodeOint, encodeOlong, encodeOshort, encodeShort, encodeString, export, export, getPNameManager, getPType, resolve, unexport, unexport
 

Field Detail

NULL_VALUE

public static final java.lang.Long NULL_VALUE
Constructor Detail

RdbSequencePName

public RdbSequencePName(PNameManager pnm,
                        long value)

RdbSequencePName

public RdbSequencePName(PNameManager pnm,
                        java.lang.Long value)

RdbSequencePName

public RdbSequencePName(PNameManager pnm,
                        java.lang.Object hints)
                 throws PExceptionNaming
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class BasicPName

equals

public boolean equals(java.lang.Object obj)

hashCode

public int hashCode()

isNull

public boolean isNull()
Description copied from interface: PName
It tells if this name corresponds to "null" representation within a its naming context.

Specified by:
isNull in interface PName
Returns:
true if it represents a "null" name.

pngetByteField

public byte pngetByteField(java.lang.String fn,
                           java.lang.Object ctxt)
                    throws PException
Description copied from interface: PNameGetter
It retrieves the value of a byte field.

Specified by:
pngetByteField in interface PNameGetter
Parameters:
fn - A String containing the name of the field.
ctxt - A context used by PNameGetter to extract the related data.
Returns:
The byte value of the field as stored within the composite name.
Throws:
PException

pngetObyteField

public java.lang.Byte pngetObyteField(java.lang.String fn,
                                      java.lang.Object ctxt)
                               throws PException
Description copied from interface: PNameGetter
It retrieves the value of a Byte field.

Specified by:
pngetObyteField in interface PNameGetter
Parameters:
fn - A String containing the name of the field.
ctxt - A context used by PNameGetter to extract the related data.
Returns:
The Byte value of the field as stored within the composite name.
Throws:
PException

pngetCharField

public char pngetCharField(java.lang.String fn,
                           java.lang.Object ctxt)
                    throws PException
Description copied from interface: PNameGetter
It retrieves the value of a char field.

Specified by:
pngetCharField in interface PNameGetter
Parameters:
fn - A String containing the name of the field.
ctxt - A context used by PNameGetter to extract the related data.
Returns:
The char value of the field as stored within the composite name.
Throws:
PException

pngetOcharField

public java.lang.Character pngetOcharField(java.lang.String fn,
                                           java.lang.Object ctxt)
                                    throws PException
Description copied from interface: PNameGetter
It retrieves the value of a Character field.

Specified by:
pngetOcharField in interface PNameGetter
Parameters:
fn - A String containing the name of the field.
ctxt - A context used by PNameGetter to extract the related data.
Returns:
The Character value of the field as stored within the composite name.
Throws:
PException

pngetShortField

public short pngetShortField(java.lang.String fn,
                             java.lang.Object ctxt)
                      throws PException
Description copied from interface: PNameGetter
It retrieves the value of a short field.

Specified by:
pngetShortField in interface PNameGetter
Parameters:
fn - A String containing the name of the field.
ctxt - A context used by PNameGetter to extract the related data. In in the case of RDB, it can be the result set.
Returns:
The short value of the field as stored within the composite name.
Throws:
PException

pngetOshortField

public java.lang.Short pngetOshortField(java.lang.String fn,
                                        java.lang.Object ctxt)
                                 throws PException
Description copied from interface: PNameGetter
It retrieves the value of a Short field.

Specified by:
pngetOshortField in interface PNameGetter
Parameters:
fn - A String containing the name of the field.
ctxt - A context used by PNameGetter to extract the related data.
Returns:
The Short value of the field as stored within the composite name.
Throws:
PException

pngetIntField

public int pngetIntField(java.lang.String fn,
                         java.lang.Object ctxt)
                  throws PException
Description copied from interface: PNameGetter
It retrieves the value of an int field.

Specified by:
pngetIntField in interface PNameGetter
Parameters:
fn - A String containing the name of the field.
ctxt - A context used by PNameGetter to extract the related data.
Returns:
The int value of the field as stored within the composite name.
Throws:
PException

pngetOintField

public java.lang.Integer pngetOintField(java.lang.String fn,
                                        java.lang.Object ctxt)
                                 throws PException
Description copied from interface: PNameGetter
It retrieves the value of an Integer field.

Specified by:
pngetOintField in interface PNameGetter
Parameters:
fn - A String containing the name of the field.
ctxt - A context used by PNameGetter to extract the related data.
Returns:
The Integer value of the field as stored within the composite name.
Throws:
PException

pngetLongField

public long pngetLongField(java.lang.String fn,
                           java.lang.Object ctxt)
                    throws PException
Description copied from interface: PNameGetter
It retrieves the value of a long field.

Specified by:
pngetLongField in interface PNameGetter
Parameters:
ctxt - A context used by PNameGetter to extract the related data.
fn - A String containing the name of the field.
Returns:
The long value of the field as stored within the composite name.
Throws:
PException

pngetOlongField

public java.lang.Long pngetOlongField(java.lang.String fn,
                                      java.lang.Object ctxt)
                               throws PException
Description copied from interface: PNameGetter
It retrieves the value of a Long field.

Specified by:
pngetOlongField in interface PNameGetter
Parameters:
fn - A String containing the name of the field.
ctxt - A context used by PNameGetter to extract the related data.
Returns:
The Long value of the field as stored within the composite name.
Throws:
PException

pngetStringField

public java.lang.String pngetStringField(java.lang.String fn,
                                         java.lang.Object ctxt)
                                  throws PException
Description copied from interface: PNameGetter
It retrieves the value of a string field.

Specified by:
pngetStringField in interface PNameGetter
Parameters:
ctxt - A context used by PNameGetter to extract the related data.
fn - A String containing the name of the field.
Returns:
The java.lang.String value of the field as stored within the composite name.
Throws:
PException

pngetByteArrayField

public byte[] pngetByteArrayField(java.lang.String fn,
                                  java.lang.Object ctxt)
                           throws PException
Description copied from interface: PNameGetter
It retrieves the value of a byte[] field.

Specified by:
pngetByteArrayField in interface PNameGetter
Parameters:
ctxt - A context used by PNameGetter to extract the related data.
fn - A String containing the name of the field.
Returns:
The byte[] value of the field as stored within the composite name.
Throws:
PException

pngetCharArrayField

public char[] pngetCharArrayField(java.lang.String fn,
                                  java.lang.Object ctxt)
                           throws PException
Description copied from interface: PNameGetter
It retrieves the value of a char[] field.

Specified by:
pngetCharArrayField in interface PNameGetter
Parameters:
ctxt - A context used by PNameGetter to extract the related data.
fn - A String containing the name of the field.
Returns:
The char[] value of the field as stored within the composite name.
Throws:
PException

pngetDateField

public java.util.Date pngetDateField(java.lang.String fn,
                                     java.lang.Object ctxt)
                              throws PException
Description copied from interface: PNameGetter
It retrieves the value of a date field.

Specified by:
pngetDateField in interface PNameGetter
Parameters:
fn - A String containing the name of the field.
ctxt - A context used by PNameGetter to extract the related data.
Returns:
The java.util.Date value of the field as stored within the composite name.
Throws:
PException

pngetBigDecimalField

public java.math.BigDecimal pngetBigDecimalField(java.lang.String fn,
                                                 java.lang.Object ctxt)
                                          throws PException
Description copied from interface: PNameGetter
It retrieves the value of a BigDecimal field.

Specified by:
pngetBigDecimalField in interface PNameGetter
Parameters:
fn - A String containing the name of the field.
ctxt - A context used by PNameGetter to extract the related data.
Returns:
The java.math.BigDecimal value of the field as stored within the composite name.
Throws:
PException

pngetBigIntegerField

public java.math.BigInteger pngetBigIntegerField(java.lang.String fn,
                                                 java.lang.Object ctxt)
                                          throws PException
Description copied from interface: PNameGetter
It retrieves the value of a BigInteger field.

Specified by:
pngetBigIntegerField in interface PNameGetter
Parameters:
fn - A String containing the name of the field.
ctxt - A context used by PNameGetter to extract the related data.
Returns:
The java.math.BigInteger value of the field as stored within the composite name.
Throws:
PException