butler.ext.metadata
Class ConstantFilterFK

java.lang.Object
  extended by butler.sql.metadata.ForeignKey
      extended by butler.ext.metadata.ConstantFilterFK

public class ConstantFilterFK
extends ForeignKey

Foreign key that has a constant value of one of the columns in the pk table primary key.

Author:
Fredrik Bertilsson

Constructor Summary
ConstantFilterFK(Table pkTable, Table fkTable, java.lang.String name)
           
 
Method Summary
 void add(Column col, java.lang.Object constant)
           
 RecordList findAllPKRecords()
           
 Filter getJoinFilter(boolean oneToMany, java.lang.String startAlias, java.lang.String joinAlias)
           
 
Methods inherited from class butler.sql.metadata.ForeignKey
add, add, equals, equals, getCaption, getColumns, getFKTable, getLocalizedCaption, getName, getPhysicalName, getPKColumns, getPKTable, getQualifiedName, getSchema, hashCode, isInPK, isOneToOne, parse, setFKTable, setPKTable, setSchema, toXML
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstantFilterFK

public ConstantFilterFK(Table pkTable,
                        Table fkTable,
                        java.lang.String name)
                 throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

add

public void add(Column col,
                java.lang.Object constant)

getJoinFilter

public Filter getJoinFilter(boolean oneToMany,
                            java.lang.String startAlias,
                            java.lang.String joinAlias)
                     throws java.lang.Exception
Overrides:
getJoinFilter in class ForeignKey
Throws:
java.lang.Exception

findAllPKRecords

public RecordList findAllPKRecords()
                            throws java.lang.Exception
Overrides:
findAllPKRecords in class ForeignKey
Throws:
java.lang.Exception