com.healthmarketscience.sqlbuilder.dbspec
Interface Column

All Known Implementing Classes:
DbColumn, RejoinTable.RejoinColumn

public interface Column

Maintains information about a database column for use with the sqlbuilder utilities.

Author:
James Ahlborn

Method Summary
 String getColumnNameSQL()
           
 List<? extends Constraint> getConstraints()
           
 Object getDefaultValue()
           
 Table getTable()
           
 Integer getTypeLength()
          Deprecated. use getTypeQualifiers() instead
 String getTypeNameSQL()
           
 List<?> getTypeQualifiers()
           
 

Method Detail

getTable

Table getTable()
Returns:
the parent database table of this column

getColumnNameSQL

String getColumnNameSQL()
Returns:
the simple name of this column

getTypeNameSQL

String getTypeNameSQL()
Returns:
the type of this column

getTypeLength

@Deprecated
Integer getTypeLength()
Deprecated. use getTypeQualifiers() instead

Returns:
the length of the type of this column, may be null

getTypeQualifiers

List<?> getTypeQualifiers()
Returns:
the various type qualifiers for this column (e.g. length or scale/precision) in declaration order. May be null or empty if none.

getConstraints

List<? extends Constraint> getConstraints()
Returns:
any constraints for this column

getDefaultValue

Object getDefaultValue()
Returns:
the default value for this column, if any


Copyright © 2006–2017 Health Market Science. All rights reserved.