org.d2rq.db.op
Class AssertUniqueKeyOp
java.lang.Object
org.d2rq.db.op.DatabaseOp.Wrapper
org.d2rq.db.op.AssertUniqueKeyOp
- All Implemented Interfaces:
- DatabaseOp
public class AssertUniqueKeyOp
- extends DatabaseOp.Wrapper
Asserts that a certain combination of columns is unique in the
wrapped DatabaseOp
, even if no unique key is present on it.
TODO: Remove this class and handle this as a modification to the underlying base table(s)'s definition(s) in RelationBuilder
AssertUniqueKeyOp
public AssertUniqueKeyOp(DatabaseOp wrapped,
Key uniqueKey)
getKey
public Key getKey()
getUniqueKeys
public Collection<Key> getUniqueKeys()
- Specified by:
getUniqueKeys
in interface DatabaseOp
- Overrides:
getUniqueKeys
in class DatabaseOp.Wrapper
accept
public void accept(OpVisitor visitor)
toString
public String toString()
- Overrides:
toString
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object