liquibase.structure.core
Class Relation

java.lang.Object
  extended by liquibase.structure.AbstractDatabaseObject
      extended by liquibase.structure.core.Relation
All Implemented Interfaces:
Comparable, LiquibaseSerializable, DatabaseObject
Direct Known Subclasses:
Table, View

public abstract class Relation
extends AbstractDatabaseObject

A container of columns. Usually a table or view.


Nested Class Summary
 
Nested classes/interfaces inherited from interface liquibase.serializer.LiquibaseSerializable
LiquibaseSerializable.SerializationType
 
Field Summary
 
Fields inherited from interface liquibase.serializer.LiquibaseSerializable
GENERIC_CHANGELOG_EXTENSION_NAMESPACE, GENERIC_SNAPSHOT_EXTENSION_NAMESPACE, STANDARD_CHANGELOG_NAMESPACE, STANDARD_SNAPSHOT_NAMESPACE
 
Constructor Summary
protected Relation()
           
 
Method Summary
 int compareTo(Object o)
           
 Column getColumn(String columnName)
          Returns the column object for the given columnName.
 List<Column> getColumns()
           
 DatabaseObject[] getContainingObjects()
           
 String getName()
           
 String getRemarks()
           
 Schema getSchema()
           
 Relation setName(String name)
           
 Relation setRemarks(String remarks)
           
 Relation setSchema(Schema schema)
           
 Relation setSchema(String catalog, String schema)
           
 
Methods inherited from class liquibase.structure.AbstractDatabaseObject
getAttribute, getAttribute, getAttributes, getObjectTypeName, getSerializableFields, getSerializableFieldType, getSerializableFieldValue, getSerializedObjectName, getSerializedObjectNamespace, getSnapshotId, load, serialize, setAttribute, setSnapshotId, snapshotByDefault, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Relation

protected Relation()
Method Detail

getName

public String getName()

setName

public Relation setName(String name)

getContainingObjects

public DatabaseObject[] getContainingObjects()

getRemarks

public String getRemarks()

setRemarks

public Relation setRemarks(String remarks)

getColumns

public List<Column> getColumns()

getColumn

public Column getColumn(String columnName)
Returns the column object for the given columnName. If the column does not exist in this table, return null.


getSchema

public Schema getSchema()
Returns:
Returns the schema.

setSchema

public Relation setSchema(Schema schema)
Parameters:
schema - The schema to set.

setSchema

public Relation setSchema(String catalog,
                          String schema)

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable
Overrides:
compareTo in class AbstractDatabaseObject


Copyright © 2014 Liquibase.org. All Rights Reserved.