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

E13403-08

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.AbstractSystemObject
              extended by oracle.javatools.db.Tablespace
All Implemented Interfaces:
DBObject, SystemObject, Copyable, DynamicPropertySet

public class Tablespace
extends AbstractSystemObject

Model of a tablespace in a database.

Since:
11.1.1.2.0

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 class oracle.javatools.db.AbstractSystemObject
m_listeners
 
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.
 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()
           
 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.AbstractSystemObject
addObjectListener, fireObjectUpdated, getParent, removeObjectListener
 
Methods inherited from class oracle.javatools.db.AbstractBuildableObject
checkInit, checkInit, copyToImpl, equalsImpl, getOwnedObjectsImpl, getProperties, getProperty, getReferenceIDsImpl, needsInitialization, setProperty
 
Methods inherited from class oracle.javatools.db.AbstractDBObject
changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyTo, equals, findOwnedObject, 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, findOwnedObject, getID, getName, getOwnedObjects, getOwnedObjects, getReferenceIDs, replaceReferenceIDs, setID, setName
 
Methods inherited from interface oracle.javatools.util.DynamicPropertySet
getProperty, setProperties
 

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

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.

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.7.0)

E13403-08

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