| 
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.Attribute
An instance of Attribute maps to a column with a name and datatype. The attribute corresponds to a column in a database table. When assigned to a column, the column must have a compatible data type; if the data type is not compatible, a runtime exception is likely.
Class Attribute is also used as a common superclass for objects requiring a name and datatype, such as MiningAttribute.
| Constructor Summary | |
Attribute(java.lang.String name, DataType type)Creates an attribute with specified name and data type.  | |
| Method Summary | |
 boolean | 
equals(Attribute attribute)Compares two attributes.  | 
 DataType | 
getDataType()Returns the attribute data type.  | 
 java.lang.String | 
getName()Returns the attribute name.  | 
 void | 
setDataType(DataType type)Sets the attribute data type.  | 
| Methods inherited from class java.lang.Object | 
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public Attribute(java.lang.String name,
DataType type)
          throws InvalidArgumentException,
ODMException
name - attribute nametype - data type (int, float, char, string)InvalidArgumentException - is thrownInvalidArgumentExceptionODMExceptionDataType| Method Detail | 
public java.lang.String getName()
public DataType getDataType()
public void setDataType(DataType type)
type - data type (int, float, char, string)public boolean equals(Attribute attribute)
attribute - attribute to be compared 
  | 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||