1 | public class UidIdentifierBeanInfo extends SimpleBeanInfo↵ | | 1 | public class SQLDriverPropertyCollectionBeanInfo extends SimpleBeanInfo↵
|
2 | {↵ | | 2 | {↵
|
|
| | | 3 | private interface IPropNames extends SQLDriverPropertyCollection.IPropertyNames↵
|
| | | 4 | {↵
|
| | | 5 | // Empty body.↵
|
| | | 6 | }↵
|
|
3 | /**↵ | | 7 | /**↵
|
4 | * See http://tinyurl.com/63no6t for discussion of the proper thread-safe way to implement↵ | | 8 | * See http://tinyurl.com/63no6t for discussion of the proper thread-safe way to implement↵
|
5 | * getPropertyDescriptors().↵ | | 9 | * getPropertyDescriptors().↵
|
6 | * ↵ | | 10 | * ↵
|
7 | * @see java.beans.SimpleBeanInfo#getPropertyDescriptors()↵ | | 11 | * @see java.beans.SimpleBeanInfo#getPropertyDescriptors()↵
|
8 | */↵ | | 12 | */↵
|
9 | @Override ↵ | | 13 | ↵
|
10 | public PropertyDescriptor[] getPropertyDescriptors()↵ | | 14 | public PropertyDescriptor[] getPropertyDescriptors()↵
|
11 | {↵ | | 15 | {↵
|
12 | try↵ | | 16 | try↵
|
13 | {↵ | | 17 | {↵
|
14 | PropertyDescriptor[] result = new PropertyDescriptor[1];↵ | | 18 | PropertyDescriptor[] result = new PropertyDescriptor[1];↵
|
15 | result[0] =↵ | | 19 | result[0] =↵
|
16 | new PropertyDescriptor(↵ | | 20 | new IndexedPropertyDescriptor(↵
|
17 | UidIdentifier.IPropertyNames.STRING,↵ | | 21 | IPropNames.↵
|
18 | UidIdentifier.class,↵ | | |
|
19 | "toString",↵ | | |
|
20 | "setString");↵ | | |
|
21 | ↵ | | 22 | DRIVER_PROPERTIES,↵
|
| | | 23 | SQLDriverPropertyCollection.class,↵
|
| | | 24 | "getDriverProperties", "setDriverProperties",↵
|
| | | 25 | "getDriverProperty", "setDriverProperty");↵
|
22 | return result;↵ | | 26 | return result;↵
|
23 | }↵ | | 27 | }↵
|
24 | catch (IntrospectionException e)↵ | | 28 | catch (IntrospectionException e)↵
|
25 | {↵ | | 29 | {↵
|
26 | throw new Error(e) | | 30 | throw new Error(e)
|