Issuezilla Issue 102521: Relocate BeanInfo for CachedRowSet into its own module and add a DesignInfo for CachedRowSet as well
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/visualweb.dataconnectivity.designtime/build.xml Tue May 01 20:40:42 2007 +0000
1.3 @@ -0,0 +1,5 @@
1.4 +<?xml version="1.0" encoding="UTF-8"?>
1.5 +<project basedir="." default="netbeans" name="visualweb/dataconnectivity/designtime">
1.6 + <description>Builds, tests, and runs the project org.netbeans.modules.visualweb.dataconnectivity.designtime</description>
1.7 + <import file="../../../nbbuild/templates/projectized.xml"/>
1.8 +</project>
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/visualweb.dataconnectivity.designtime/manifest.mf Tue May 01 20:40:42 2007 +0000
2.3 @@ -0,0 +1,6 @@
2.4 +Manifest-Version: 1.0
2.5 +OpenIDE-Module: org.netbeans.modules.visualweb.dataconnectivity.designtime
2.6 +OpenIDE-Module-Layer: org/netbeans/modules/visualweb/dataconnectivity/designtime/layer.xml
2.7 +OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/visualweb/dataconnectivity/designtime/Bundle.properties
2.8 +OpenIDE-Module-Specification-Version: 1.0
2.9 +
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
3.2 +++ b/visualweb.dataconnectivity.designtime/nbproject/project.xml Tue May 01 20:40:42 2007 +0000
3.3 @@ -0,0 +1,48 @@
3.4 +<?xml version="1.0" encoding="UTF-8"?>
3.5 +<project xmlns="http://www.netbeans.org/ns/project/1">
3.6 + <type>org.netbeans.modules.apisupport.project</type>
3.7 + <configuration>
3.8 + <data xmlns="http://www.netbeans.org/ns/nb-module-project/3">
3.9 + <code-name-base>org.netbeans.modules.visualweb.dataconnectivity.designtime</code-name-base>
3.10 + <module-dependencies>
3.11 + <dependency>
3.12 + <code-name-base>org.netbeans.modules.visualweb.designtime</code-name-base>
3.13 + <build-prerequisite/>
3.14 + <compile-dependency/>
3.15 + <run-dependency>
3.16 + <release-version>1</release-version>
3.17 + <specification-version>1.0</specification-version>
3.18 + </run-dependency>
3.19 + </dependency>
3.20 + <dependency>
3.21 + <code-name-base>org.netbeans.modules.visualweb.designtime.base</code-name-base>
3.22 + <build-prerequisite/>
3.23 + <compile-dependency/>
3.24 + <run-dependency>
3.25 + <specification-version>1.0</specification-version>
3.26 + </run-dependency>
3.27 + </dependency>
3.28 + <dependency>
3.29 + <code-name-base>org.netbeans.modules.visualweb.jsfsupport.designtime</code-name-base>
3.30 + <build-prerequisite/>
3.31 + <compile-dependency/>
3.32 + <run-dependency>
3.33 + <specification-version>2.0</specification-version>
3.34 + </run-dependency>
3.35 + </dependency>
3.36 + <dependency>
3.37 + <code-name-base>org.netbeans.modules.visualweb.sql</code-name-base>
3.38 + <build-prerequisite/>
3.39 + <compile-dependency/>
3.40 + <run-dependency>
3.41 + <release-version>1</release-version>
3.42 + <specification-version>2.0</specification-version>
3.43 + </run-dependency>
3.44 + </dependency>
3.45 + </module-dependencies>
3.46 + <public-packages>
3.47 + <package>org.netbeans.modules.visualweb.dataconnectivity.designtime</package>
3.48 + </public-packages>
3.49 + </data>
3.50 + </configuration>
3.51 +</project>
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
4.2 +++ b/visualweb.dataconnectivity.designtime/src/org/netbeans/modules/visualweb/dataconnectivity/designtime/Bundle.properties Tue May 01 20:40:42 2007 +0000
4.3 @@ -0,0 +1,5 @@
4.4 +OpenIDE-Module-Long-Description=\
4.5 + This module contains the classes for dataconnectivity that are required at design time. \
4.6 + Keeping this as a separate module reduces the number of classes that need to be loaded when opening a visual web project.
4.7 +OpenIDE-Module-Name=Data Sources Design Time
4.8 +OpenIDE-Module-Short-Description=Design Time Classes for Data Connectivity
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
5.2 +++ b/visualweb.dataconnectivity.designtime/src/org/netbeans/modules/visualweb/dataconnectivity/designtime/CachedRowSetXImplBeanInfo.java Tue May 01 20:40:42 2007 +0000
5.3 @@ -0,0 +1,330 @@
5.4 +/*
5.5 + * The contents of this file are subject to the terms of the Common Development
5.6 + * and Distribution License (the License). You may not use this file except in
5.7 + * compliance with the License.
5.8 + *
5.9 + * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
5.10 + * or http://www.netbeans.org/cddl.txt.
5.11 + *
5.12 + * When distributing Covered Code, include this CDDL Header Notice in each file
5.13 + * and include the License file at http://www.netbeans.org/cddl.txt.
5.14 + * If applicable, add the following below the CDDL Header, with the fields
5.15 + * enclosed by brackets [] replaced by your own identifying information:
5.16 + * "Portions Copyrighted [year] [name of copyright owner]"
5.17 + *
5.18 + * The Original Software is NetBeans. The Initial Developer of the Original
5.19 + * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
5.20 + * Microsystems, Inc. All Rights Reserved.
5.21 + */
5.22 +
5.23 +package org.netbeans.modules.visualweb.dataconnectivity.designtime;
5.24 +
5.25 +import org.netbeans.modules.visualweb.faces.dt.data.*;
5.26 +import java.awt.Image;
5.27 +import java.beans.BeanDescriptor;
5.28 +import java.beans.BeanInfo;
5.29 +import java.beans.EventSetDescriptor;
5.30 +import java.beans.IntrospectionException;
5.31 +import java.beans.MethodDescriptor;
5.32 +import java.beans.PropertyDescriptor;
5.33 +import java.beans.SimpleBeanInfo;
5.34 +import java.sql.Connection;
5.35 +import java.sql.ResultSet;
5.36 +import java.sql.Savepoint;
5.37 +import javax.sql.RowSetListener;
5.38 +import com.sun.rave.designtime.Constants;
5.39 +import com.sun.rave.designtime.base.CategoryDescriptors;
5.40 +import com.sun.sql.rowset.CachedRowSetXImpl;
5.41 +
5.42 +public class CachedRowSetXImplBeanInfo extends SimpleBeanInfo {
5.43 +
5.44 + private static EventSetDescriptor[] eventSetDescriptors;
5.45 + private static MethodDescriptor[] methodDescriptors;
5.46 + private static PropertyDescriptor[] propertyDescriptors;
5.47 +
5.48 + public CachedRowSetXImplBeanInfo() throws NoSuchMethodException {}
5.49 +
5.50 + private BeanDescriptor beanDescriptor;
5.51 + public BeanDescriptor getBeanDescriptor() {
5.52 + if (beanDescriptor == null) {
5.53 + beanDescriptor = new BeanDescriptor(CachedRowSetXImpl.class, null);
5.54 + //beanDescriptor.setValue(Constants.BeanDescriptor.TRAY_COMPONENT, Boolean.TRUE);
5.55 + //beanDescriptor.setValue(Constants.BeanDescriptor.CLEANUP_METHOD, "close");
5.56 + }
5.57 + return beanDescriptor;
5.58 + }
5.59 +
5.60 + //public int getDefaultEventIndex() {}
5.61 +
5.62 + public int getDefaultPropertyIndex() {
5.63 + return 0;
5.64 + }
5.65 +
5.66 + public EventSetDescriptor[] getEventSetDescriptors() {
5.67 + try {
5.68 + if (eventSetDescriptors == null) {
5.69 + eventSetDescriptors = new EventSetDescriptor[] {
5.70 + new EventSetDescriptor(CachedRowSetXImpl.class, "rowSet", //NOI18N
5.71 + RowSetListener.class,
5.72 + new String[] {
5.73 + //!JK "cursorMoved", "rowChanged", "rowSetChanged, rowSetPopulated"
5.74 + "cursorMoved", "rowChanged", "rowSetChanged"
5.75 + }
5.76 +
5.77 + , //NOI18N
5.78 + "addRowSetListener", "removeRowSetListener") //NOI18N
5.79 + };
5.80 + }
5.81 +
5.82 + return eventSetDescriptors;
5.83 + } catch (IntrospectionException e) {
5.84 + return null;
5.85 + }
5.86 + }
5.87 +
5.88 + public Image getIcon(int iconKind) {
5.89 + switch (iconKind) {
5.90 + case BeanInfo.ICON_COLOR_16x16:
5.91 + return loadImage("CachedRowSetXImplIconColor16.png"); //NOI18N
5.92 + case BeanInfo.ICON_COLOR_32x32:
5.93 + return loadImage("CachedRowSetXImplIconColor32.gif"); //NOI18N
5.94 + case BeanInfo.ICON_MONO_16x16:
5.95 + return loadImage("CachedRowSetXImplIconMono16.gif"); //NOI18N
5.96 + case BeanInfo.ICON_MONO_32x32:
5.97 + return loadImage("CachedRowSetXImplIconMono32.gif"); //NOI18N
5.98 + }
5.99 + return null;
5.100 + }
5.101 +
5.102 + public synchronized MethodDescriptor[] getMethodDescriptors() {
5.103 + try {
5.104 + if (methodDescriptors == null) {
5.105 + methodDescriptors = new MethodDescriptor[] {
5.106 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("absolute", //NOI18N
5.107 + new Class[] {int.class})),
5.108 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("acceptChanges", null)), //NOI18N
5.109 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("acceptChanges", //NOI18N
5.110 + new Class[] {Connection.class})),
5.111 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("afterLast", null)), //NOI18N
5.112 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("beforeFirst", null)), //NOI18N
5.113 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("cancelRowUpdates", null)), //NOI18N
5.114 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("clearParameters", null)), //NOI18N
5.115 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("clearWarnings", null)), //NOI18N
5.116 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("close", null)), //NOI18N
5.117 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("columnUpdated", //NOI18N
5.118 + new Class[] {int.class})),
5.119 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("columnUpdated", //NOI18N
5.120 + new Class[] {String.class})),
5.121 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("commit", null)), //NOI18N
5.122 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("createCopy", null)), //NOI18N
5.123 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("createCopyNoConstraints", null)), //NOI18N
5.124 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("createCopySchema", null)), //NOI18N
5.125 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("createShared", null)), //NOI18N
5.126 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("deleteRow", null)), //NOI18N
5.127 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("execute", null)), //NOI18N
5.128 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("findColumn", //NOI18N
5.129 + new Class[] {String.class})),
5.130 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("first", null)), //NOI18N
5.131 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("getMetaData", null)), //NOI18N
5.132 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("getKeyColumns", null)), //NOI18N
5.133 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("getOriginal", null)), //NOI18N
5.134 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("getOriginalRow", null)), //NOI18N
5.135 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("getRow", null)), //NOI18N
5.136 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("getStatement", null)), //NOI18N
5.137 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("getWarnings", null)), //NOI18N
5.138 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("insertRow", null)), //NOI18N
5.139 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("isAfterLast", null)), //NOI18N
5.140 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("isBeforeFirst", null)), //NOI18N
5.141 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("isFirst", null)), //NOI18N
5.142 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("isLast", null)), //NOI18N
5.143 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("last", null)), //NOI18N
5.144 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("moveToCurrentRow", null)), //NOI18N
5.145 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("moveToInsertRow", null)), //NOI18N
5.146 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("next", null)), //NOI18N
5.147 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("nextPage", null)), //NOI18N
5.148 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("populate", //NOI18N
5.149 + new Class[] {ResultSet.class})),
5.150 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("previous", null)), //NOI18N
5.151 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("previousPage", null)), //NOI18N
5.152 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("refreshRow", null)), //NOI18N
5.153 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("relative", //NOI18N
5.154 + new Class[] {int.class})),
5.155 +
5.156 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("release", null)), //NOI18N
5.157 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("restoreOriginal", null)), //NOI18N
5.158 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("rollback", null)), //NOI18N
5.159 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("rollback", //NOI18N
5.160 + new Class[] {Savepoint.class})),
5.161 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("rowDeleted", null)), //NOI18N
5.162 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("rowInserted", null)), //NOI18N
5.163 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("rowUpdated", null)), //NOI18N
5.164 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("setKeyColumns", //NOI18N
5.165 + new Class[] {int[].class})),
5.166 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("setOriginalRow", null)), //NOI18N
5.167 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("toCollection", null)),//NOI18N
5.168 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("toCollection", //NOI18N
5.169 + new Class[] {int.class})),
5.170 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("toCollection", //NOI18N
5.171 + new Class[] {String.class})),
5.172 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("undoDelete", null)), //NOI18N
5.173 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("undoInsert", null)), //NOI18N
5.174 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("undoUpdate", null)), //NOI18N
5.175 + new MethodDescriptor(CachedRowSetXImpl.class.getMethod("wasNull", null)) //NOI18N
5.176 +
5.177 + };
5.178 + }
5.179 +
5.180 + return methodDescriptors;
5.181 + } catch (NoSuchMethodException e) {
5.182 + return null;
5.183 + }
5.184 + }
5.185 +
5.186 + public synchronized PropertyDescriptor[] getPropertyDescriptors() {
5.187 + try {
5.188 + if (propertyDescriptors == null) {
5.189 + // command
5.190 + PropertyDescriptor command = new PropertyDescriptor(
5.191 + "command", CachedRowSetXImpl.class); //NOI18N
5.192 + command.setBound(true);
5.193 + // concurrency
5.194 + PropertyDescriptor concurrency = new PropertyDescriptor(
5.195 + "concurrency", CachedRowSetXImpl.class); //NOI18N
5.196 + concurrency.setBound(true);
5.197 + concurrency.setPropertyEditorClass(
5.198 + ConcurrencyPropertyEditor.class);
5.199 + //dataSourceName
5.200 + PropertyDescriptor dataSourceName =
5.201 + new PropertyDescriptor("dataSourceName", CachedRowSetXImpl.class); //NOI18N
5.202 + dataSourceName.setBound(true);
5.203 + // EAT: The original prop editor
5.204 + dataSourceName.setPropertyEditorClass(
5.205 + DataSourceNamePropertyEditor.class);
5.206 + // EAT: new one, once it works :(
5.207 + // dataSourceName.setPropertyEditorClass(
5.208 + // com.sun.jsfcl.std.property.SingleChoiceReferenceDataPropertyEditor.class);
5.209 + // dataSourceName.setValue(
5.210 + // Constants.PropertyDescriptor.REFERENCE_DATA_NAME,
5.211 + // com.sun.jsfcl.std.reference.DataSourceNameReferenceData.NAME);
5.212 + // maxRows
5.213 + PropertyDescriptor maxRows = new PropertyDescriptor(
5.214 + "maxRows", CachedRowSetXImpl.class); //NOI18N
5.215 + maxRows.setBound(true);
5.216 + // pageSize
5.217 + PropertyDescriptor pageSize = new PropertyDescriptor(
5.218 + "pageSize", CachedRowSetXImpl.class); //NOI18N
5.219 + // password
5.220 + PropertyDescriptor password = new PropertyDescriptor(
5.221 + "password", CachedRowSetXImpl.class); //NOI18N
5.222 + password.setBound(true);
5.223 + // showDeleted
5.224 + PropertyDescriptor showDeleted = new PropertyDescriptor(
5.225 + "showDeleted", CachedRowSetXImpl.class); //NOI18N
5.226 + // size
5.227 + PropertyDescriptor size = new PropertyDescriptor(
5.228 + "size", CachedRowSetXImpl.class, "size", null); //NOI18N
5.229 + // transactionIsolation
5.230 + PropertyDescriptor transactionIsolation =
5.231 + new PropertyDescriptor("transactionIsolation", CachedRowSetXImpl.class); //NOI18N
5.232 + transactionIsolation.setBound(true);
5.233 + transactionIsolation.setPropertyEditorClass(
5.234 + TransactionIsolationPropertyEditor.class);
5.235 + // catalogName
5.236 + PropertyDescriptor catalogName = new PropertyDescriptor(
5.237 + "catalogName", CachedRowSetXImpl.class); //NOI18N
5.238 + catalogName.setValue(Constants.PropertyDescriptor.CATEGORY,
5.239 + CategoryDescriptors.ADVANCED);
5.240 + // schemaName
5.241 + PropertyDescriptor schemaName = new PropertyDescriptor(
5.242 + "schemaName", CachedRowSetXImpl.class); //NOI18N
5.243 + schemaName.setValue(Constants.PropertyDescriptor.CATEGORY, CategoryDescriptors.ADVANCED);
5.244 + // tableName
5.245 + PropertyDescriptor tableName = new PropertyDescriptor(
5.246 + "tableName", CachedRowSetXImpl.class); //NOI18N
5.247 + // columnCatalogNames
5.248 + PropertyDescriptor columnCatalogNames = new PropertyDescriptor(
5.249 + "columnCatalogNames", CachedRowSetXImpl.class); // NOI18N
5.250 + columnCatalogNames.setValue(Constants.PropertyDescriptor.CATEGORY,
5.251 + CategoryDescriptors.ADVANCED);
5.252 + columnCatalogNames.setValue(Constants.PropertyDescriptor.CATEGORY,
5.253 + CategoryDescriptors.ADVANCED);
5.254 + // columnSchemaNames
5.255 + PropertyDescriptor columnSchemaNames = new PropertyDescriptor(
5.256 + "columnSchemaNames", CachedRowSetXImpl.class); //NOI18N
5.257 + columnSchemaNames.setValue(Constants.PropertyDescriptor.CATEGORY,
5.258 + CategoryDescriptors.ADVANCED);
5.259 + // columnTableNames
5.260 + PropertyDescriptor columnTableNames = new PropertyDescriptor(
5.261 + "columnTableNames", CachedRowSetXImpl.class); //NOI18N
5.262 + columnTableNames.setValue(Constants.PropertyDescriptor.CATEGORY,
5.263 + CategoryDescriptors.ADVANCED);
5.264 + // columnNames
5.265 + PropertyDescriptor columnNames = new PropertyDescriptor(
5.266 + "columnNames", CachedRowSetXImpl.class); //NOI18N
5.267 + columnNames.setValue(Constants.PropertyDescriptor.CATEGORY,
5.268 + CategoryDescriptors.ADVANCED);
5.269 + // type
5.270 + PropertyDescriptor type =
5.271 + new PropertyDescriptor("type", CachedRowSetXImpl.class); //NOI18N
5.272 + type.setBound(true);
5.273 + type.setPropertyEditorClass(
5.274 + TypePropertyEditor.class);
5.275 + // url
5.276 + PropertyDescriptor url = new PropertyDescriptor("url", CachedRowSetXImpl.class); //NOI18N
5.277 + url.setBound(true);
5.278 + // username
5.279 + PropertyDescriptor username = new PropertyDescriptor(
5.280 + "username", CachedRowSetXImpl.class); //NOI18N
5.281 + username.setBound(true);
5.282 + // insertableColumns
5.283 + PropertyDescriptor insertableColumns = new PropertyDescriptor(
5.284 + "insertableColumns", CachedRowSetXImpl.class); //NOI18N
5.285 + insertableColumns.setValue(Constants.PropertyDescriptor.CATEGORY,
5.286 + CategoryDescriptors.ADVANCED);
5.287 + // updatableColumns
5.288 + PropertyDescriptor updatableColumns = new PropertyDescriptor(
5.289 + "updatableColumns", CachedRowSetXImpl.class); //NOI18N
5.290 + updatableColumns.setValue(Constants.PropertyDescriptor.CATEGORY,
5.291 + CategoryDescriptors.ADVANCED);
5.292 + // printStatements
5.293 + PropertyDescriptor printStatements = new PropertyDescriptor(
5.294 + "printStatements", CachedRowSetXImpl.class); //NOI18N
5.295 + printStatements.setValue(Constants.PropertyDescriptor.CATEGORY,
5.296 + CategoryDescriptors.ADVANCED);
5.297 +
5.298 + propertyDescriptors = new PropertyDescriptor[] {
5.299 + catalogName,
5.300 + columnCatalogNames,
5.301 + columnSchemaNames,
5.302 + columnTableNames,
5.303 + columnNames,
5.304 + command,
5.305 + concurrency,
5.306 + dataSourceName,
5.307 + new PropertyDescriptor("fetchSize", CachedRowSetXImpl.class), //NOI18N
5.308 + //new PropertyDescriptor("maxFieldSize", CachedRowSetXImpl.class),
5.309 + insertableColumns,
5.310 + maxRows,
5.311 + pageSize,
5.312 + password,
5.313 + printStatements,
5.314 + schemaName,
5.315 + showDeleted,
5.316 + size,
5.317 + //new PropertyDescriptor("queryTimeout", CachedRowSetXImpl.class), //NOI18N
5.318 + transactionIsolation,
5.319 + type,
5.320 + tableName,
5.321 + //new PropertyDescriptor("typeMap", CachedRowSetXImpl.class), //NOI18N
5.322 + updatableColumns,
5.323 + url,
5.324 + username
5.325 + //, new PropertyDescriptor("readOnly", CachedRowSetXImpl.class) //NOI18N
5.326 + };
5.327 + }
5.328 + return propertyDescriptors;
5.329 + } catch (IntrospectionException e) {
5.330 + return null;
5.331 + }
5.332 + }
5.333 +}
6.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
6.2 +++ b/visualweb.dataconnectivity.designtime/src/org/netbeans/modules/visualweb/dataconnectivity/designtime/CachedRowSetXImplDesignInfo.java Tue May 01 20:40:42 2007 +0000
6.3 @@ -0,0 +1,71 @@
6.4 +/*
6.5 + * The contents of this file are subject to the terms of the Common Development
6.6 + * and Distribution License (the License). You may not use this file except in
6.7 + * compliance with the License.
6.8 + *
6.9 + * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
6.10 + * or http://www.netbeans.org/cddl.txt.
6.11 + *
6.12 + * When distributing Covered Code, include this CDDL Header Notice in each file
6.13 + * and include the License file at http://www.netbeans.org/cddl.txt.
6.14 + * If applicable, add the following below the CDDL Header, with the fields
6.15 + * enclosed by brackets [] replaced by your own identifying information:
6.16 + * "Portions Copyrighted [year] [name of copyright owner]"
6.17 + *
6.18 + * To change this template, choose Tools | Template Manager
6.19 + * and open the template in the editor.
6.20 + */
6.21 +package org.netbeans.modules.visualweb.dataconnectivity.designtime;
6.22 +import com.sun.sql.rowset.CachedRowSetXImpl;
6.23 +
6.24 +import com.sun.rave.designtime.*;
6.25 +
6.26 +/**
6.27 + *
6.28 + * @author David
6.29 + */
6.30 +public class CachedRowSetXImplDesignInfo {
6.31 +
6.32 + public Class getBeanClass() {
6.33 + return CachedRowSetXImpl.class;
6.34 + }
6.35 +
6.36 + public boolean acceptParent(DesignBean parentBean, DesignBean childBean, Class childClass) {
6.37 + return true;
6.38 + }
6.39 +
6.40 + public boolean acceptChild(DesignBean parentBean, DesignBean childBean, Class childClass) {
6.41 + return true;
6.42 + }
6.43 +
6.44 + public Result beanCreatedSetup(DesignBean bean) {
6.45 + return Result.SUCCESS;
6.46 + }
6.47 +
6.48 + public Result beanPastedSetup(DesignBean bean) {
6.49 + return Result.SUCCESS;
6.50 + }
6.51 +
6.52 + public Result beanDeletedCleanup(DesignBean bean) {
6.53 + return Result.SUCCESS;
6.54 + }
6.55 +
6.56 + public DisplayAction[] getContextItems(DesignBean bean) {
6.57 + return DisplayAction.EMPTY_ARRAY;
6.58 + }
6.59 +
6.60 + public boolean acceptLink(DesignBean targetBean, DesignBean sourceBean, Class sourceClass) {
6.61 + return false;
6.62 + }
6.63 +
6.64 + public Result linkBeans(DesignBean targetBean, DesignBean sourceBean) {
6.65 + return null;
6.66 + }
6.67 +
6.68 + public void beanContextActivated(DesignBean bean) {}
6.69 + public void beanContextDeactivated(DesignBean bean) {}
6.70 + public void instanceNameChanged(DesignBean bean, String oldInstanceName) {}
6.71 + public void beanChanged(DesignBean bean) {}
6.72 + public void propertyChanged(DesignProperty prop, Object oldValue) {}
6.73 + public void eventChanged(DesignEvent event) {}
6.74 +}