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

java.lang.Object
  extended by org.atp.spi.TypeableImpl<BaseInterfaceType,ActualInterfaceType>
      extended by org.sql.generation.implementation.grammar.common.SQLSyntaxElementBase<TableConstraint,ForeignKeyConstraint>
          extended by org.sql.generation.implementation.grammar.definition.table.ForeignKeyConstraintImpl
All Implemented Interfaces:
org.atp.api.Typeable<TableConstraint>, ForeignKeyConstraint, TableConstraint

public class ForeignKeyConstraintImpl
extends SQLSyntaxElementBase<TableConstraint,ForeignKeyConstraint>
implements ForeignKeyConstraint

Author:
Stanislav Muhametsin

Constructor Summary
protected ForeignKeyConstraintImpl(SQLProcessorAggregator processor, Class<? extends ForeignKeyConstraint> realImplementingType, ColumnNameList sourceColumns, TableNameDirect targetTableName, ColumnNameList targetColumns, MatchType matchType, ReferentialAction onDelete, ReferentialAction onUpdate)
           
  ForeignKeyConstraintImpl(SQLProcessorAggregator processor, ColumnNameList sourceColumns, TableNameDirect targetTableName, ColumnNameList targetColumns, MatchType matchType, ReferentialAction onDelete, ReferentialAction onUpdate)
           
 
Method Summary
protected  boolean doesEqual(ForeignKeyConstraint another)
           
 MatchType getMatchType()
           
 ReferentialAction getOnDelete()
           
 ReferentialAction getOnUpdate()
           
 ColumnNameList getSourceColumns()
           
 ColumnNameList getTargetColumns()
           
 TableNameDirect getTargetTableName()
           
 
Methods inherited from class org.sql.generation.implementation.grammar.common.SQLSyntaxElementBase
toString
 
Methods inherited from class org.atp.spi.TypeableImpl
bothNullOrEquals, equals, getImplementedType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.atp.api.Typeable
getImplementedType
 

Constructor Detail

ForeignKeyConstraintImpl

public ForeignKeyConstraintImpl(SQLProcessorAggregator processor,
                                ColumnNameList sourceColumns,
                                TableNameDirect targetTableName,
                                ColumnNameList targetColumns,
                                MatchType matchType,
                                ReferentialAction onDelete,
                                ReferentialAction onUpdate)

ForeignKeyConstraintImpl

protected ForeignKeyConstraintImpl(SQLProcessorAggregator processor,
                                   Class<? extends ForeignKeyConstraint> realImplementingType,
                                   ColumnNameList sourceColumns,
                                   TableNameDirect targetTableName,
                                   ColumnNameList targetColumns,
                                   MatchType matchType,
                                   ReferentialAction onDelete,
                                   ReferentialAction onUpdate)
Method Detail

doesEqual

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

getMatchType

public MatchType getMatchType()
Specified by:
getMatchType in interface ForeignKeyConstraint

getOnDelete

public ReferentialAction getOnDelete()
Specified by:
getOnDelete in interface ForeignKeyConstraint

getOnUpdate

public ReferentialAction getOnUpdate()
Specified by:
getOnUpdate in interface ForeignKeyConstraint

getSourceColumns

public ColumnNameList getSourceColumns()
Specified by:
getSourceColumns in interface ForeignKeyConstraint

getTargetColumns

public ColumnNameList getTargetColumns()
Specified by:
getTargetColumns in interface ForeignKeyConstraint

getTargetTableName

public TableNameDirect getTargetTableName()
Specified by:
getTargetTableName in interface ForeignKeyConstraint


Copyright © 2010-2012. All Rights Reserved.