1 package com.daffodilwoods.daffodildb.server.datadictionarysystem.information; 2 3 4 12 import java.util.*; 13 import com.daffodilwoods.database.resource.*; 14 import com.daffodilwoods.daffodildb.server.datadictionarysystem.information.*; 15 import java.beans.*; 16 import com.daffodilwoods.daffodildb.server.sql99.utils._Reference; 17 public class _TableInformationBeanInfo extends SimpleBeanInfo { 18 19 public _TableInformationBeanInfo() { 20 } 21 public PropertyDescriptor[] getPropertyDescriptors() { 22 Vector properties = new Vector(); 23 try{ 24 properties.add(new PropertyDescriptor("Schema",_TableInformation.class,"getSchema",null)); 25 properties.add(new PropertyDescriptor("Catalog",_TableInformation.class,"getCatalog",null)); 26 properties.add(new PropertyDescriptor("Name",_TableInformation.class,"getName",null)); 27 properties.add(new PropertyDescriptor("Table Names",_TableInformation.class,"getQualifiedName",null)); 28 properties.add(new PropertyDescriptor("AllColumns",_TableInformation.class,"getAllColumns",null)); 29 properties.add(new PropertyDescriptor("AllIndexes",_TableInformation.class,"getAllIndexes",null)); 30 properties.add(new PropertyDescriptor("AllTriggers",_TableInformation.class,"getAllTriggers",null)); 31 properties.add(new PropertyDescriptor("AllConstraints",_TableInformation.class,"getAllConstraints",null)); 32 properties.add(new PropertyDescriptor("ColumnInformation",_TableInformation.class,"getColumnInformation",null)); 33 properties.add(new PropertyDescriptor("IndexInformation",_TableInformation.class,"getIndexInformation",null)); 34 properties.add(new PropertyDescriptor("ConstraintInformation",_TableInformation.class,"getConstraintInformation",null)); 35 properties.add(new PropertyDescriptor("TriggerInformation",_TableInformation.class,"getTriggerInformation",null)); 36 properties.add(new PropertyDescriptor("Type",_TableInformation.class,"getType",null)); 37 properties.add(new PropertyDescriptor("Remarks",_TableInformation.class,"getRemarks",null)); 38 39 } 40 catch(Exception e){ 41 e.printStackTrace(); 42 } 43 PropertyDescriptor []propertyDescriptor = new PropertyDescriptor[properties.size()]; 44 properties.toArray(propertyDescriptor); 45 return propertyDescriptor; 46 } 47 48 } 49 | Popular Tags |