Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.4.0)

E10653-05

oracle.jbo.server.uniqueid
Class GeneratorSequenceImpl

java.lang.Object
  extended by oracle.jbo.server.uniqueid.GeneratorSequenceImpl
All Implemented Interfaces:
java.lang.Comparable, DomainInterface

public class GeneratorSequenceImpl
extends java.lang.Object
implements DomainInterface, java.lang.Comparable

This class generates a unique id for the entity attribute. When an attribute is assigned this type, it will get a unique id at runtime.

Since:
11gR1

Constructor Summary
GeneratorSequenceImpl()
          Default constructor
GeneratorSequenceImpl(java.math.BigDecimal rowIdVal)
          This constructor is invoked when displaying the data from a query
GeneratorSequenceImpl(Number rowIdVal)
          This constructor is invoked when creating a row during delete operation.
GeneratorSequenceImpl(java.lang.String defaultVal)
          This constructor is invoked when creating the instance with the default value passed.
 
Method Summary
 int compareTo(java.lang.Object rowId)
          comparing two row ids if both objects are null, then returns 0 if only current object is null, then returns -1 if only compared to object is null, then returns 1 if not any of the above, then invokes BigDecimal.compareTo()
 boolean equals(java.lang.Object obj)
           
 java.lang.Object getData()
          This method is invoked on the DomainInterface to get the data for the attribute of type GeneratorSequenceImpl.
 void setContext(DomainOwnerInterface owner, Transaction trans, java.lang.Object ctx)
          sets the DBTransaction to be used to create RowIdAM
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GeneratorSequenceImpl

public GeneratorSequenceImpl()
Default constructor


GeneratorSequenceImpl

public GeneratorSequenceImpl(java.math.BigDecimal rowIdVal)
This constructor is invoked when displaying the data from a query

Parameters:
rowIdVal -

GeneratorSequenceImpl

public GeneratorSequenceImpl(Number rowIdVal)
This constructor is invoked when creating a row during delete operation.

Parameters:
rowIdVal -

GeneratorSequenceImpl

public GeneratorSequenceImpl(java.lang.String defaultVal)
This constructor is invoked when creating the instance with the default value passed.

Parameters:
defaultVal -
Method Detail

getData

public java.lang.Object getData()
This method is invoked on the DomainInterface to get the data for the attribute of type GeneratorSequenceImpl. This gets an instance of RowIdAM to get the next unique id.

Specified by:
getData in interface DomainInterface
Returns:
a formatted value object.
See Also:
RowIdAMImpl

setContext

public void setContext(DomainOwnerInterface owner,
                       Transaction trans,
                       java.lang.Object ctx)
sets the DBTransaction to be used to create RowIdAM

Specified by:
setContext in interface DomainInterface

toString

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

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

compareTo

public int compareTo(java.lang.Object rowId)
comparing two row ids
  • if both objects are null, then returns 0
  • if only current object is null, then returns -1
  • if only compared to object is null, then returns 1
  • if not any of the above, then invokes BigDecimal.compareTo()

    Specified by:
    compareTo in interface java.lang.Comparable
    Parameters:
    rowId - object that needs to be compared to
    Returns:
    -1, 0 or 1
    See Also:
    BigDecimal.compareTo(Object)

  • Oracle Fusion Middleware Java API Reference for Oracle ADF Model
    11g Release 1 (11.1.1.4.0)

    E10653-05

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