public class Tablespace extends AbstractSystemObject
Modifier and Type | Class and Description |
---|---|
static class |
Tablespace.FileType |
static class |
Tablespace.TablespaceType
Different types of Tablespace supported in the API.
|
AbstractDBObject.ChildSupport, AbstractDBObject.ListenerSupport
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TABLESPACE_TYPE_KEY
Property controlling the type of Tablespace represented by this model.
|
static java.lang.String |
TYPE |
Constructor and Description |
---|
Tablespace() |
Tablespace(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
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)
Set the file type, either BIGFILE for a tablespace with a single data
file or SMALLFILE for a tablespace that can have one or more file
specifications associated
|
checkInit, checkInit, copyToImpl, getOwnedObjectsImpl, getProperties, getReferenceIDsImpl, needsInitialization
addObjectListener, addObjectListener, addObjectListener, changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyTo, equals, equalsImpl, findOwnedObject, findOwnedObject, findOwnedObject, findOwnedObject, findParent, fireObjectUpdated, firePropertyChanged, getChildSupport, getID, getName, getOwnedObjects, getOwnedObjects, getParent, getProperty, getProperty, getReferenceIDs, hashCode, includeOwnedObject, includesType, includesType, removeObjectListener, removeObjectListener, removeObjectListener, removeOwnedObject, removeThisAsParent, replaceReferenceIDs, setID, setName, setProperties, setProperty, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addObjectListener, fireObjectUpdated, removeObjectListener
addObjectListener, copyTo, copyTo, copyTo, equals, findOwnedObject, findOwnedObject, findOwnedObject, getID, getName, getOwnedObjects, getOwnedObjects, getParent, getProperties, getReferenceIDs, hashCode, removeObjectListener, removeOwnedObject, replaceReferenceIDs, setID, setName
getProperty, getProperty, setProperties, setProperty
public static final java.lang.String TYPE
public static final java.lang.String TABLESPACE_TYPE_KEY
public Tablespace()
public Tablespace(java.lang.String name)
public java.lang.String getType()
DBObject
public void setFileType(Tablespace.FileType fileType)
fileType
- file type of tablespacepublic Tablespace.FileType getFileType()
public void setFileSpecifications(FileSpecification[] newFiles)
newFiles
- an array containing the new list of columnspublic FileSpecification[] getFileSpecifications()
public void addFileSpecification(FileSpecification fileSpec)
fileSpec
- the new data/temp file to addpublic void addFileSpecification(int index, FileSpecification col)
index
- the index to add the new data/temp file atcol
- the new data/temp file to addpublic FileSpecification getFileSpecification(java.lang.String name)
name
- a string containing the desired data/temp filenull
public void removeFileSpecification(FileSpecification fileSpec)
fileSpec
- the column to remove