Resourcespublic class Resources extends com.sun.enterprise.config.ConfigBean implements SerializableThis generated bean class Resources matches the DTD element resources |
Fields Summary |
---|
static Vector | comparators | private static final org.netbeans.modules.schema2beans.Version | runtimeVersion | public static final String | CUSTOM_RESOURCE | public static final String | EXTERNAL_JNDI_RESOURCE | public static final String | JDBC_RESOURCE | public static final String | MAIL_RESOURCE | public static final String | PERSISTENCE_MANAGER_FACTORY_RESOURCE | public static final String | ADMIN_OBJECT_RESOURCE | public static final String | CONNECTOR_RESOURCE | public static final String | RESOURCE_ADAPTER_CONFIG | public static final String | JDBC_CONNECTION_POOL | public static final String | CONNECTOR_CONNECTION_POOL |
Constructors Summary |
---|
public Resources()
this(Common.USE_DEFAULT_VALUES);
| public Resources(int options)
super(comparators, runtimeVersion);
// Properties (see root bean comments for the bean graph)
initPropertyTables(10);
this.createProperty("custom-resource", CUSTOM_RESOURCE, Common.SEQUENCE_OR |
Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY,
CustomResource.class);
this.createAttribute(CUSTOM_RESOURCE, "jndi-name", "JndiName",
AttrProp.CDATA | AttrProp.REQUIRED,
null, null);
this.createAttribute(CUSTOM_RESOURCE, "res-type", "ResType",
AttrProp.CDATA | AttrProp.REQUIRED,
null, null);
this.createAttribute(CUSTOM_RESOURCE, "factory-class", "FactoryClass",
AttrProp.CDATA | AttrProp.REQUIRED,
null, null);
this.createAttribute(CUSTOM_RESOURCE, "object-type", "ObjectType",
AttrProp.CDATA,
null, "user");
this.createAttribute(CUSTOM_RESOURCE, "enabled", "Enabled",
AttrProp.CDATA,
null, "true");
this.createProperty("external-jndi-resource", EXTERNAL_JNDI_RESOURCE, Common.SEQUENCE_OR |
Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY,
ExternalJndiResource.class);
this.createAttribute(EXTERNAL_JNDI_RESOURCE, "jndi-name", "JndiName",
AttrProp.CDATA | AttrProp.REQUIRED,
null, null);
this.createAttribute(EXTERNAL_JNDI_RESOURCE, "jndi-lookup-name", "JndiLookupName",
AttrProp.CDATA | AttrProp.REQUIRED,
null, null);
this.createAttribute(EXTERNAL_JNDI_RESOURCE, "res-type", "ResType",
AttrProp.CDATA | AttrProp.REQUIRED,
null, null);
this.createAttribute(EXTERNAL_JNDI_RESOURCE, "factory-class", "FactoryClass",
AttrProp.CDATA | AttrProp.REQUIRED,
null, null);
this.createAttribute(EXTERNAL_JNDI_RESOURCE, "object-type", "ObjectType",
AttrProp.CDATA,
null, "user");
this.createAttribute(EXTERNAL_JNDI_RESOURCE, "enabled", "Enabled",
AttrProp.CDATA,
null, "true");
this.createProperty("jdbc-resource", JDBC_RESOURCE, Common.SEQUENCE_OR |
Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY,
JdbcResource.class);
this.createAttribute(JDBC_RESOURCE, "jndi-name", "JndiName",
AttrProp.CDATA | AttrProp.REQUIRED,
null, null);
this.createAttribute(JDBC_RESOURCE, "pool-name", "PoolName",
AttrProp.CDATA | AttrProp.REQUIRED,
null, null);
this.createAttribute(JDBC_RESOURCE, "object-type", "ObjectType",
AttrProp.CDATA,
null, "user");
this.createAttribute(JDBC_RESOURCE, "enabled", "Enabled",
AttrProp.CDATA,
null, "true");
this.createProperty("mail-resource", MAIL_RESOURCE, Common.SEQUENCE_OR |
Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY,
MailResource.class);
this.createAttribute(MAIL_RESOURCE, "jndi-name", "JndiName",
AttrProp.CDATA | AttrProp.REQUIRED,
null, null);
this.createAttribute(MAIL_RESOURCE, "store-protocol", "StoreProtocol",
AttrProp.CDATA,
null, "imap");
this.createAttribute(MAIL_RESOURCE, "store-protocol-class", "StoreProtocolClass",
AttrProp.CDATA,
null, "com.sun.mail.imap.IMAPStore");
this.createAttribute(MAIL_RESOURCE, "transport-protocol", "TransportProtocol",
AttrProp.CDATA,
null, "smtp");
this.createAttribute(MAIL_RESOURCE, "transport-protocol-class", "TransportProtocolClass",
AttrProp.CDATA,
null, "com.sun.mail.smtp.SMTPTransport");
this.createAttribute(MAIL_RESOURCE, "host", "Host",
AttrProp.CDATA | AttrProp.REQUIRED,
null, null);
this.createAttribute(MAIL_RESOURCE, "user", "User",
AttrProp.CDATA | AttrProp.REQUIRED,
null, null);
this.createAttribute(MAIL_RESOURCE, "from", "From",
AttrProp.CDATA | AttrProp.REQUIRED,
null, null);
this.createAttribute(MAIL_RESOURCE, "debug", "Debug",
AttrProp.CDATA,
null, "false");
this.createAttribute(MAIL_RESOURCE, "object-type", "ObjectType",
AttrProp.CDATA,
null, "user");
this.createAttribute(MAIL_RESOURCE, "enabled", "Enabled",
AttrProp.CDATA,
null, "true");
this.createProperty("persistence-manager-factory-resource", PERSISTENCE_MANAGER_FACTORY_RESOURCE, Common.SEQUENCE_OR |
Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY,
PersistenceManagerFactoryResource.class);
this.createAttribute(PERSISTENCE_MANAGER_FACTORY_RESOURCE, "jndi-name", "JndiName",
AttrProp.CDATA | AttrProp.REQUIRED,
null, null);
this.createAttribute(PERSISTENCE_MANAGER_FACTORY_RESOURCE, "factory-class", "FactoryClass",
AttrProp.CDATA,
null, "com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerFactoryImpl");
this.createAttribute(PERSISTENCE_MANAGER_FACTORY_RESOURCE, "jdbc-resource-jndi-name", "JdbcResourceJndiName",
AttrProp.CDATA | AttrProp.IMPLIED,
null, null);
this.createAttribute(PERSISTENCE_MANAGER_FACTORY_RESOURCE, "object-type", "ObjectType",
AttrProp.CDATA,
null, "user");
this.createAttribute(PERSISTENCE_MANAGER_FACTORY_RESOURCE, "enabled", "Enabled",
AttrProp.CDATA,
null, "true");
this.createProperty("admin-object-resource", ADMIN_OBJECT_RESOURCE, Common.SEQUENCE_OR |
Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY,
AdminObjectResource.class);
this.createAttribute(ADMIN_OBJECT_RESOURCE, "jndi-name", "JndiName",
AttrProp.CDATA | AttrProp.REQUIRED,
null, null);
this.createAttribute(ADMIN_OBJECT_RESOURCE, "res-type", "ResType",
AttrProp.CDATA | AttrProp.REQUIRED,
null, null);
this.createAttribute(ADMIN_OBJECT_RESOURCE, "res-adapter", "ResAdapter",
AttrProp.CDATA | AttrProp.REQUIRED,
null, null);
this.createAttribute(ADMIN_OBJECT_RESOURCE, "object-type", "ObjectType",
AttrProp.CDATA,
null, "user");
this.createAttribute(ADMIN_OBJECT_RESOURCE, "enabled", "Enabled",
AttrProp.CDATA,
null, "true");
this.createProperty("connector-resource", CONNECTOR_RESOURCE, Common.SEQUENCE_OR |
Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY,
ConnectorResource.class);
this.createAttribute(CONNECTOR_RESOURCE, "jndi-name", "JndiName",
AttrProp.CDATA | AttrProp.REQUIRED,
null, null);
this.createAttribute(CONNECTOR_RESOURCE, "pool-name", "PoolName",
AttrProp.CDATA | AttrProp.REQUIRED,
null, null);
this.createAttribute(CONNECTOR_RESOURCE, "object-type", "ObjectType",
AttrProp.CDATA,
null, "user");
this.createAttribute(CONNECTOR_RESOURCE, "enabled", "Enabled",
AttrProp.CDATA,
null, "true");
this.createProperty("resource-adapter-config", RESOURCE_ADAPTER_CONFIG, Common.SEQUENCE_OR |
Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY,
ResourceAdapterConfig.class);
this.createAttribute(RESOURCE_ADAPTER_CONFIG, "name", "Name",
AttrProp.CDATA | AttrProp.IMPLIED,
null, null);
this.createAttribute(RESOURCE_ADAPTER_CONFIG, "thread-pool-ids", "ThreadPoolIds",
AttrProp.CDATA | AttrProp.IMPLIED,
null, null);
this.createAttribute(RESOURCE_ADAPTER_CONFIG, "object-type", "ObjectType",
AttrProp.CDATA,
null, "user");
this.createAttribute(RESOURCE_ADAPTER_CONFIG, "resource-adapter-name", "ResourceAdapterName",
AttrProp.CDATA | AttrProp.REQUIRED,
null, null);
this.createProperty("jdbc-connection-pool", JDBC_CONNECTION_POOL, Common.SEQUENCE_OR |
Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY,
JdbcConnectionPool.class);
this.createAttribute(JDBC_CONNECTION_POOL, "name", "Name",
AttrProp.CDATA | AttrProp.REQUIRED,
null, null);
this.createAttribute(JDBC_CONNECTION_POOL, "datasource-classname", "DatasourceClassname",
AttrProp.CDATA | AttrProp.REQUIRED,
null, null);
this.createAttribute(JDBC_CONNECTION_POOL, "res-type", "ResType",
AttrProp.CDATA | AttrProp.IMPLIED,
null, null);
this.createAttribute(JDBC_CONNECTION_POOL, "steady-pool-size", "SteadyPoolSize",
AttrProp.CDATA,
null, "8");
this.createAttribute(JDBC_CONNECTION_POOL, "max-pool-size", "MaxPoolSize",
AttrProp.CDATA,
null, "32");
this.createAttribute(JDBC_CONNECTION_POOL, "max-wait-time-in-millis", "MaxWaitTimeInMillis",
AttrProp.CDATA,
null, "60000");
this.createAttribute(JDBC_CONNECTION_POOL, "pool-resize-quantity", "PoolResizeQuantity",
AttrProp.CDATA,
null, "2");
this.createAttribute(JDBC_CONNECTION_POOL, "idle-timeout-in-seconds", "IdleTimeoutInSeconds",
AttrProp.CDATA,
null, "300");
this.createAttribute(JDBC_CONNECTION_POOL, "transaction-isolation-level", "TransactionIsolationLevel",
AttrProp.CDATA | AttrProp.IMPLIED,
null, null);
this.createAttribute(JDBC_CONNECTION_POOL, "is-isolation-level-guaranteed", "IsIsolationLevelGuaranteed",
AttrProp.CDATA,
null, "true");
this.createAttribute(JDBC_CONNECTION_POOL, "is-connection-validation-required", "IsConnectionValidationRequired",
AttrProp.CDATA,
null, "false");
this.createAttribute(JDBC_CONNECTION_POOL, "connection-validation-method", "ConnectionValidationMethod",
AttrProp.CDATA,
null, "auto-commit");
this.createAttribute(JDBC_CONNECTION_POOL, "validation-table-name", "ValidationTableName",
AttrProp.CDATA | AttrProp.IMPLIED,
null, null);
this.createAttribute(JDBC_CONNECTION_POOL, "fail-all-connections", "FailAllConnections",
AttrProp.CDATA,
null, "false");
this.createAttribute(JDBC_CONNECTION_POOL, "non-transactional-connections", "NonTransactionalConnections",
AttrProp.CDATA,
null, "false");
this.createAttribute(JDBC_CONNECTION_POOL, "allow-non-component-callers", "AllowNonComponentCallers",
AttrProp.CDATA,
null, "false");
this.createAttribute(JDBC_CONNECTION_POOL, "validate-atmost-once-period-in-seconds", "ValidateAtmostOncePeriodInSeconds",
AttrProp.CDATA,
null, "0");
this.createAttribute(JDBC_CONNECTION_POOL, "connection-leak-timeout-in-seconds", "ConnectionLeakTimeoutInSeconds",
AttrProp.CDATA,
null, "0");
this.createAttribute(JDBC_CONNECTION_POOL, "connection-leak-reclaim", "ConnectionLeakReclaim",
AttrProp.CDATA,
null, "false");
this.createAttribute(JDBC_CONNECTION_POOL, "connection-creation-retry-attempts", "ConnectionCreationRetryAttempts",
AttrProp.CDATA,
null, "0");
this.createAttribute(JDBC_CONNECTION_POOL, "connection-creation-retry-interval-in-seconds", "ConnectionCreationRetryIntervalInSeconds",
AttrProp.CDATA,
null, "10");
this.createAttribute(JDBC_CONNECTION_POOL, "statement-timeout-in-seconds", "StatementTimeoutInSeconds",
AttrProp.CDATA,
null, "-1");
this.createAttribute(JDBC_CONNECTION_POOL, "lazy-connection-enlistment", "LazyConnectionEnlistment",
AttrProp.CDATA,
null, "false");
this.createAttribute(JDBC_CONNECTION_POOL, "lazy-connection-association", "LazyConnectionAssociation",
AttrProp.CDATA,
null, "false");
this.createAttribute(JDBC_CONNECTION_POOL, "associate-with-thread", "AssociateWithThread",
AttrProp.CDATA,
null, "false");
this.createAttribute(JDBC_CONNECTION_POOL, "match-connections", "MatchConnections",
AttrProp.CDATA,
null, "false");
this.createAttribute(JDBC_CONNECTION_POOL, "max-connection-usage-count", "MaxConnectionUsageCount",
AttrProp.CDATA,
null, "0");
this.createAttribute(JDBC_CONNECTION_POOL, "wrap-jdbc-objects", "WrapJdbcObjects",
AttrProp.CDATA,
null, "false");
this.createProperty("connector-connection-pool", CONNECTOR_CONNECTION_POOL, Common.SEQUENCE_OR |
Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY,
ConnectorConnectionPool.class);
this.createAttribute(CONNECTOR_CONNECTION_POOL, "name", "Name",
AttrProp.CDATA | AttrProp.REQUIRED,
null, null);
this.createAttribute(CONNECTOR_CONNECTION_POOL, "resource-adapter-name", "ResourceAdapterName",
AttrProp.CDATA | AttrProp.REQUIRED,
null, null);
this.createAttribute(CONNECTOR_CONNECTION_POOL, "connection-definition-name", "ConnectionDefinitionName",
AttrProp.CDATA | AttrProp.REQUIRED,
null, null);
this.createAttribute(CONNECTOR_CONNECTION_POOL, "steady-pool-size", "SteadyPoolSize",
AttrProp.CDATA,
null, "8");
this.createAttribute(CONNECTOR_CONNECTION_POOL, "max-pool-size", "MaxPoolSize",
AttrProp.CDATA,
null, "32");
this.createAttribute(CONNECTOR_CONNECTION_POOL, "max-wait-time-in-millis", "MaxWaitTimeInMillis",
AttrProp.CDATA,
null, "60000");
this.createAttribute(CONNECTOR_CONNECTION_POOL, "pool-resize-quantity", "PoolResizeQuantity",
AttrProp.CDATA,
null, "2");
this.createAttribute(CONNECTOR_CONNECTION_POOL, "idle-timeout-in-seconds", "IdleTimeoutInSeconds",
AttrProp.CDATA,
null, "300");
this.createAttribute(CONNECTOR_CONNECTION_POOL, "fail-all-connections", "FailAllConnections",
AttrProp.CDATA,
null, "false");
this.createAttribute(CONNECTOR_CONNECTION_POOL, "transaction-support", "TransactionSupport",
AttrProp.CDATA | AttrProp.IMPLIED,
null, null);
this.createAttribute(CONNECTOR_CONNECTION_POOL, "is-connection-validation-required", "IsConnectionValidationRequired",
AttrProp.CDATA,
null, "false");
this.createAttribute(CONNECTOR_CONNECTION_POOL, "validate-atmost-once-period-in-seconds", "ValidateAtmostOncePeriodInSeconds",
AttrProp.CDATA,
null, "0");
this.createAttribute(CONNECTOR_CONNECTION_POOL, "connection-leak-timeout-in-seconds", "ConnectionLeakTimeoutInSeconds",
AttrProp.CDATA,
null, "0");
this.createAttribute(CONNECTOR_CONNECTION_POOL, "connection-leak-reclaim", "ConnectionLeakReclaim",
AttrProp.CDATA,
null, "false");
this.createAttribute(CONNECTOR_CONNECTION_POOL, "connection-creation-retry-attempts", "ConnectionCreationRetryAttempts",
AttrProp.CDATA,
null, "0");
this.createAttribute(CONNECTOR_CONNECTION_POOL, "connection-creation-retry-interval-in-seconds", "ConnectionCreationRetryIntervalInSeconds",
AttrProp.CDATA,
null, "10");
this.createAttribute(CONNECTOR_CONNECTION_POOL, "lazy-connection-enlistment", "LazyConnectionEnlistment",
AttrProp.CDATA,
null, "false");
this.createAttribute(CONNECTOR_CONNECTION_POOL, "lazy-connection-association", "LazyConnectionAssociation",
AttrProp.CDATA,
null, "false");
this.createAttribute(CONNECTOR_CONNECTION_POOL, "associate-with-thread", "AssociateWithThread",
AttrProp.CDATA,
null, "false");
this.createAttribute(CONNECTOR_CONNECTION_POOL, "match-connections", "MatchConnections",
AttrProp.CDATA,
null, "true");
this.createAttribute(CONNECTOR_CONNECTION_POOL, "max-connection-usage-count", "MaxConnectionUsageCount",
AttrProp.CDATA,
null, "0");
this.initialize(options);
|
Methods Summary |
---|
public int | addAdminObjectResource(AdminObjectResource value)
return addAdminObjectResource(value, true);
| public int | addAdminObjectResource(AdminObjectResource value, boolean overwrite)
AdminObjectResource old = getAdminObjectResourceByJndiName(value.getJndiName());
if(old != null) {
throw new ConfigException(StringManager.getManager(Resources.class).getString("cannotAddDuplicate", "AdminObjectResource"));
}
return this.addValue(ADMIN_OBJECT_RESOURCE, value, overwrite);
| public static void | addComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.add(c);
| public int | addConnectorConnectionPool(ConnectorConnectionPool value)
return addConnectorConnectionPool(value, true);
| public int | addConnectorConnectionPool(ConnectorConnectionPool value, boolean overwrite)
ConnectorConnectionPool old = getConnectorConnectionPoolByName(value.getName());
if(old != null) {
throw new ConfigException(StringManager.getManager(Resources.class).getString("cannotAddDuplicate", "ConnectorConnectionPool"));
}
return this.addValue(CONNECTOR_CONNECTION_POOL, value, overwrite);
| public int | addConnectorResource(ConnectorResource value)
return addConnectorResource(value, true);
| public int | addConnectorResource(ConnectorResource value, boolean overwrite)
ConnectorResource old = getConnectorResourceByJndiName(value.getJndiName());
if(old != null) {
throw new ConfigException(StringManager.getManager(Resources.class).getString("cannotAddDuplicate", "ConnectorResource"));
}
return this.addValue(CONNECTOR_RESOURCE, value, overwrite);
| public int | addCustomResource(CustomResource value)
return addCustomResource(value, true);
| public int | addCustomResource(CustomResource value, boolean overwrite)
CustomResource old = getCustomResourceByJndiName(value.getJndiName());
if(old != null) {
throw new ConfigException(StringManager.getManager(Resources.class).getString("cannotAddDuplicate", "CustomResource"));
}
return this.addValue(CUSTOM_RESOURCE, value, overwrite);
| public int | addExternalJndiResource(ExternalJndiResource value)
return addExternalJndiResource(value, true);
| public int | addExternalJndiResource(ExternalJndiResource value, boolean overwrite)
ExternalJndiResource old = getExternalJndiResourceByJndiName(value.getJndiName());
if(old != null) {
throw new ConfigException(StringManager.getManager(Resources.class).getString("cannotAddDuplicate", "ExternalJndiResource"));
}
return this.addValue(EXTERNAL_JNDI_RESOURCE, value, overwrite);
| public int | addJdbcConnectionPool(JdbcConnectionPool value)
return addJdbcConnectionPool(value, true);
| public int | addJdbcConnectionPool(JdbcConnectionPool value, boolean overwrite)
JdbcConnectionPool old = getJdbcConnectionPoolByName(value.getName());
if(old != null) {
throw new ConfigException(StringManager.getManager(Resources.class).getString("cannotAddDuplicate", "JdbcConnectionPool"));
}
return this.addValue(JDBC_CONNECTION_POOL, value, overwrite);
| public int | addJdbcResource(JdbcResource value)
return addJdbcResource(value, true);
| public int | addJdbcResource(JdbcResource value, boolean overwrite)
JdbcResource old = getJdbcResourceByJndiName(value.getJndiName());
if(old != null) {
throw new ConfigException(StringManager.getManager(Resources.class).getString("cannotAddDuplicate", "JdbcResource"));
}
return this.addValue(JDBC_RESOURCE, value, overwrite);
| public int | addMailResource(MailResource value)
return addMailResource(value, true);
| public int | addMailResource(MailResource value, boolean overwrite)
MailResource old = getMailResourceByJndiName(value.getJndiName());
if(old != null) {
throw new ConfigException(StringManager.getManager(Resources.class).getString("cannotAddDuplicate", "MailResource"));
}
return this.addValue(MAIL_RESOURCE, value, overwrite);
| public int | addPersistenceManagerFactoryResource(PersistenceManagerFactoryResource value)
return addPersistenceManagerFactoryResource(value, true);
| public int | addPersistenceManagerFactoryResource(PersistenceManagerFactoryResource value, boolean overwrite)
PersistenceManagerFactoryResource old = getPersistenceManagerFactoryResourceByJndiName(value.getJndiName());
if(old != null) {
throw new ConfigException(StringManager.getManager(Resources.class).getString("cannotAddDuplicate", "PersistenceManagerFactoryResource"));
}
return this.addValue(PERSISTENCE_MANAGER_FACTORY_RESOURCE, value, overwrite);
| public int | addResourceAdapterConfig(ResourceAdapterConfig value)
return addResourceAdapterConfig(value, true);
| public int | addResourceAdapterConfig(ResourceAdapterConfig value, boolean overwrite)
ResourceAdapterConfig old = getResourceAdapterConfigByResourceAdapterName(value.getResourceAdapterName());
if(old != null) {
throw new ConfigException(StringManager.getManager(Resources.class).getString("cannotAddDuplicate", "ResourceAdapterConfig"));
}
return this.addValue(RESOURCE_ADAPTER_CONFIG, value, overwrite);
| public void | dump(java.lang.StringBuffer str, java.lang.String indent)
String s;
Object o;
org.netbeans.modules.schema2beans.BaseBean n;
str.append(indent);
str.append("CustomResource["+this.sizeCustomResource()+"]"); // NOI18N
for(int i=0; i<this.sizeCustomResource(); i++)
{
str.append(indent+"\t");
str.append("#"+i+":");
n = (org.netbeans.modules.schema2beans.BaseBean) this.getCustomResource(i);
if (n != null)
n.dump(str, indent + "\t"); // NOI18N
else
str.append(indent+"\tnull"); // NOI18N
this.dumpAttributes(CUSTOM_RESOURCE, i, str, indent);
}
str.append(indent);
str.append("ExternalJndiResource["+this.sizeExternalJndiResource()+"]"); // NOI18N
for(int i=0; i<this.sizeExternalJndiResource(); i++)
{
str.append(indent+"\t");
str.append("#"+i+":");
n = (org.netbeans.modules.schema2beans.BaseBean) this.getExternalJndiResource(i);
if (n != null)
n.dump(str, indent + "\t"); // NOI18N
else
str.append(indent+"\tnull"); // NOI18N
this.dumpAttributes(EXTERNAL_JNDI_RESOURCE, i, str, indent);
}
str.append(indent);
str.append("JdbcResource["+this.sizeJdbcResource()+"]"); // NOI18N
for(int i=0; i<this.sizeJdbcResource(); i++)
{
str.append(indent+"\t");
str.append("#"+i+":");
n = (org.netbeans.modules.schema2beans.BaseBean) this.getJdbcResource(i);
if (n != null)
n.dump(str, indent + "\t"); // NOI18N
else
str.append(indent+"\tnull"); // NOI18N
this.dumpAttributes(JDBC_RESOURCE, i, str, indent);
}
str.append(indent);
str.append("MailResource["+this.sizeMailResource()+"]"); // NOI18N
for(int i=0; i<this.sizeMailResource(); i++)
{
str.append(indent+"\t");
str.append("#"+i+":");
n = (org.netbeans.modules.schema2beans.BaseBean) this.getMailResource(i);
if (n != null)
n.dump(str, indent + "\t"); // NOI18N
else
str.append(indent+"\tnull"); // NOI18N
this.dumpAttributes(MAIL_RESOURCE, i, str, indent);
}
str.append(indent);
str.append("PersistenceManagerFactoryResource["+this.sizePersistenceManagerFactoryResource()+"]"); // NOI18N
for(int i=0; i<this.sizePersistenceManagerFactoryResource(); i++)
{
str.append(indent+"\t");
str.append("#"+i+":");
n = (org.netbeans.modules.schema2beans.BaseBean) this.getPersistenceManagerFactoryResource(i);
if (n != null)
n.dump(str, indent + "\t"); // NOI18N
else
str.append(indent+"\tnull"); // NOI18N
this.dumpAttributes(PERSISTENCE_MANAGER_FACTORY_RESOURCE, i, str, indent);
}
str.append(indent);
str.append("AdminObjectResource["+this.sizeAdminObjectResource()+"]"); // NOI18N
for(int i=0; i<this.sizeAdminObjectResource(); i++)
{
str.append(indent+"\t");
str.append("#"+i+":");
n = (org.netbeans.modules.schema2beans.BaseBean) this.getAdminObjectResource(i);
if (n != null)
n.dump(str, indent + "\t"); // NOI18N
else
str.append(indent+"\tnull"); // NOI18N
this.dumpAttributes(ADMIN_OBJECT_RESOURCE, i, str, indent);
}
str.append(indent);
str.append("ConnectorResource["+this.sizeConnectorResource()+"]"); // NOI18N
for(int i=0; i<this.sizeConnectorResource(); i++)
{
str.append(indent+"\t");
str.append("#"+i+":");
n = (org.netbeans.modules.schema2beans.BaseBean) this.getConnectorResource(i);
if (n != null)
n.dump(str, indent + "\t"); // NOI18N
else
str.append(indent+"\tnull"); // NOI18N
this.dumpAttributes(CONNECTOR_RESOURCE, i, str, indent);
}
str.append(indent);
str.append("ResourceAdapterConfig["+this.sizeResourceAdapterConfig()+"]"); // NOI18N
for(int i=0; i<this.sizeResourceAdapterConfig(); i++)
{
str.append(indent+"\t");
str.append("#"+i+":");
n = (org.netbeans.modules.schema2beans.BaseBean) this.getResourceAdapterConfig(i);
if (n != null)
n.dump(str, indent + "\t"); // NOI18N
else
str.append(indent+"\tnull"); // NOI18N
this.dumpAttributes(RESOURCE_ADAPTER_CONFIG, i, str, indent);
}
str.append(indent);
str.append("JdbcConnectionPool["+this.sizeJdbcConnectionPool()+"]"); // NOI18N
for(int i=0; i<this.sizeJdbcConnectionPool(); i++)
{
str.append(indent+"\t");
str.append("#"+i+":");
n = (org.netbeans.modules.schema2beans.BaseBean) this.getJdbcConnectionPool(i);
if (n != null)
n.dump(str, indent + "\t"); // NOI18N
else
str.append(indent+"\tnull"); // NOI18N
this.dumpAttributes(JDBC_CONNECTION_POOL, i, str, indent);
}
str.append(indent);
str.append("ConnectorConnectionPool["+this.sizeConnectorConnectionPool()+"]"); // NOI18N
for(int i=0; i<this.sizeConnectorConnectionPool(); i++)
{
str.append(indent+"\t");
str.append("#"+i+":");
n = (org.netbeans.modules.schema2beans.BaseBean) this.getConnectorConnectionPool(i);
if (n != null)
n.dump(str, indent + "\t"); // NOI18N
else
str.append(indent+"\tnull"); // NOI18N
this.dumpAttributes(CONNECTOR_CONNECTION_POOL, i, str, indent);
}
| public java.lang.String | dumpBeanNode()
StringBuffer str = new StringBuffer();
str.append("Resources\n"); // NOI18N
this.dump(str, "\n "); // NOI18N
return str.toString();
| public AdminObjectResource | getAdminObjectResource(int index)
return (AdminObjectResource)this.getValue(ADMIN_OBJECT_RESOURCE, index);
| public AdminObjectResource[] | getAdminObjectResource()
return (AdminObjectResource[])this.getValues(ADMIN_OBJECT_RESOURCE);
| public AdminObjectResource | getAdminObjectResourceByJndiName(java.lang.String id)
if (null != id) { id = id.trim(); }
AdminObjectResource[] o = getAdminObjectResource();
if (o == null) return null;
for (int i=0; i < o.length; i++) {
if(o[i].getAttributeValue(Common.convertName(ServerTags.JNDI_NAME)).equals(id)) {
return o[i];
}
}
return null;
| public ConnectorConnectionPool | getConnectorConnectionPool(int index)
return (ConnectorConnectionPool)this.getValue(CONNECTOR_CONNECTION_POOL, index);
| public ConnectorConnectionPool[] | getConnectorConnectionPool()
return (ConnectorConnectionPool[])this.getValues(CONNECTOR_CONNECTION_POOL);
| public ConnectorConnectionPool | getConnectorConnectionPoolByName(java.lang.String id)
if (null != id) { id = id.trim(); }
ConnectorConnectionPool[] o = getConnectorConnectionPool();
if (o == null) return null;
for (int i=0; i < o.length; i++) {
if(o[i].getAttributeValue(Common.convertName(ServerTags.NAME)).equals(id)) {
return o[i];
}
}
return null;
| public ConnectorResource | getConnectorResource(int index)
return (ConnectorResource)this.getValue(CONNECTOR_RESOURCE, index);
| public ConnectorResource[] | getConnectorResource()
return (ConnectorResource[])this.getValues(CONNECTOR_RESOURCE);
| public ConnectorResource | getConnectorResourceByJndiName(java.lang.String id)
if (null != id) { id = id.trim(); }
ConnectorResource[] o = getConnectorResource();
if (o == null) return null;
for (int i=0; i < o.length; i++) {
if(o[i].getAttributeValue(Common.convertName(ServerTags.JNDI_NAME)).equals(id)) {
return o[i];
}
}
return null;
| public CustomResource | getCustomResource(int index)
return (CustomResource)this.getValue(CUSTOM_RESOURCE, index);
| public CustomResource[] | getCustomResource()
return (CustomResource[])this.getValues(CUSTOM_RESOURCE);
| public CustomResource | getCustomResourceByJndiName(java.lang.String id)
if (null != id) { id = id.trim(); }
CustomResource[] o = getCustomResource();
if (o == null) return null;
for (int i=0; i < o.length; i++) {
if(o[i].getAttributeValue(Common.convertName(ServerTags.JNDI_NAME)).equals(id)) {
return o[i];
}
}
return null;
| public static java.lang.String | getDefaultAttributeValue(java.lang.String attr)
if(attr == null) return null;
attr = attr.trim();
return null;
| public ExternalJndiResource | getExternalJndiResource(int index)
return (ExternalJndiResource)this.getValue(EXTERNAL_JNDI_RESOURCE, index);
| public ExternalJndiResource[] | getExternalJndiResource()
return (ExternalJndiResource[])this.getValues(EXTERNAL_JNDI_RESOURCE);
| public ExternalJndiResource | getExternalJndiResourceByJndiName(java.lang.String id)
if (null != id) { id = id.trim(); }
ExternalJndiResource[] o = getExternalJndiResource();
if (o == null) return null;
for (int i=0; i < o.length; i++) {
if(o[i].getAttributeValue(Common.convertName(ServerTags.JNDI_NAME)).equals(id)) {
return o[i];
}
}
return null;
| public JdbcConnectionPool | getJdbcConnectionPool(int index)
return (JdbcConnectionPool)this.getValue(JDBC_CONNECTION_POOL, index);
| public JdbcConnectionPool[] | getJdbcConnectionPool()
return (JdbcConnectionPool[])this.getValues(JDBC_CONNECTION_POOL);
| public JdbcConnectionPool | getJdbcConnectionPoolByName(java.lang.String id)
if (null != id) { id = id.trim(); }
JdbcConnectionPool[] o = getJdbcConnectionPool();
if (o == null) return null;
for (int i=0; i < o.length; i++) {
if(o[i].getAttributeValue(Common.convertName(ServerTags.NAME)).equals(id)) {
return o[i];
}
}
return null;
| public JdbcResource | getJdbcResource(int index)
return (JdbcResource)this.getValue(JDBC_RESOURCE, index);
| public JdbcResource[] | getJdbcResource()
return (JdbcResource[])this.getValues(JDBC_RESOURCE);
| public JdbcResource | getJdbcResourceByJndiName(java.lang.String id)
if (null != id) { id = id.trim(); }
JdbcResource[] o = getJdbcResource();
if (o == null) return null;
for (int i=0; i < o.length; i++) {
if(o[i].getAttributeValue(Common.convertName(ServerTags.JNDI_NAME)).equals(id)) {
return o[i];
}
}
return null;
| public MailResource | getMailResource(int index)
return (MailResource)this.getValue(MAIL_RESOURCE, index);
| public MailResource[] | getMailResource()
return (MailResource[])this.getValues(MAIL_RESOURCE);
| public MailResource | getMailResourceByJndiName(java.lang.String id)
if (null != id) { id = id.trim(); }
MailResource[] o = getMailResource();
if (o == null) return null;
for (int i=0; i < o.length; i++) {
if(o[i].getAttributeValue(Common.convertName(ServerTags.JNDI_NAME)).equals(id)) {
return o[i];
}
}
return null;
| public PersistenceManagerFactoryResource | getPersistenceManagerFactoryResource(int index)
return (PersistenceManagerFactoryResource)this.getValue(PERSISTENCE_MANAGER_FACTORY_RESOURCE, index);
| public PersistenceManagerFactoryResource[] | getPersistenceManagerFactoryResource()
return (PersistenceManagerFactoryResource[])this.getValues(PERSISTENCE_MANAGER_FACTORY_RESOURCE);
| public PersistenceManagerFactoryResource | getPersistenceManagerFactoryResourceByJndiName(java.lang.String id)
if (null != id) { id = id.trim(); }
PersistenceManagerFactoryResource[] o = getPersistenceManagerFactoryResource();
if (o == null) return null;
for (int i=0; i < o.length; i++) {
if(o[i].getAttributeValue(Common.convertName(ServerTags.JNDI_NAME)).equals(id)) {
return o[i];
}
}
return null;
| protected java.lang.String | getRelativeXPath()get the xpath representation for this element
returns something like abc[@name='value'] or abc
depending on the type of the bean
String ret = null;
ret = "resources";
return (null != ret ? ret.trim() : null);
| public ResourceAdapterConfig | getResourceAdapterConfig(int index)
return (ResourceAdapterConfig)this.getValue(RESOURCE_ADAPTER_CONFIG, index);
| public ResourceAdapterConfig[] | getResourceAdapterConfig()
return (ResourceAdapterConfig[])this.getValues(RESOURCE_ADAPTER_CONFIG);
| public ResourceAdapterConfig | getResourceAdapterConfigByResourceAdapterName(java.lang.String id)
if (null != id) { id = id.trim(); }
ResourceAdapterConfig[] o = getResourceAdapterConfig();
if (o == null) return null;
for (int i=0; i < o.length; i++) {
if(o[i].getAttributeValue(Common.convertName(ServerTags.RESOURCE_ADAPTER_NAME)).equals(id)) {
return o[i];
}
}
return null;
| void | initialize(int options)
| public AdminObjectResource | newAdminObjectResource()Create a new bean using it's default constructor.
This does not add it to any bean graph.
return new AdminObjectResource();
| public ConnectorConnectionPool | newConnectorConnectionPool()Create a new bean using it's default constructor.
This does not add it to any bean graph.
return new ConnectorConnectionPool();
| public ConnectorResource | newConnectorResource()Create a new bean using it's default constructor.
This does not add it to any bean graph.
return new ConnectorResource();
| public CustomResource | newCustomResource()Create a new bean using it's default constructor.
This does not add it to any bean graph.
return new CustomResource();
| public ExternalJndiResource | newExternalJndiResource()Create a new bean using it's default constructor.
This does not add it to any bean graph.
return new ExternalJndiResource();
| public JdbcConnectionPool | newJdbcConnectionPool()Create a new bean using it's default constructor.
This does not add it to any bean graph.
return new JdbcConnectionPool();
| public JdbcResource | newJdbcResource()Create a new bean using it's default constructor.
This does not add it to any bean graph.
return new JdbcResource();
| public MailResource | newMailResource()Create a new bean using it's default constructor.
This does not add it to any bean graph.
return new MailResource();
| public PersistenceManagerFactoryResource | newPersistenceManagerFactoryResource()Create a new bean using it's default constructor.
This does not add it to any bean graph.
return new PersistenceManagerFactoryResource();
| public ResourceAdapterConfig | newResourceAdapterConfig()Create a new bean using it's default constructor.
This does not add it to any bean graph.
return new ResourceAdapterConfig();
| public int | removeAdminObjectResource(AdminObjectResource value)
return this.removeValue(ADMIN_OBJECT_RESOURCE, value);
| public int | removeAdminObjectResource(AdminObjectResource value, boolean overwrite)
return this.removeValue(ADMIN_OBJECT_RESOURCE, value, overwrite);
| public static void | removeComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.remove(c);
| public int | removeConnectorConnectionPool(ConnectorConnectionPool value)
return this.removeValue(CONNECTOR_CONNECTION_POOL, value);
| public int | removeConnectorConnectionPool(ConnectorConnectionPool value, boolean overwrite)
return this.removeValue(CONNECTOR_CONNECTION_POOL, value, overwrite);
| public int | removeConnectorResource(ConnectorResource value)
return this.removeValue(CONNECTOR_RESOURCE, value);
| public int | removeConnectorResource(ConnectorResource value, boolean overwrite)
return this.removeValue(CONNECTOR_RESOURCE, value, overwrite);
| public int | removeCustomResource(CustomResource value)
return this.removeValue(CUSTOM_RESOURCE, value);
| public int | removeCustomResource(CustomResource value, boolean overwrite)
return this.removeValue(CUSTOM_RESOURCE, value, overwrite);
| public int | removeExternalJndiResource(ExternalJndiResource value)
return this.removeValue(EXTERNAL_JNDI_RESOURCE, value);
| public int | removeExternalJndiResource(ExternalJndiResource value, boolean overwrite)
return this.removeValue(EXTERNAL_JNDI_RESOURCE, value, overwrite);
| public int | removeJdbcConnectionPool(JdbcConnectionPool value)
return this.removeValue(JDBC_CONNECTION_POOL, value);
| public int | removeJdbcConnectionPool(JdbcConnectionPool value, boolean overwrite)
return this.removeValue(JDBC_CONNECTION_POOL, value, overwrite);
| public int | removeJdbcResource(JdbcResource value)
return this.removeValue(JDBC_RESOURCE, value);
| public int | removeJdbcResource(JdbcResource value, boolean overwrite)
return this.removeValue(JDBC_RESOURCE, value, overwrite);
| public int | removeMailResource(MailResource value)
return this.removeValue(MAIL_RESOURCE, value);
| public int | removeMailResource(MailResource value, boolean overwrite)
return this.removeValue(MAIL_RESOURCE, value, overwrite);
| public int | removePersistenceManagerFactoryResource(PersistenceManagerFactoryResource value)
return this.removeValue(PERSISTENCE_MANAGER_FACTORY_RESOURCE, value);
| public int | removePersistenceManagerFactoryResource(PersistenceManagerFactoryResource value, boolean overwrite)
return this.removeValue(PERSISTENCE_MANAGER_FACTORY_RESOURCE, value, overwrite);
| public int | removeResourceAdapterConfig(ResourceAdapterConfig value)
return this.removeValue(RESOURCE_ADAPTER_CONFIG, value);
| public int | removeResourceAdapterConfig(ResourceAdapterConfig value, boolean overwrite)
return this.removeValue(RESOURCE_ADAPTER_CONFIG, value, overwrite);
| public void | setAdminObjectResource(AdminObjectResource[] value)
this.setValue(ADMIN_OBJECT_RESOURCE, value);
| public void | setConnectorConnectionPool(ConnectorConnectionPool[] value)
this.setValue(CONNECTOR_CONNECTION_POOL, value);
| public void | setConnectorResource(ConnectorResource[] value)
this.setValue(CONNECTOR_RESOURCE, value);
| public void | setCustomResource(CustomResource[] value)
this.setValue(CUSTOM_RESOURCE, value);
| public void | setExternalJndiResource(ExternalJndiResource[] value)
this.setValue(EXTERNAL_JNDI_RESOURCE, value);
| public void | setJdbcConnectionPool(JdbcConnectionPool[] value)
this.setValue(JDBC_CONNECTION_POOL, value);
| public void | setJdbcResource(JdbcResource[] value)
this.setValue(JDBC_RESOURCE, value);
| public void | setMailResource(MailResource[] value)
this.setValue(MAIL_RESOURCE, value);
| public void | setPersistenceManagerFactoryResource(PersistenceManagerFactoryResource[] value)
this.setValue(PERSISTENCE_MANAGER_FACTORY_RESOURCE, value);
| public void | setResourceAdapterConfig(ResourceAdapterConfig[] value)
this.setValue(RESOURCE_ADAPTER_CONFIG, value);
| public int | sizeAdminObjectResource()
return this.size(ADMIN_OBJECT_RESOURCE);
| public int | sizeConnectorConnectionPool()
return this.size(CONNECTOR_CONNECTION_POOL);
| public int | sizeConnectorResource()
return this.size(CONNECTOR_RESOURCE);
| public int | sizeCustomResource()
return this.size(CUSTOM_RESOURCE);
| public int | sizeExternalJndiResource()
return this.size(EXTERNAL_JNDI_RESOURCE);
| public int | sizeJdbcConnectionPool()
return this.size(JDBC_CONNECTION_POOL);
| public int | sizeJdbcResource()
return this.size(JDBC_RESOURCE);
| public int | sizeMailResource()
return this.size(MAIL_RESOURCE);
| public int | sizePersistenceManagerFactoryResource()
return this.size(PERSISTENCE_MANAGER_FACTORY_RESOURCE);
| public int | sizeResourceAdapterConfig()
return this.size(RESOURCE_ADAPTER_CONFIG);
| public void | validate()
|
|