|
Oracle Data Mining Java API Reference 10g Release 1 (10.1) B12276-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.dmt.odm.MiningObject | +--oracle.dmt.odm.data.PhysicalDataSpecification | +--oracle.dmt.odm.data.TransactionalDataSpecification
An instance of TransactionalDataSpecification
instructs the DMS to treat associated data as transactional, i.e., a given case is stored in multiple records in a table with column roles: sequenceID, attributeName, and value.
Here is a customer profile table in NonTransactional format:
ID | Name | City | Income |
---|---|---|---|
1 | John | Boston | 45000 |
2 | Andy | Chicago | 55000 |
3 | Peter | Orlando | 65000 |
Here is the same table in Transactional format:
SeqId | AttributeName | Value |
---|---|---|
1 | Name | John |
1 | City | Boston |
1 | Income | 45000 |
2 | Name | Andy |
2 | City | Chicago |
2 | Income | 55000 |
3 | Name | Peter |
3 | City | Orlando |
3 | Income | 65000 |
Constructor Summary | |
TransactionalDataSpecification(java.lang.String seqId, java.lang.String attrName, java.lang.String value) Deprecated. As of 9.2.0, replaced by TransactionalDataSpecification(seqId, attrName, value, LocationAccessData) | |
TransactionalDataSpecification(java.lang.String seqId, java.lang.String attrName, java.lang.String value, LocationAccessData lad) Creates an instance of TransactionalDataSpecification with the specified identifier attributes. |
Method Summary | |
Attribute |
getAttributeAttribute() Returns an attribute to be used as attribute identifier. |
Attribute |
getGroupAttribute() Deprecated. As of 9.2.0, group identifier is not supported. |
Attribute |
getSequenceAttribute() Returns an attribute to be used as sequence identifier. |
Attribute |
getValueAttribute() Returns an attribute to be used as value identifier. |
static TransactionalDataSpecification |
restore(Connection dmsConn, java.lang.String pdsName) Restores the user-specified TransactionalDataSpecification object from the DMS. |
void |
setGroupAttribute(Attribute groupIdIdAttribute) Deprecated. As of 9.2.0, group identifier is not supported. |
void |
validate() Validates this instance of TransactionalDataSpecification . |
Methods inherited from class oracle.dmt.odm.data.PhysicalDataSpecification |
getFormat, getLocationAccessData, getName, remove, rename, store |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TransactionalDataSpecification(java.lang.String seqId, java.lang.String attrName, java.lang.String value) throws InvalidArgumentException, ODMException
TransactionalDataSpecification(seqId, attrName, value, LocationAccessData)
TransactionalDataSpecification
with the specified identifier attributes.seqId
- The column name for sequence identifierattrName
- The column name for attribute identifiervalue
- The column name value identifierInvalidArgumentException
- when seqId
or attrName
is null.ODMException
- when either seqId
or attrName
is empty or exceed 30 bytes in length.public TransactionalDataSpecification(java.lang.String seqId, java.lang.String attrName, java.lang.String value, LocationAccessData lad) throws InvalidArgumentException, ODMException
TransactionalDataSpecification
with the specified identifier attributes.seqId
- The column name for sequence identifierattrName
- The column name for attribute identifiervalue
- The column name value identifierlad
- The location information of the dataInvalidArgumentException
- when seqId
or attrName
is null.ODMException
- when either seqId
or attrName
is empty or exceed 30 bytes in length.Method Detail |
public void validate() throws MiningObjectException
TransactionalDataSpecification
.MiningObjectException
-
int
data type,String
data type, orint
data type.public Attribute getSequenceAttribute()
Attribute
- An attribute used as sequence identifierpublic Attribute getAttributeAttribute()
Attribute
- An attribute used as attribute identifierpublic Attribute getValueAttribute()
Attribute
- An attribute used as value identifierpublic void setGroupAttribute(Attribute groupIdIdAttribute)
groupIdIdAttribute
- An attribute to be used as group identifierpublic Attribute getGroupAttribute()
Attribute
- An attribute used as group identifierpublic static TransactionalDataSpecification restore(Connection dmsConn, java.lang.String pdsName) throws InvalidArgumentException, MiningObjectException, ODMException, java.sql.SQLException
dmsConn
- Data mining server connectionpdsName
- Name of the TransactionalDataSpecificationTransactionalDataSpecification
- restored TransactionalDataSpecificationInvalidArgumentException
- is throwndmsConn
or pdsName
is nullMiningObjectException
- is thrownODMException
- is thrownSQLException
- is thrownInvalidArgumentException
MiningObjectException
ODMException
java.sql.SQLException
|
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |