1 28 29 package com.caucho.db.table; 30 31 import com.caucho.db.sql.QueryContext; 32 import com.caucho.db.store.Transaction; 33 34 import java.sql.SQLException ; 35 36 39 abstract public class Constraint { 40 private String _name; 41 42 45 public void setName(String name) 46 { 47 _name = name; 48 } 49 50 53 public String getName() 54 { 55 return _name; 56 } 57 58 61 public void validate(TableIterator []rows, 62 QueryContext contstraint, Transaction xa) 63 throws SQLException  64 { 65 throw new UnsupportedOperationException (getClass().getName()); 66 } 67 } 68 | Popular Tags |