org.eobjects.metamodel.schema
Class AbstractColumn

java.lang.Object
  extended by org.eobjects.metamodel.schema.AbstractColumn
All Implemented Interfaces:
Serializable, Comparable<Column>, Column, NamedStructure, HasName
Direct Known Subclasses:
ImmutableColumn, MutableColumn

public abstract class AbstractColumn
extends Object
implements Column

Abstract Column implementation. Implements most common and trivial methods.

Author:
Kasper Sørensen
See Also:
Serialized Form

Constructor Summary
AbstractColumn()
           
 
Method Summary
 int compareTo(Column that)
           
 boolean equals(Object obj)
           
 String getQualifiedLabel()
          Gets a qualified label for later lookup.
 String getQuotedName()
          Gets the name, including optional quotes, of this structure.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eobjects.metamodel.schema.Column
getColumnNumber, getColumnSize, getName, getNativeType, getRemarks, getTable, getType, isIndexed, isNullable, isPrimaryKey
 
Methods inherited from interface org.eobjects.metamodel.schema.NamedStructure
getQuote
 

Constructor Detail

AbstractColumn

public AbstractColumn()
Method Detail

getQuotedName

public final String getQuotedName()
Description copied from interface: NamedStructure
Gets the name, including optional quotes, of this structure.

Specified by:
getQuotedName in interface NamedStructure
Returns:
The name of the structure with added quote strings.

getQualifiedLabel

public final String getQualifiedLabel()
Description copied from interface: NamedStructure
Gets a qualified label for later lookup. Typically this qualified label is formatted with a simple dot separator. For example, for a column a typical qualified label would be: "MY_SCHEMA.MY_TABLE.MY_COLUMN". The qualified label can be used as a unique identifier for the structure but is not necessarily directly transferable to SQL syntax.

Specified by:
getQualifiedLabel in interface NamedStructure
Returns:
a qualified label

compareTo

public final int compareTo(Column that)
Specified by:
compareTo in interface Comparable<Column>

toString

public final String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2007-2013. All Rights Reserved.