|
Business Components | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
oracle.jbo.domain.DBSequence
oracle.jbo.server.SequenceImpl
, Serialized FormField Summary |
Type | Field |
---|---|
static java.lang.String |
AM_IMPL_CLIENT
|
Constructor Summary |
DBSequence()
Internal: Applications should not use this constructor. |
DBSequence(java.math.BigDecimal num)
|
DBSequence(java.math.BigInteger num)
|
DBSequence(DBSequence seq)
|
DBSequence(java.lang.Integer num)
|
DBSequence(java.lang.Long num)
|
DBSequence(Number num)
|
DBSequence(java.lang.String numberString)
|
DBSequence(java.lang.String seqName,
oracle.jbo.ApplicationModule am)
Constructor. |
Method Summary |
Type | Method |
---|---|
static java.lang.Long |
createInstanceWithAM(oracle.jbo.ApplicationModule am)
A class method that may be invoked to retrieve the next value from a database sequence. |
boolean |
equals(java.lang.Object other)
Test if the specified value is equal to this Sequence
object. |
static CustomDatumFactory |
getCustomDatumFactory()
Internal: Applications should not invoke this method. |
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 Sequence object. |
void |
setContext(oracle.jbo.domain.DomainOwnerInterface owner,
oracle.jbo.Transaction trans,
java.lang.Object ctx)
Internal: Applications should not use this method. |
Datum |
toDatum(OracleConnection conn)
Internal: Applications should not invoke this method. |
java.lang.String |
toString()
For testing purposes only: Returns a string representation of the generated sequence value. |
Field Detail |
public static final java.lang.String AM_IMPL_CLIENT
Constructor Detail |
public DBSequence()
public DBSequence(java.math.BigInteger num)
public DBSequence(java.math.BigDecimal num)
public DBSequence(java.lang.Long num)
public DBSequence(java.lang.Integer num)
public DBSequence(Number num)
public DBSequence(DBSequence seq)
public DBSequence(java.lang.String numberString)
public DBSequence(java.lang.String seqName, oracle.jbo.ApplicationModule am)
This method will increment the specified database sequence when it is invoked.
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 |
public static CustomDatumFactory getCustomDatumFactory()
Initializes the Number
Domain.
This method is invoked when JBO is initialized.
CustomDatumFactory
for the
Number
Domain.public java.lang.Object getData()
public void setContext(oracle.jbo.domain.DomainOwnerInterface owner, oracle.jbo.Transaction trans, java.lang.Object ctx)
public Number getSequenceNumber()
public java.lang.String toString()
public boolean equals(java.lang.Object other)
this
Sequence
object.other
- The object to which the Sequence should be compared.this
Sequence.public int hashCode()
this
Sequence object.this
Sequence object.public static java.lang.Long createInstanceWithAM(oracle.jbo.ApplicationModule am)
seqName
- The name of the database sequence that will be used to
generate the sequence value.am
- The application module instance that will provide the JDBC
connection for the sequence requestpublic Datum toDatum(OracleConnection conn) throws java.sql.SQLException
Converts this Number
Domain object back into an
SQL NUMBER
object.
conn
- Not used.Datum
containing NUMBER
object.SQLException
- Never.
|
Business Components | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |