1 package com.daffodilwoods.daffodildb.server.sql99.ddl.schemadefinition; 2 3 import com.daffodilwoods.daffodildb.server.sql99.ddl.descriptors.*; 4 import com.daffodilwoods.daffodildb.server.sql99.token.*; 5 import com.daffodilwoods.database.resource.*; 6 7 public class constraintnamedefinition { 8 public constraintname _constraintname0; 9 public SRESERVEDWORD1206543922 _SRESERVEDWORD12065439221; 10 11 12 public void setTableConstraintName(TableConstraintDescriptor tableConDes) throws DException { 13 String catalogName = _constraintname0.getCatalogName(); 14 if (catalogName != null) { 15 if (! (catalogName.equalsIgnoreCase(tableConDes.table_catalog))) { 16 throw new DException("DSE224", null); 17 } 18 } 19 tableConDes.constraint_catalog = tableConDes.table_catalog; 20 21 String schemaName = _constraintname0.getSchemaName(); 22 if (schemaName != null) { 23 if (! (schemaName.equalsIgnoreCase(tableConDes.table_schema))) { 24 throw new DException("DSE897", null); 25 } 26 } 27 tableConDes.constraint_schema = tableConDes.table_schema; 28 29 tableConDes.constraint_name = _constraintname0.getConstraintName(); 30 } 31 32 35 public void setDomianConstraintName(DomainConstraintDescriptor domianConDes) throws DException { 36 String catalogName = _constraintname0.getCatalogName(); 37 if (catalogName != null) { 38 if (! (catalogName.equalsIgnoreCase(domianConDes.domain_catalog))) { 39 throw new DException("DSE224", null); 40 } 41 } 42 domianConDes.constraint_catalog = domianConDes.domain_catalog; 43 String schemaName = _constraintname0.getSchemaName(); 44 if (schemaName != null) { 45 if (! (schemaName.equalsIgnoreCase(domianConDes.domain_schema))) { 46 throw new DException("DSE897", null); 47 } 48 } 49 domianConDes.constraint_schema = domianConDes.domain_schema; 50 domianConDes.constraint_name = _constraintname0.getConstraintName(); 51 } 52 53 public Object clone() throws CloneNotSupportedException { 54 return this; 55 } 56 57 public String toString() { 58 StringBuffer sb = new StringBuffer (); 59 sb.append(" "); 60 sb.append(_SRESERVEDWORD12065439221); 61 sb.append(" "); 62 sb.append(_constraintname0); 63 return sb.toString(); 64 } 65 } 66 | Popular Tags |