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

B12155-01

oracle.owb.relational
Interface ColumnOwner

All Superinterfaces:
OWBNamedObject
All Known Subinterfaces:
MaterializedView, Sequence, Table, View

public interface ColumnOwner
extends OWBNamedObject

ColumnOwner interface represents an abstract, ordered column container. Examples of ColumnOwners are Table and View.


Method Summary
 Column createColumn(java.lang.String name)
          Creates a column as the last column (at the end) of this column owner.
 Column createColumn(java.lang.String name, int position)
          Creates a column in this column owner at the specified position.
 Column findColumn(java.lang.String name)
          Search a column by name in this column owner.
 Column[] getColumns()
          Returns the ordered list of columns of this column owner.
 void moveColumn(Column column, int newPosition)
          Moves a column to a new position.

 

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

 

Method Detail

getColumns

public Column[] getColumns()
Returns the ordered list of columns of this column owner.
Returns:
an array of columns in the order they appear in the column owner.

createColumn

public Column createColumn(java.lang.String name,
                           int position)
                    throws NameSpaceException,
InvalidFormatException
Creates a column in this column owner at the specified position. Valid positions start with 1 (insert at the beginning) and end with the previous number of columns plus 1 (insert at the end).
Parameters:
name - the name of column.
position - the position the column should be placed on.
Returns:
the newly created column.
Throws:
NameSpaceException.
InvalidFormatException.
NameSpaceException
InvalidFormatException

createColumn

public Column createColumn(java.lang.String name)
                    throws NameSpaceException,
InvalidFormatException
Creates a column as the last column (at the end) of this column owner.
Parameters:
name - the name of column.
Returns:
the newly created column.
Throws:
NameSpaceException.
InvalidFormatException.
NameSpaceException
InvalidFormatException

findColumn

public Column findColumn(java.lang.String name)
Search a column by name in this column owner.
Parameters:
name - the name of the column to be found.
Returns:
the column object if found, null otherwise.

moveColumn

public void moveColumn(Column column,
                       int newPosition)
Moves a column to a new position.
Parameters:
column - the column to be moved.
newPosition - the new position the column will have.

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

B12155-01

Copyright © 2003, Oracle. All Rights Reserved.