Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

oracle.jbo.domain
Class DBSequence

java.lang.Object
  extended by oracle.jbo.domain.DBSequence
All Implemented Interfaces:
Comparable, DomainInterface, NativeTypeDomainInterface

public class DBSequence
extends java.lang.Object
implements NativeTypeDomainInterface, Comparable


Field Summary
static java.lang.Class CLASS_INSTANCE
           
static java.lang.String CLASS_INSTANCE_NAME
           
 
Constructor Summary
DBSequence()
          Internal: Applications should not use this constructor.
DBSequence(DBSequence seq)
          Internal: Applications should not invoke this method.
DBSequence(java.lang.Integer num)
          Create an instance of DBSequence with the given number as its value.
DBSequence(long num)
           
DBSequence(java.lang.Long num)
          Create an instance of DBSequence with the given number as its value.
DBSequence(Number num)
          Create an instance of DBSequence with the given number as its value.
DBSequence(SequenceImpl seq)
           
DBSequence(java.lang.String numberString)
          Internal: Applications should not invoke this method.
 
Method Summary
 int compareTo(java.lang.Object another)
          Answers an integer indicating the relative positions of the receiver and the argument in the natural order of elements of the receiver's class.
 boolean equals(java.lang.Object other)
          Test if the specified value is equal to this Sequence object.
 java.lang.Object getData()
          Internal: Applications should not invoke this method.
 java.lang.Object getNativeObject()
           
 Number getSequenceNumber()
          Returns the value of this Sequence as an oracle.jbo.domain.Number
 long getValue()
          Return this domain's value as long.
 int hashCode()
          Computes a hash code for this Sequence object.
 void setContext(DomainOwnerInterface owner, Transaction trans, java.lang.Object ctx)
          Internal: Applications should not use this method.
 java.lang.String toString()
          For testing purposes only: Returns a string representation of the generated sequence value.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_INSTANCE

public static final java.lang.Class CLASS_INSTANCE

CLASS_INSTANCE_NAME

public static final java.lang.String CLASS_INSTANCE_NAME
Constructor Detail

DBSequence

public DBSequence(java.lang.Long num)
Create an instance of DBSequence with the given number as its value.


DBSequence

public DBSequence(long num)

DBSequence

public DBSequence(java.lang.String numberString)
Internal: Applications should not invoke this method.

Called from AttributeDef for default values only.


DBSequence

public DBSequence(DBSequence seq)
Internal: Applications should not invoke this method.


DBSequence

public DBSequence(SequenceImpl seq)

DBSequence

public DBSequence()
Internal: Applications should not use this constructor.


DBSequence

public DBSequence(Number num)
Create an instance of DBSequence with the given number as its value.


DBSequence

public DBSequence(java.lang.Integer num)
Create an instance of DBSequence with the given number as its value.

Method Detail

getValue

public long getValue()
Return this domain's value as long. This method may be used to access the value for this domain in EL-expressions.


toString

public java.lang.String toString()
For testing purposes only: Returns a string representation of the generated sequence value.

Overrides:
toString in class java.lang.Object

getSequenceNumber

public Number getSequenceNumber()
Returns the value of this Sequence as an oracle.jbo.domain.Number


equals

public boolean equals(java.lang.Object other)
Test if the specified value is equal to this Sequence object.

Overrides:
equals in class java.lang.Object
Parameters:
other - The object to which the Sequence should be compared.
Returns:
true The specified object is equal to the this Sequence.

hashCode

public int hashCode()
Computes a hash code for this Sequence object.

Overrides:
hashCode in class java.lang.Object
Returns:
the hash code of this Sequence object.

getNativeObject

public java.lang.Object getNativeObject()
Specified by:
getNativeObject in interface NativeTypeDomainInterface

getData

public java.lang.Object getData()
Internal: Applications should not invoke this method.

Specified by:
getData in interface DomainInterface
Returns:
The value that this sequence object represents

setContext

public void setContext(DomainOwnerInterface owner,
                       Transaction trans,
                       java.lang.Object ctx)
Description copied from interface: DomainInterface
Internal: Applications should not use this method.

Specified by:
setContext in interface DomainInterface

compareTo

public int compareTo(java.lang.Object another)
Description copied from interface: Comparable
Answers an integer indicating the relative positions of the receiver and the argument in the natural order of elements of the receiver's class.

Specified by:
compareTo in interface Comparable
Parameters:
another - Object an object to compare the receiver to
Returns:
int which should be <0 if the receiver should sort before the argument, 0 if the receiver should sort in the same position as the argument, and >0 if the receiver should sort after the argument.

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.