org.objectweb.speedo.metadata
Class SpeedoTable

java.lang.Object
  extended by org.objectweb.speedo.metadata.SpeedoElement
      extended by org.objectweb.speedo.metadata.SpeedoTable
All Implemented Interfaces:
java.io.Serializable

public class SpeedoTable
extends SpeedoElement

See Also:
Serialized Form

Field Summary
 java.lang.String catalog
          The catalog of the table (null if none).
 java.util.List indexes
          List of SpeedoIndexes
 SpeedoJoin join
          If it is a secondary table, specify the join with the main table.
 java.lang.String name
          The name of the table.
 java.lang.String schema
          The schema of the table (null if none).
 java.util.ArrayList uniqueConstraints
          A list of unique constraints associated with the table.
 
Fields inherited from class org.objectweb.speedo.metadata.SpeedoElement
jdoExtension, personality
 
Constructor Summary
SpeedoTable()
           
 
Method Summary
 boolean addUniqueConstraint(java.util.ArrayList cols)
          Add a new unique constraint to this table.
 boolean isMain()
           
 
Methods inherited from class org.objectweb.speedo.metadata.SpeedoElement
addExtension, addInArray, getExtension, getExtensionByKey, getExtensionValueByKey, indexOfInArray, removeInArray, setValueInArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public java.lang.String name
The name of the table.


catalog

public java.lang.String catalog
The catalog of the table (null if none).


schema

public java.lang.String schema
The schema of the table (null if none).


join

public SpeedoJoin join
If it is a secondary table, specify the join with the main table.


indexes

public java.util.List indexes
List of SpeedoIndexes


uniqueConstraints

public java.util.ArrayList uniqueConstraints
A list of unique constraints associated with the table.

Constructor Detail

SpeedoTable

public SpeedoTable()
Method Detail

addUniqueConstraint

public boolean addUniqueConstraint(java.util.ArrayList cols)
Add a new unique constraint to this table. If it already exist, ignored.

Parameters:
cols - The list of columns specifying the constraint.
Returns:
false if it was already defined.

isMain

public boolean isMain()