org.sql.generation.implementation.grammar.definition.table
Class ColumnDefinitionImpl

java.lang.Object
  extended by org.atp.spi.TypeableImpl<TableElement,ColumnDefinition>
      extended by org.sql.generation.implementation.grammar.definition.table.ColumnDefinitionImpl
All Implemented Interfaces:
org.atp.api.Typeable<TableElement>, ColumnDefinition, TableElement

public class ColumnDefinitionImpl
extends org.atp.spi.TypeableImpl<TableElement,ColumnDefinition>
implements ColumnDefinition

Author:
Stanislav Muhametsin

Constructor Summary
protected ColumnDefinitionImpl(Class<? extends ColumnDefinition> realImplementingType, String name, SQLDataType dataType, String defaultStr, Boolean mayBeNull)
           
  ColumnDefinitionImpl(String name, SQLDataType dataType, String defaultStr, Boolean mayBeNull)
           
 
Method Summary
protected  boolean doesEqual(ColumnDefinition another)
           
 String getColumnName()
           
 SQLDataType getDataType()
           
 String getDefault()
           
 Boolean mayBeNull()
           
 
Methods inherited from class org.atp.spi.TypeableImpl
bothNullOrEquals, equals, getImplementedType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.atp.api.Typeable
getImplementedType
 

Constructor Detail

ColumnDefinitionImpl

public ColumnDefinitionImpl(String name,
                            SQLDataType dataType,
                            String defaultStr,
                            Boolean mayBeNull)

ColumnDefinitionImpl

protected ColumnDefinitionImpl(Class<? extends ColumnDefinition> realImplementingType,
                               String name,
                               SQLDataType dataType,
                               String defaultStr,
                               Boolean mayBeNull)
Method Detail

doesEqual

protected boolean doesEqual(ColumnDefinition another)
Specified by:
doesEqual in class org.atp.spi.TypeableImpl<TableElement,ColumnDefinition>

getColumnName

public String getColumnName()
Specified by:
getColumnName in interface ColumnDefinition

getDataType

public SQLDataType getDataType()
Specified by:
getDataType in interface ColumnDefinition

getDefault

public String getDefault()
Specified by:
getDefault in interface ColumnDefinition

mayBeNull

public Boolean mayBeNull()
Specified by:
mayBeNull in interface ColumnDefinition


Copyright © 2010-2011. All Rights Reserved.