|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.javatools.db.AbstractDBObject
oracle.javatools.db.AbstractBuildableObject
oracle.javatools.db.AbstractSystemObject
oracle.javatools.db.AbstractSchemaObject
oracle.javatools.db.Index
public class Index
Model of a database index.
| Nested Class Summary | |
|---|---|
static class |
Index.IndexTypeIndex type |
| Nested classes/interfaces inherited from class oracle.javatools.db.AbstractDBObject |
|---|
AbstractDBObject.ChildSupport |
| Field Summary | |
|---|---|
static java.lang.String |
TYPE |
| Fields inherited from class oracle.javatools.db.AbstractSystemObject |
|---|
m_listeners |
| Fields inherited from interface oracle.javatools.db.DBObject |
|---|
COMMENT |
| Constructor Summary | |
|---|---|
Index()Constructs a new index. |
|
Index(java.lang.String name, Schema schema)Constructs a new index using the specified name and schema. |
|
Index(java.lang.String name, Schema schema, Table table)Constructs a new index on the specified table using the specified name and schema, and adds the index to the table. |
|
Index(java.lang.String name, Table table)Constructs a new index on the specified table using the specified name, and adds the index to the table. |
|
| Method Summary | |
|---|---|
void |
addColumn(Column col)Deprecated. as of 10.1.3 replaced by addColumnExpression(IndexObject colexpr) |
void |
addColumnExpression(IndexObject colExpr)Adds a column to the list of indexed columns. |
void |
addColumnExpression(int posn, IndexObject colExpr)Insert a column into the list of indexed columns. |
protected void |
copyToImpl(AbstractDBObject copy, DBObject copyParent, IDPolicy idPolicy)Implementation method for making a copy of this object. |
DBObject |
findOwnedObject(DBObjectID id)Returns a child of this object that has the given ID. |
IndexObject[] |
getColumnExpressions()Retrieves the column expressions referenced by this index. |
Column[] |
getColumns()Deprecated. as of 10.1.3 replaced by getColumnExpressions() |
DBObjectID |
getDomainIndextype() |
java.lang.String |
getDomainIndextypeOpStatus() |
java.lang.String |
getDomainIndextypeParameters() |
Index.IndexType |
getIndexType()Get the type of the index. |
java.lang.Integer |
getKeyCompression()Gets the key compression. |
int |
getParallelDegree()Return the degree of parallelism (the number of parallel threads used in the parallel operation) where : 0 = PARALLEL DEFAULT (Oracle server selects the degree) 1 = NOPARALLEL (default) n = PARALLEL n |
DBObject |
getParent()Returns the parent of this object, if one exists. |
java.lang.Object |
getProperty(java.lang.String key)Retrieves the value associated with a property. |
Schema |
getSchema()Returns the owning Table's schema or schema set against this index if different. |
Table |
getTable()Retrieves the table on which this index is defined. |
java.lang.String |
getType()Returns the type of this object. |
void |
removeColumn(Column col)Deprecated. as of 10.1.3 replaced by removeColumnExpressions(IndexObject colexpr) |
void |
removeColumnExpression(IndexObject colExpr)Removes a column expression from the list of indexed column expressions |
void |
setColumnExpressions(IndexObject[] colExprs)Sets the column expressions referenced by this index. |
void |
setColumns(Column[] cols)Deprecated. as of 10.1.3 replaced by setColumnExpressions(IndexObject[] colexprs) |
void |
setDomainIndextype(DBObjectID id) |
void |
setDomainIndextypeOpStatus(java.lang.String status) |
void |
setDomainIndextypeParameters(java.lang.String parameters) |
void |
setIndexType(Index.IndexType indexType)Set the type of the index. |
void |
setKeyCompression(java.lang.Integer keyCompression)Sets the key compression. |
void |
setParallelDegree(int value)Set the degree of parallelism (the number of parallel threads used in the parallel operation) where : 0 = PARALLEL DEFAULT (Oracle server selects the degree) 1 = NOPARALLEL (default) n = PARALLEL n |
void |
setParent(DBObject par)Sets the parent of this object. |
void |
setProperty(java.lang.String key, java.lang.Object value)Sets the value for a property. |
void |
setSchema(Schema s)Sets the index's schema. |
void |
setTable(Table table)Sets the table on which this index acts. |
| Methods inherited from class oracle.javatools.db.AbstractSchemaObject |
|---|
addObjectListener, equalsImpl, removeObjectListener |
| Methods inherited from class oracle.javatools.db.AbstractSystemObject |
|---|
addObjectListener, fireObjectUpdated, removeObjectListener |
| Methods inherited from class oracle.javatools.db.AbstractBuildableObject |
|---|
checkInit, checkInit, getOwnedObjectsImpl, getProperties, getReferenceIDsImpl, needsInitialization |
| Methods inherited from class oracle.javatools.db.AbstractDBObject |
|---|
changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyTo, equals, findOwnedObject, findOwnedObject, getChildSupport, getID, getName, getOwnedObjects, getOwnedObjects, getProperty, getReferenceIDs, hashCode, includeOwnedObject, includesType, includesType, removeThisAsParent, replaceReferenceIDs, setID, setName, setProperties, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface oracle.javatools.db.DBObject |
|---|
copyTo, copyTo, copyTo, findOwnedObject, getID, getName, getOwnedObjects, getOwnedObjects, getReferenceIDs, replaceReferenceIDs, setID, setName |
| Methods inherited from interface oracle.javatools.util.DynamicPropertySet |
|---|
getProperties, getProperty, setProperties |
| Methods inherited from interface oracle.javatools.db.SystemObject |
|---|
addObjectListener, fireObjectUpdated, removeObjectListener |
| Field Detail |
|---|
public static final java.lang.String TYPE
| Constructor Detail |
|---|
public Index()
public Index(java.lang.String name,
Table table)
name - a string containing the name of the indextable - the table on which to create the index
public Index(java.lang.String name,
Schema schema)
name - a string containing the name of the indexschema - the schema in which to create the index
public Index(java.lang.String name,
Schema schema,
Table table)
name - a string containing the name of the indexschema - the schema in which to create the indextable - the table on which to create the index| Method Detail |
|---|
public Index.IndexType getIndexType()
public DBObjectID getDomainIndextype()
public java.lang.String getDomainIndextypeParameters()
public java.lang.String getDomainIndextypeOpStatus()
public int getParallelDegree()
public void setIndexType(Index.IndexType indexType)
public void setDomainIndextype(DBObjectID id)
public void setDomainIndextypeParameters(java.lang.String parameters)
public void setDomainIndextypeOpStatus(java.lang.String status)
public void setParallelDegree(int value)
value -public void setKeyCompression(java.lang.Integer keyCompression)
null - NOCOMPRESS0 - COMPRESS> 0 - COMPRESS integerpublic java.lang.Integer getKeyCompression()
null - NOCOMPRESS0 - COMPRESS> 0 - COMPRESS integerpublic void setTable(Table table)
table - the table to which this index referspublic Table getTable()
public DBObject getParent()
DBObjectgetParent in interface ChildDBObjectgetParent in interface DBObjectgetParent in class AbstractSystemObjectpublic void setParent(DBObject par)
ChildDBObjectsetParent in interface ChildDBObjectpublic java.lang.Object getProperty(java.lang.String key)
DynamicPropertySetgetProperty in interface DynamicPropertySetgetProperty in class AbstractSchemaObjectkey - the property key for which a value is desired. exists.null value if the property does not exist or is not set.
public void setProperty(java.lang.String key,
java.lang.Object value)
DynamicPropertySetnull removes that property.setProperty in interface DynamicPropertySetsetProperty in class AbstractSchemaObjectkey - the property key to setvalue - the value to setpublic java.lang.String getType()
DBObjectgetType in interface DBObjectpublic void setColumnExpressions(IndexObject[] colExprs)
colExprs - an array containing the column expressions referenced by this indexpublic IndexObject[] getColumnExpressions()
public void addColumnExpression(IndexObject colExpr)
colExpr - the IndexObject to add
public void addColumnExpression(int posn,
IndexObject colExpr)
posn - the position of the new IndexObjectcolExpr - the IndexObject to addpublic void removeColumnExpression(IndexObject colExpr)
colExpr - the column expression to remove.public DBObject findOwnedObject(DBObjectID id)
AbstractDBObjectfindOwnedObject in interface DBObjectfindOwnedObject in class AbstractDBObjectid - the id to look forpublic Schema getSchema()
getSchema in interface SchemaObjectgetSchema in class AbstractSchemaObjectpublic void setSchema(Schema s)
setSchema in interface SchemaObjectsetSchema in class AbstractSchemaObjects - the Schema containing this object
protected void copyToImpl(AbstractDBObject copy,
DBObject copyParent,
IDPolicy idPolicy)
AbstractDBObjectcopyToImpl in class AbstractSchemaObjectcopy - the copy being created of this objectcopyParent - if this object is being copied underneath a parent, this parameter is the copy of the parent of this object, which will therefore need to be the parent of the copy of this object.idPolicy - the policy for copying the object's ID.
@Deprecated
public void setColumns(Column[] cols)
cols - an array containing the columns referenced by this index
@Deprecated
public Column[] getColumns()
@Deprecated
public void addColumn(Column col)
col - the column to add
@Deprecated
public void removeColumn(Column col)
col - the column to remove.
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||