liquibase.structure.core
Class Relation

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

public abstract class Relation
extends AbstractDatabaseObject

A container of columns. Usually a table or view.


Constructor Summary
protected Relation()
           
 
Method Summary
 int compareTo(Relation 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 setRemarks(String remarks)
           
 Relation setSchema(Schema schema)
           
 Relation setSchema(String catalog, String schema)
           
 
Methods inherited from class liquibase.structure.AbstractDatabaseObject
compareTo, getAttribute, getAttributes, getObjectTypeName, getSnapshotId, setAttribute, setSnapshotId, snapshotByDefault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface liquibase.structure.DatabaseObject
setName
 

Constructor Detail

Relation

protected Relation()
Method Detail

getName

public String getName()

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(Relation o)


Copyright © 2013 Liquibase.org. All Rights Reserved.