Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

oracle.javatools.db
Class Tablespace

java.lang.Object
  extended by oracle.javatools.db.AbstractDBObject
      extended by oracle.javatools.db.AbstractBuildableObject
          extended by oracle.javatools.db.Tablespace
All Implemented Interfaces:
DBObject, SystemObject, Copyable, DynamicPropertySet

public class Tablespace
extends AbstractBuildableObject

Model of a database schema.


Nested Class Summary
static class Tablespace.FileType
           
static class Tablespace.TablespaceType
          Different types of Tablespace supported in the API.
 
Nested classes/interfaces inherited from class oracle.javatools.db.AbstractDBObject
AbstractDBObject.ChildSupport
 
Field Summary
static java.lang.String TABLESPACE_TYPE_KEY
          Property controlling the type of Tablespace represented by this model.
static java.lang.String TYPE
           
 
Fields inherited from interface oracle.javatools.db.DBObject
COMMENT
 
Constructor Summary
Tablespace()
           
Tablespace(java.lang.String name)
           
 
Method Summary
 void addFileSpecification(FileSpecification fileSpec)
          Adds one data/temp file to this tablespace.
 void addFileSpecification(int index, FileSpecification col)
          Adds one data/temp file to this tablespace at the given index.
 DBObject copyTo(DBObject target, DBObject copyParent, IDPolicy idPolicy)
          Internal copy method used by the API to perform copy operations.
protected  void copyToImpl(Tablespace copy, DBObject copyParent, IDPolicy idPolicy)
           
 boolean equals(java.lang.Object obj)
           
protected  boolean equalsImpl(Tablespace target)
           
 FileSpecification getFileSpecification(java.lang.String name)
          Retrieves one data/temp file by name.
 FileSpecification[] getFileSpecifications()
          Retrieves the list of data/temp files contained in this tablespace.
 Tablespace.FileType getFileType()
           
 DBObject getParent()
          Returns the parent of this object, if one exists.
 java.lang.String getType()
          Returns the type of this object.
 void removeFileSpecification(FileSpecification fileSpec)
          Removes a data/temp file from this tablespace.
 void setFileSpecifications(FileSpecification[] newFiles)
          Sets the entire list of data/temp files, replacing any that have previously been added.
 void setFileType(Tablespace.FileType fileType)
           
 
Methods inherited from class oracle.javatools.db.AbstractBuildableObject
addObjectListener, checkInit, checkInit, checkInitEx, copyToImpl, equalsImpl, fireObjectUpdated, getOwnedObjectsImpl, getProperties, getProperty, getProperty, getReferenceIDsImpl, needsInitialization, removeObjectListener, setProperties, setProperty
 
Methods inherited from class oracle.javatools.db.AbstractDBObject
changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyToImpl, equalsImpl, findOwnedObject, findOwnedObject, findOwnedObject, getChildSupport, getID, getName, getOwnedObjects, getOwnedObjects, getReferenceIDs, hashCode, includeOwnedObject, includesType, includesType, removeThisAsParent, replaceReferenceIDs, setID, setName, 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, findOwnedObject, getID, getName, getOwnedObjects, getOwnedObjects, getReferenceIDs, replaceReferenceIDs, setID, setName
 

Field Detail

TYPE

public static final java.lang.String TYPE
See Also:
Constant Field Values

TABLESPACE_TYPE_KEY

public static final java.lang.String TABLESPACE_TYPE_KEY
Property controlling the type of Tablespace represented by this model.

See Also:
Tablespace.TablespaceType, Constant Field Values
Constructor Detail

Tablespace

public Tablespace()

Tablespace

public Tablespace(java.lang.String name)
Method Detail

copyTo

public DBObject copyTo(DBObject target,
                       DBObject copyParent,
                       IDPolicy idPolicy)
Description copied from class: AbstractDBObject
Internal copy method used by the API to perform copy operations. All objects must implement this method if they are instantiable objects. Abstract objects (e.g. Relation) must NOT implement this method. The implementation should delegate to the copyToImpl method to copy the actual properties.

This method does not fix internal reference ids on copy. That is done by the calling DBObject.copyTo(DBObject, IDPolicy) method.

Specified by:
copyTo in class AbstractDBObject
See Also:
DBObject.copyTo(java.lang.Object), DBObject.copyTo(DBObject, boolean), AbstractDBObject.copyToImpl(oracle.javatools.db.AbstractDBObject, oracle.javatools.db.DBObject, oracle.javatools.db.IDPolicy)

copyToImpl

protected void copyToImpl(Tablespace copy,
                          DBObject copyParent,
                          IDPolicy idPolicy)

getType

public java.lang.String getType()
Description copied from interface: DBObject
Returns the type of this object. Valid types include things like tables, views, synonyms, and columns.

Returns:
a string describing the type of object.

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

equalsImpl

protected boolean equalsImpl(Tablespace target)

getParent

public DBObject getParent()
Description copied from interface: DBObject
Returns the parent of this object, if one exists. This does not return the Schema for a SchemaObject. Schema's are not considered part of the ownership parent tree.


setFileType

public void setFileType(Tablespace.FileType fileType)

getFileType

public Tablespace.FileType getFileType()

setFileSpecifications

public void setFileSpecifications(FileSpecification[] newFiles)
Sets the entire list of data/temp files, replacing any that have previously been added.

Parameters:
newFiles - an array containing the new list of columns

getFileSpecifications

public FileSpecification[] getFileSpecifications()
Retrieves the list of data/temp files contained in this tablespace.

Returns:
an array containing the list of data/temp files

addFileSpecification

public void addFileSpecification(FileSpecification fileSpec)
Adds one data/temp file to this tablespace.

Parameters:
fileSpec - the new data/temp file to add

addFileSpecification

public void addFileSpecification(int index,
                                 FileSpecification col)
Adds one data/temp file to this tablespace at the given index. Shift the FileSpecification at that position (and any subsesquent FileSpecifications) down one place.

Parameters:
index - the index to add the new data/temp file at
col - the new data/temp file to add

getFileSpecification

public FileSpecification getFileSpecification(java.lang.String name)
Retrieves one data/temp file by name.

Parameters:
name - a string containing the desired data/temp file
Returns:
The data/temp file requested or null

removeFileSpecification

public void removeFileSpecification(FileSpecification fileSpec)
Removes a data/temp file from this tablespace.

Parameters:
fileSpec - the column to remove

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

Copyright © 1997, 2010, Oracle. All rights reserved.