1 package com.daffodilwoods.daffodildb.server.sql99.ddl.schemadefinition; 2 3 import com.daffodilwoods.daffodildb.server.sql99.ddl.descriptors.*; 4 import com.daffodilwoods.database.resource.*; 5 6 public class 7 constraintchecktimeOptOptSRESERVEDWORD1206543922SRESERVEDWORD1206543922 implements constraintcharacteristics { 8 public OptSRESERVEDWORD1206543922SRESERVEDWORD1206543922 _OptOptSRESERVEDWORD1206543922SRESERVEDWORD12065439220; 9 public constraintchecktime _constraintchecktime1; 10 11 public Object run(Object object) throws DException { 12 throw new UnsupportedOperationException (""); 13 } 14 15 public void setConstraintCharacterstics(_Descriptor tableConDes0) throws DException { 16 String constraintCheckTime = (String ) (_constraintchecktime1.run(null)); 17 boolean initially_deferred = "initially deferred".equalsIgnoreCase( 18 constraintCheckTime); 19 20 String deferrableProperty = 21 _OptOptSRESERVEDWORD1206543922SRESERVEDWORD12065439220 == null 22 ? initially_deferred ? "deferrable" : "not deferrable" 23 : _OptOptSRESERVEDWORD1206543922SRESERVEDWORD12065439220.getDeferableValue(); 24 25 boolean is_deferrable = "deferrable".equalsIgnoreCase(deferrableProperty); 26 if (initially_deferred && !is_deferrable) { 27 throw new DException("DSE483", null); 28 } 29 30 ConstraintDescriptor conDes = (ConstraintDescriptor) tableConDes0; 31 conDes.initially_deferred = initially_deferred ? "Yes" : "No"; 32 conDes.is_deferrable = is_deferrable ? "Yes" : "No"; 33 } 34 35 public Object clone() throws CloneNotSupportedException { 36 return this; 37 } 38 39 public String toString() { 40 StringBuffer sb = new StringBuffer (); 41 sb.append(" "); 42 sb.append(_constraintchecktime1); 43 sb.append(" "); 44 if (_OptOptSRESERVEDWORD1206543922SRESERVEDWORD12065439220 != null) { 45 sb.append(_OptOptSRESERVEDWORD1206543922SRESERVEDWORD12065439220); 46 } 47 return sb.toString(); 48 } 49 } 50 | Popular Tags |