Oracle Warehouse Builder Java API Reference
10g Release 1 (10.1)

B12155-01

oracle.owb.foundation.type
Interface Datatyped

All Superinterfaces:
OWBNamedObject
All Known Subinterfaces:
Attribute, Column, Domain, EnumerationDomain, ExternalTableColumn, Field, LevelAttribute, ListDatatype, MapAttribute, Measure, ObjectAttribute, Parameter, ProcessActivityParameter, ProcessData, RangeDomain, ScalarValue, Value
All Known Implementing Classes:
oracle.owb.foundation.type.DatatypedImpl, PLSQLRecordAttribute

public interface Datatyped
extends OWBNamedObject

DataTyped interface represents a typed metadata object.


Method Summary
 Datatype getDatatype()
          Gets the datatype of object.
 int getLength()
          Gets the length of the object, if that is allowed for this type of object.
 int getPrecision()
          Gets the precision of the object, if that is allowed for this type of object.
 int getScale()
          Gets the scale of the object, if that is allowed for this type of object.
 boolean isPrecisionOmitted()
          Gets whether the precision is omitted for this object, if that is allowed for this type of object.
 void setDatatype(Datatype datatype)
          Sets the datatype of object.
 void setLength(int length)
          Sets the length of the object, if that is allowed for this type of object.
 void setPrecision(int precision)
          Sets the precision of the object, if that is allowed for this type of object.
 void setPrecisionOmitted(boolean omitted)
          Sets whether to omit the precision of the object, if that is allowed for this type of object.
 void setScale(int scale)
          Sets the scale of the object, if that is allowed for this type of object.

 

Methods inherited from interface oracle.owb.foundation.OWBNamedObject
delete, getBusinessName, getClassDefinition, getComponent, getDescription, getName, getUOID, isDeletable, isEditable, isRenamable, setBusinessName, setDescription, setName

 

Method Detail

getDatatype

public Datatype getDatatype()
Gets the datatype of object.
Returns:
The datatype of this typed object.
See Also:
#setDatatype.

setDatatype

public void setDatatype(Datatype datatype)
Sets the datatype of object.
Parameters:
datatype - - The datatype to be assigned to this typed object.
See Also:
#getDatatype.

getLength

public int getLength()
Gets the length of the object, if that is allowed for this type of object. To find out if length is allowed for this object, call getDatatype().isLengthAllowed()
Returns:
The length of this object.
See Also:
#setLength.

setLength

public void setLength(int length)
Sets the length of the object, if that is allowed for this type of object. To find out if length is allowed for this object, call getDatatype().isLengthAllowed()
Parameters:
length - - The length of the object.
See Also:
#getLength.

getPrecision

public int getPrecision()
Gets the precision of the object, if that is allowed for this type of object. To find out if precision is allowed for this object, call getDatatype().isPrecisionAllowed()
Returns:
The precision of this object.
See Also:
#setPrecision.

setPrecision

public void setPrecision(int precision)
Sets the precision of the object, if that is allowed for this type of object. To find out if precision is allowed for this object, call getDatatype().isPrecisionAllowed()
Parameters:
precision - - The precision of the object.
See Also:
#getPrecision.

isPrecisionOmitted

public boolean isPrecisionOmitted()
Gets whether the precision is omitted for this object, if that is allowed for this type of object. To find out if precision can be omitted for this object, call getDatatype().isPrecisionOmitAllowed()
Returns:
true if precision is omitted.

setPrecisionOmitted

public void setPrecisionOmitted(boolean omitted)
Sets whether to omit the precision of the object, if that is allowed for this type of object. To find out if precision can be omitted for this object, call getDatatype().isPrecisionOmitAllowed()
Parameters:
omitted - - The boolean value indicating if precision is omitted.

getScale

public int getScale()
Gets the scale of the object, if that is allowed for this type of object. To find out if scale is allowed for this object, call getDatatype().isScaleAllowed()
Returns:
The scale of the object.
See Also:
#setScale.

setScale

public void setScale(int scale)
Sets the scale of the object, if that is allowed for this type of object. To find out if scale is allowed for this object, call getDatatype().isScaleAllowed()
Parameters:
scale - - The scale value of the object.
See Also:
#getScale.

Oracle Warehouse Builder Java API Reference
10g Release 1 (10.1)

B12155-01

Copyright © 2003, Oracle. All Rights Reserved.