1 package com.daffodilwoods.daffodildb.server.datadictionarysystem.information; 2 3 import java.util.*; 4 import com.daffodilwoods.database.resource.*; 5 import java.beans.*; 6 import com.daffodilwoods.daffodildb.server.datadictionarysystem.information.*; 7 import com.daffodilwoods.daffodildb.server.sql99.utils._Reference; 8 public class _ColumnsInformationBeanInfo extends SimpleBeanInfo { 9 10 public _ColumnsInformationBeanInfo() { 11 } 12 13 public PropertyDescriptor[] getPropertyDescriptors() { 14 try{ 15 Vector properties = new Vector(); 16 properties.add(new IndexedPropertyDescriptor("ColumnName",_ColumnsInformation.class,null,null,"getColumnName",null)); 17 properties.add(new IndexedPropertyDescriptor("RelatedTable",_ColumnsInformation.class,null,null,"getRelatedTable",null)); 18 properties.add(new PropertyDescriptor("Count",_ColumnsInformation.class,"getColumnCount",null)); 19 properties.add(new IndexedPropertyDescriptor("Size",_ColumnsInformation.class,null,null,"getSize",null)); 20 properties.add(new IndexedPropertyDescriptor("Precision",_ColumnsInformation.class,null,null,"getPrecision",null)); 21 properties.add(new IndexedPropertyDescriptor("Scale",_ColumnsInformation.class,null,null,"getScale",null)); 22 properties.add(new IndexedPropertyDescriptor("Primarykey",_ColumnsInformation.class,null,null,"isPrimaryKey",null)); 23 properties.add(new IndexedPropertyDescriptor("Relation",_ColumnsInformation.class,null,null,"getRelation",null)); 24 properties.add(new IndexedPropertyDescriptor("Nullable",_ColumnsInformation.class,null,null,"isNullable",null)); 25 properties.add(new IndexedPropertyDescriptor("ColumnType",_ColumnsInformation.class,null,null,"getColumnTypeName",null)); 26 properties.add(new IndexedPropertyDescriptor("DefaultValue",_ColumnsInformation.class,null,null,"getDefaultValue",null)); 27 28 29 PropertyDescriptor propertyDescriptor[] = new PropertyDescriptor[properties.size()]; 30 properties.toArray(propertyDescriptor); 31 return propertyDescriptor; 32 }catch(Exception e){e.printStackTrace();return null;} 33 34 } 35 36 public BeanDescriptor getBeanDescriptor() { 37 BeanDescriptor bd = new BeanDescriptor(_ColumnsInformation.class); 38 bd.setValue("simple", Boolean.FALSE); 39 return bd; 40 } 41 42 } 43 | Popular Tags |