1 package com.daffodilwoods.daffodildb.server.sql99.ddl.descriptors; 2 3 import java.util.*; 4 5 import com.daffodilwoods.daffodildb.server.datadictionarysystem.*; 6 import com.daffodilwoods.daffodildb.server.sql99.expression.booleanvalueexpression.*; 7 import com.daffodilwoods.database.general.*; 8 import com.daffodilwoods.database.resource.*; 9 10 public class UniqueConstraintDescriptor 11 implements _UniqueConstraint { 12 13 public TableConstraintDescriptor tableConstraintDescriptor; 14 15 public UniqueConstraintDescriptor() throws DException { 16 } 17 18 public void load(PreparedStatementGetter preparedStatementGetter, _ColumnCharacteristics columnCharacteristics) throws DException { 19 tableConstraintDescriptor.loadConstraintColumns(preparedStatementGetter, columnCharacteristics); 20 } 21 22 public booleanvalueexpression getCondition() throws DException { 23 return tableConstraintDescriptor.getCondition(); 24 } 25 26 27 public int[] getColumns() throws DException { 28 return tableConstraintDescriptor.columnIndexes; 29 } 30 31 public String [] getColumnNames() throws DException { 32 return (String []) tableConstraintDescriptor.getConstraintColumns().toArray(new String [0]); 33 } 34 35 public QualifiedIdentifier getQualifiedIdentifier() throws DException { 36 return new QualifiedIdentifier(tableConstraintDescriptor.constraint_catalog, tableConstraintDescriptor.constraint_schema, tableConstraintDescriptor.constraint_name); 37 } 38 39 public String getType() throws DException { 40 return tableConstraintDescriptor.constraint_type; 41 } 42 43 public BitSet getBitSet() { 44 return tableConstraintDescriptor.getBitSet(); 45 } 46 } 47 | Popular Tags |