com.caucho.db.table
Class UniqueIndexColumnConstraint

java.lang.Object
  extended by com.caucho.db.table.Constraint
      extended by com.caucho.db.table.UniqueIndexColumnConstraint

@Module
public class UniqueIndexColumnConstraint
extends Constraint

Validity constraints.


Constructor Summary
UniqueIndexColumnConstraint(Column column)
          Creates a uniqueness constraint.
 
Method Summary
 void validate(TableIterator[] sourceRows, QueryContext context, DbTransaction xa)
          validate the constraint.
 
Methods inherited from class com.caucho.db.table.Constraint
getName, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniqueIndexColumnConstraint

public UniqueIndexColumnConstraint(Column column)
Creates a uniqueness constraint.

Method Detail

validate

public void validate(TableIterator[] sourceRows,
                     QueryContext context,
                     DbTransaction xa)
              throws java.sql.SQLException
validate the constraint.

Overrides:
validate in class Constraint
Throws:
java.sql.SQLException