butler.ext.metadata
Class ConstantFilterFK
java.lang.Object
butler.sql.metadata.ForeignKey
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
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 |
ConstantFilterFK
public ConstantFilterFK(Table pkTable,
Table fkTable,
java.lang.String name)
throws java.lang.Exception
- Throws:
java.lang.Exception
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