Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 2 (11.1.2.1.0)

E17483-02

oracle.jbo.client.remote
Class SequenceImpl

java.lang.Object
  extended by oracle.jbo.client.remote.SequenceImpl
All Implemented Interfaces:
DomainInterface

public class SequenceImpl
extends java.lang.Object
implements DomainInterface

SequenceImpl proxy.

See Also:
SequenceImpl

Constructor Summary
SequenceImpl()
           
SequenceImpl(java.lang.String seqName, ApplicationModule am)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object other)
          Test if the specified value is equal to this SequenceImpl object.
 java.lang.Object getData()
          Returns the sequence value that was generated by the database sequence while constructing the SequenceImpl object.
 Number getSequenceNumber()
           
 int hashCode()
          Computes a hash code for this SequenceImpl 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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SequenceImpl

public SequenceImpl()

SequenceImpl

public SequenceImpl(java.lang.String seqName,
                    ApplicationModule am)
Constructor.

This method will increment the specified database sequence when it is invoked.

Parameters:
seqName - The name of the database sequence that will be used to generate sequence values.
am - The application module instance that will provide the JDBC connection and the marshalling context for the sequence requests.
Method Detail

getData

public java.lang.Object getData()
Returns the sequence value that was generated by the database sequence while constructing the SequenceImpl object.

Specified by:
getData in interface DomainInterface
Returns:
An object representing the next sequence value.

getSequenceNumber

public Number getSequenceNumber()

setContext

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

Specified by:
setContext in interface DomainInterface

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

equals

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

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

hashCode

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

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

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 2 (11.1.2.1.0)

E17483-02

Copyright © 1997, 2011, Oracle. All rights reserved.