|
Oracle Fusion Middleware extensions for Applications Core API Reference 11g Release 1 (11.1.2) E22562-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.apps.fnd.applcore.oaext.model.OATemporaryKeyFactory
public class OATemporaryKeyFactory
used to generate Temporary Keys for an OAEntityImpl. these temporary
keys are unique within a transaction, and are used as the key for
newly-created entities until a permanent key is set on them.
The sequence of keys is returned from the getTemporaryKey()
method.
There are three different kinds of attributes in the primary key:
getTemporaryKey()
is called. The OATemporaryKeyFactory chooses which key attribute will be
the varying attribute, based on the types of the attributes, number
attribute take precedence, then date attributes, then string attributes.
getTemporaryKey()
.
Field Summary | |
---|---|
static int |
INCREMENT_DATES_BY_DAY
Increment dates by a day each time. |
static int |
INCREMENT_DATES_BY_SECOND
Increment dates by a second each time. |
static java.lang.String |
RCS_ID
RCS_ID. |
Constructor Summary | |
---|---|
OATemporaryKeyFactory(oracle.jbo.server.DBTransaction transaction,
oracle.jbo.server.EntityDefImpl eoDef)
Constructs a temporary key factory for the given entity type within the specified transaction. |
Method Summary | |
---|---|
oracle.jbo.domain.Raw |
generateGUID()
Returns a randomly generated Raw object using sys_guid(). |
int |
getDateIncrement()
Gets how dates are incremented. |
oracle.jbo.AttributeList |
getTemporaryKey()
Returns an auto-generated temporary key for the entity type specified in the constructor of this factory. |
void |
setDateIncrement(int inc)
Determines how dates are incremented. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String RCS_ID
public static final int INCREMENT_DATES_BY_SECOND
public static final int INCREMENT_DATES_BY_DAY
Constructor Detail |
---|
public OATemporaryKeyFactory(oracle.jbo.server.DBTransaction transaction, oracle.jbo.server.EntityDefImpl eoDef)
transaction
- the current transaction object.eoDef
- the entity definition object to create the temporary key for.Method Detail |
---|
public void setDateIncrement(int inc)
INCREMENT_DATES_BY_DAY
.
inc
- date increments. Possible values are:
INCREMENT_DATES_BY_SECOND
,
INCREMENT_DATES_BY_DAY
.public int getDateIncrement()
INCREMENT_DATES_BY_SECOND
,
INCREMENT_DATES_BY_DAY
.public oracle.jbo.AttributeList getTemporaryKey()
public oracle.jbo.domain.Raw generateGUID()
|
Oracle Fusion Middleware extensions for Applications Core API Reference 11g Release 1 (11.1.2) E22562-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |