schemacrawler.schema
Interface Column

All Superinterfaces:
BaseColumn, Comparable<NamedObject>, DatabaseObject, DependantObject, NamedObject, Serializable
All Known Subinterfaces:
IndexColumn

public interface Column
extends BaseColumn

Represents a column in a database table or procedure.

Author:
Sualeh Fatehi

Method Summary
 String getDefaultValue()
          Gets the default data value for the column.
 Privilege getPrivilege(String name)
          Gets a privilege by name.
 Privilege[] getPrivileges()
          Gets the list of privileges for the table.
 Column getReferencedColumn()
          Referenced column if this column is part of a foreign key, null otherwise.
 boolean isPartOfForeignKey()
          True if this column is part of a foreign key.
 boolean isPartOfPrimaryKey()
          True if this column is a part of primary key.
 boolean isPartOfUniqueIndex()
          True if this column is a unique index.
 
Methods inherited from interface schemacrawler.schema.BaseColumn
getDecimalDigits, getOrdinalPosition, getSize, getType, getWidth, isNullable
 
Methods inherited from interface schemacrawler.schema.DependantObject
getParent
 
Methods inherited from interface schemacrawler.schema.DatabaseObject
getSchema
 
Methods inherited from interface schemacrawler.schema.NamedObject
getAttribute, getAttributes, getFullName, getName, getRemarks, setAttribute
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getDefaultValue

String getDefaultValue()
Gets the default data value for the column.

Returns:
Default data value for the column

getPrivilege

Privilege getPrivilege(String name)
Gets a privilege by name.

Parameters:
name - Name
Returns:
Privilege.

getPrivileges

Privilege[] getPrivileges()
Gets the list of privileges for the table.

Returns:
Privileges for the table

getReferencedColumn

Column getReferencedColumn()
Referenced column if this column is part of a foreign key, null otherwise.

Returns:
Referenced column

isPartOfForeignKey

boolean isPartOfForeignKey()
True if this column is part of a foreign key.

Returns:
If the column is part of a foreign key

isPartOfPrimaryKey

boolean isPartOfPrimaryKey()
True if this column is a part of primary key.

Returns:
If the column is a part of primary key

isPartOfUniqueIndex

boolean isPartOfUniqueIndex()
True if this column is a unique index.

Returns:
If the column is a unique index


Copyright © 2003-2009 Sualeh Fatehi. All Rights Reserved.