1 package com.daffodilwoods.daffodildb.server.serversystem.dmlvalidation.constraintsystem; 2 3 import com.daffodilwoods.database.general.*; 4 import com.daffodilwoods.database.resource.*; 5 6 12 13 public class CheckConstraintException extends DException{ 14 public String condition ; 15 public QualifiedIdentifier tableName ; 16 17 23 24 public CheckConstraintException(String sqlCode, Object [] parameters, DException temp) { 25 super(sqlCode, parameters); 26 this.prevException = temp; 27 } 28 29 33 34 public DException getPreviousException(){ 35 return (prevException==null) ? null : prevException; 36 } 37 38 public CheckConstraintException(String sqlcode, Object [] parameters) { 39 super( sqlcode, parameters ); 40 } 41 42 43 48 public String getMessage(java.util.Locale locale) { 49 return super.getMessage(locale); 50 } 51 52 53 58 59 public void setCheckConstraintExceptionValues( QualifiedIdentifier tabName , String con ) { 60 tableName = tabName ; 61 condition = con ; 62 } 63 64 68 69 public QualifiedIdentifier getTable() { 70 return tableName ; 71 } 72 73 77 78 public String getCondition() { 79 return condition ; 80 } 81 } 82 | Popular Tags |