KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > daffodilwoods > daffodildb > server > datadictionarysystem > information > _ViewInformationBeanInfo


1 package com.daffodilwoods.daffodildb.server.datadictionarysystem.information;
2
3
4 /**
5  * <p>Title: </p>
6  * <p>Description: </p>
7  * <p>Copyright: Copyright (c) 2002</p>
8  * <p>Company: </p>
9  * @author unascribed
10  * @version 1.0
11  */

12 import java.beans.*;
13 import com.daffodilwoods.database.resource.*;
14 import java.util.*;
15 import com.daffodilwoods.daffodildb.server.datadictionarysystem.information.*;
16 import com.daffodilwoods.daffodildb.server.sql99.utils._Reference;
17 public class _ViewInformationBeanInfo extends SimpleBeanInfo{
18
19   public _ViewInformationBeanInfo() {
20   }
21
22   public PropertyDescriptor[] getPropertyDescriptors() {
23     Vector properties = new Vector();
24     try{
25         properties.add(new PropertyDescriptor("Schema",_ViewInformation.class,"getSchema",null));
26         properties.add(new PropertyDescriptor("Catalog",_ViewInformation.class,"getCatalog",null));
27         properties.add(new PropertyDescriptor("Name",_ViewInformation.class,"getName",null));
28         properties.add(new PropertyDescriptor("Query",_ViewInformation.class,"getQuery",null));
29         properties.add(new PropertyDescriptor("AllColumns",_ViewInformation.class,"getAllColumns",null));
30         properties.add(new PropertyDescriptor("IsUpdatable",_ViewInformation.class,"isUpdatable",null));
31         properties.add(new PropertyDescriptor("IsInsertable",_ViewInformation.class,"isInsertableInto",null));
32     }
33     catch(Exception JavaDoc e){
34         e.printStackTrace();
35     }
36     PropertyDescriptor []propertyDescriptor = new PropertyDescriptor[properties.size()];
37     properties.toArray(propertyDescriptor);
38     return propertyDescriptor;
39   }
40 }
41
Popular Tags