Top Description Fields Constructors Methods
liquibase.structure.core

public abstract Class Relation

extends AbstractDatabaseObject
Class Inheritance
Known Direct Subclasses
liquibase.structure.core.Table, liquibase.structure.core.View
Imports
liquibase.structure.AbstractDatabaseObject, .DatabaseObject, java.util.ArrayList, .List

A container of columns. Usually a table or view.

Field Summary

Modifier and TypeField and Description
private String
Inherited from liquibase.structure.AbstractDatabaseObject:
CURLY_BRACKET_PATTERN

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public Relation
addColumn(Column column)

public int
compareTo(Object
the object to be compared.
o
)

Overrides liquibase.structure.AbstractDatabaseObject.compareTo.

Implements java.lang.Comparable.compareTo.

Compares this object with the specified object for order.

public Column
getColumn(String columnName)

Returns the column object for the given columnName.

public List<Column>
public DatabaseObject[]
public List<Index>
public String
public String
public Schema

Returns:

Returns the schema.
getSchema
()

Implements liquibase.structure.DatabaseObject.getSchema.

public List<UniqueConstraint>
public Relation
setName(String
the new name for the database object
name
)

Implements liquibase.structure.DatabaseObject.setName.

Sets the name for the database object.

public Relation
setRemarks(String remarks)

public Relation
setSchema(Schema
The schema to set.
schema
)

public Relation
setSchema(String catalog, String schema)

Inherited from liquibase.structure.AbstractDatabaseObject:
getAttributegetAttributegetAttributesgetObjectTypeNamegetSerializableFieldNamespacegetSerializableFieldsgetSerializableFieldTypegetSerializableFieldValuegetSerializedObjectNamegetSerializedObjectNamespacegetSnapshotIdloadserializesetAttributesetSnapshotIdshouldIncludeCatalogInSpecificationsnapshotByDefaulttoString

Field Detail

nameback to summary
private String name

Constructor Detail

Relationback to summary
protected Relation()

Method Detail

addColumnback to summary
public Relation addColumn(Column column)
compareToback to summary
public int compareTo(Object o)

Overrides liquibase.structure.AbstractDatabaseObject.compareTo.

Implements java.lang.Comparable.compareTo.

Doc from java.lang.Comparable.compareTo.

Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

The implementor must ensure signum(x.compareTo(y)) == -signum(y.compareTo(x)) for all x and y. (This implies that x.compareTo(y) must throw an exception if and only if y.compareTo(x) throws an exception.)

The implementor must also ensure that the relation is transitive: (x.compareTo(y) > 0 && y.compareTo(z) > 0) implies x.compareTo(z) > 0.

Finally, the implementor must ensure that x.compareTo(y)==0 implies that signum(x.compareTo(z)) == signum(y.compareTo(z)), for all z.

Parameters
o:Object

the object to be compared.

Returns:int

a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

Annotations
@Override
getColumnback to summary
public Column getColumn(String columnName)

Returns the column object for the given columnName. If the column does not exist in this table, return null.

getColumnsback to summary
public List<Column> getColumns()
getContainingObjectsback to summary
public DatabaseObject[] getContainingObjects()

Implements liquibase.structure.DatabaseObject.getContainingObjects.

Annotations
@Override
getIndexesback to summary
public List<Index> getIndexes()
getNameback to summary
public String getName()

Implements liquibase.structure.DatabaseObject.getName.

Annotations
@Override
getRemarksback to summary
public String getRemarks()
getSchemaback to summary
public Schema getSchema()

Implements liquibase.structure.DatabaseObject.getSchema.

Returns:Schema

Returns the schema.

Annotations
@Override
getUniqueConstraintsback to summary
public List<UniqueConstraint> getUniqueConstraints()
setNameback to summary
public Relation setName(String name)

Implements liquibase.structure.DatabaseObject.setName.

Doc from liquibase.structure.DatabaseObject.setName.

Sets the name for the database object.

Parameters
name:String

the new name for the database object

Returns:Relation

a reference to the same object (implementing classes are expected to return a reference to the same object).

Annotations
@Override
setRemarksback to summary
public Relation setRemarks(String remarks)
setSchemaback to summary
public Relation setSchema(Schema schema)
Parameters
schema:Schema

The schema to set.

setSchemaback to summary
public Relation setSchema(String catalog, String schema)