FileDocCategorySizeDatePackage
Resources.javaAPI DocGlassfish v2 API47410Sun Dec 10 15:26:10 GMT 2006com.sun.enterprise.config.serverbeans

Resources

public class Resources extends com.sun.enterprise.config.ConfigBean implements Serializable
This 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 intaddAdminObjectResource(AdminObjectResource value)

		return addAdminObjectResource(value, true);
	
public intaddAdminObjectResource(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 voidaddComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.add(c);
	
public intaddConnectorConnectionPool(ConnectorConnectionPool value)

		return addConnectorConnectionPool(value, true);
	
public intaddConnectorConnectionPool(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 intaddConnectorResource(ConnectorResource value)

		return addConnectorResource(value, true);
	
public intaddConnectorResource(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 intaddCustomResource(CustomResource value)

		return addCustomResource(value, true);
	
public intaddCustomResource(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 intaddExternalJndiResource(ExternalJndiResource value)

		return addExternalJndiResource(value, true);
	
public intaddExternalJndiResource(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 intaddJdbcConnectionPool(JdbcConnectionPool value)

		return addJdbcConnectionPool(value, true);
	
public intaddJdbcConnectionPool(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 intaddJdbcResource(JdbcResource value)

		return addJdbcResource(value, true);
	
public intaddJdbcResource(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 intaddMailResource(MailResource value)

		return addMailResource(value, true);
	
public intaddMailResource(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 intaddPersistenceManagerFactoryResource(PersistenceManagerFactoryResource value)

		return addPersistenceManagerFactoryResource(value, true);
	
public intaddPersistenceManagerFactoryResource(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 intaddResourceAdapterConfig(ResourceAdapterConfig value)

		return addResourceAdapterConfig(value, true);
	
public intaddResourceAdapterConfig(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 voiddump(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.StringdumpBeanNode()

		StringBuffer str = new StringBuffer();
		str.append("Resources\n");	// NOI18N
		this.dump(str, "\n  ");	// NOI18N
		return str.toString();
	
public AdminObjectResourcegetAdminObjectResource(int index)

		return (AdminObjectResource)this.getValue(ADMIN_OBJECT_RESOURCE, index);
	
public AdminObjectResource[]getAdminObjectResource()

		return (AdminObjectResource[])this.getValues(ADMIN_OBJECT_RESOURCE);
	
public AdminObjectResourcegetAdminObjectResourceByJndiName(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 ConnectorConnectionPoolgetConnectorConnectionPool(int index)

		return (ConnectorConnectionPool)this.getValue(CONNECTOR_CONNECTION_POOL, index);
	
public ConnectorConnectionPool[]getConnectorConnectionPool()

		return (ConnectorConnectionPool[])this.getValues(CONNECTOR_CONNECTION_POOL);
	
public ConnectorConnectionPoolgetConnectorConnectionPoolByName(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 ConnectorResourcegetConnectorResource(int index)

		return (ConnectorResource)this.getValue(CONNECTOR_RESOURCE, index);
	
public ConnectorResource[]getConnectorResource()

		return (ConnectorResource[])this.getValues(CONNECTOR_RESOURCE);
	
public ConnectorResourcegetConnectorResourceByJndiName(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 CustomResourcegetCustomResource(int index)

		return (CustomResource)this.getValue(CUSTOM_RESOURCE, index);
	
public CustomResource[]getCustomResource()

		return (CustomResource[])this.getValues(CUSTOM_RESOURCE);
	
public CustomResourcegetCustomResourceByJndiName(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.StringgetDefaultAttributeValue(java.lang.String attr)

		if(attr == null) return null;
		attr = attr.trim();
	return null;
	
public ExternalJndiResourcegetExternalJndiResource(int index)

		return (ExternalJndiResource)this.getValue(EXTERNAL_JNDI_RESOURCE, index);
	
public ExternalJndiResource[]getExternalJndiResource()

		return (ExternalJndiResource[])this.getValues(EXTERNAL_JNDI_RESOURCE);
	
public ExternalJndiResourcegetExternalJndiResourceByJndiName(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 JdbcConnectionPoolgetJdbcConnectionPool(int index)

		return (JdbcConnectionPool)this.getValue(JDBC_CONNECTION_POOL, index);
	
public JdbcConnectionPool[]getJdbcConnectionPool()

		return (JdbcConnectionPool[])this.getValues(JDBC_CONNECTION_POOL);
	
public JdbcConnectionPoolgetJdbcConnectionPoolByName(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 JdbcResourcegetJdbcResource(int index)

		return (JdbcResource)this.getValue(JDBC_RESOURCE, index);
	
public JdbcResource[]getJdbcResource()

		return (JdbcResource[])this.getValues(JDBC_RESOURCE);
	
public JdbcResourcegetJdbcResourceByJndiName(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 MailResourcegetMailResource(int index)

		return (MailResource)this.getValue(MAIL_RESOURCE, index);
	
public MailResource[]getMailResource()

		return (MailResource[])this.getValues(MAIL_RESOURCE);
	
public MailResourcegetMailResourceByJndiName(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 PersistenceManagerFactoryResourcegetPersistenceManagerFactoryResource(int index)

		return (PersistenceManagerFactoryResource)this.getValue(PERSISTENCE_MANAGER_FACTORY_RESOURCE, index);
	
public PersistenceManagerFactoryResource[]getPersistenceManagerFactoryResource()

		return (PersistenceManagerFactoryResource[])this.getValues(PERSISTENCE_MANAGER_FACTORY_RESOURCE);
	
public PersistenceManagerFactoryResourcegetPersistenceManagerFactoryResourceByJndiName(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.StringgetRelativeXPath()
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 ResourceAdapterConfiggetResourceAdapterConfig(int index)

		return (ResourceAdapterConfig)this.getValue(RESOURCE_ADAPTER_CONFIG, index);
	
public ResourceAdapterConfig[]getResourceAdapterConfig()

		return (ResourceAdapterConfig[])this.getValues(RESOURCE_ADAPTER_CONFIG);
	
public ResourceAdapterConfiggetResourceAdapterConfigByResourceAdapterName(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;
		
	
voidinitialize(int options)


	
public AdminObjectResourcenewAdminObjectResource()
Create a new bean using it's default constructor. This does not add it to any bean graph.

		return new AdminObjectResource();
	
public ConnectorConnectionPoolnewConnectorConnectionPool()
Create a new bean using it's default constructor. This does not add it to any bean graph.

		return new ConnectorConnectionPool();
	
public ConnectorResourcenewConnectorResource()
Create a new bean using it's default constructor. This does not add it to any bean graph.

		return new ConnectorResource();
	
public CustomResourcenewCustomResource()
Create a new bean using it's default constructor. This does not add it to any bean graph.

		return new CustomResource();
	
public ExternalJndiResourcenewExternalJndiResource()
Create a new bean using it's default constructor. This does not add it to any bean graph.

		return new ExternalJndiResource();
	
public JdbcConnectionPoolnewJdbcConnectionPool()
Create a new bean using it's default constructor. This does not add it to any bean graph.

		return new JdbcConnectionPool();
	
public JdbcResourcenewJdbcResource()
Create a new bean using it's default constructor. This does not add it to any bean graph.

		return new JdbcResource();
	
public MailResourcenewMailResource()
Create a new bean using it's default constructor. This does not add it to any bean graph.

		return new MailResource();
	
public PersistenceManagerFactoryResourcenewPersistenceManagerFactoryResource()
Create a new bean using it's default constructor. This does not add it to any bean graph.

		return new PersistenceManagerFactoryResource();
	
public ResourceAdapterConfignewResourceAdapterConfig()
Create a new bean using it's default constructor. This does not add it to any bean graph.

		return new ResourceAdapterConfig();
	
public intremoveAdminObjectResource(AdminObjectResource value)

		return this.removeValue(ADMIN_OBJECT_RESOURCE, value);
	
public intremoveAdminObjectResource(AdminObjectResource value, boolean overwrite)

		return this.removeValue(ADMIN_OBJECT_RESOURCE, value, overwrite);
	
public static voidremoveComparator(org.netbeans.modules.schema2beans.BeanComparator c)

		comparators.remove(c);
	
public intremoveConnectorConnectionPool(ConnectorConnectionPool value)

		return this.removeValue(CONNECTOR_CONNECTION_POOL, value);
	
public intremoveConnectorConnectionPool(ConnectorConnectionPool value, boolean overwrite)

		return this.removeValue(CONNECTOR_CONNECTION_POOL, value, overwrite);
	
public intremoveConnectorResource(ConnectorResource value)

		return this.removeValue(CONNECTOR_RESOURCE, value);
	
public intremoveConnectorResource(ConnectorResource value, boolean overwrite)

		return this.removeValue(CONNECTOR_RESOURCE, value, overwrite);
	
public intremoveCustomResource(CustomResource value)

		return this.removeValue(CUSTOM_RESOURCE, value);
	
public intremoveCustomResource(CustomResource value, boolean overwrite)

		return this.removeValue(CUSTOM_RESOURCE, value, overwrite);
	
public intremoveExternalJndiResource(ExternalJndiResource value)

		return this.removeValue(EXTERNAL_JNDI_RESOURCE, value);
	
public intremoveExternalJndiResource(ExternalJndiResource value, boolean overwrite)

		return this.removeValue(EXTERNAL_JNDI_RESOURCE, value, overwrite);
	
public intremoveJdbcConnectionPool(JdbcConnectionPool value)

		return this.removeValue(JDBC_CONNECTION_POOL, value);
	
public intremoveJdbcConnectionPool(JdbcConnectionPool value, boolean overwrite)

		return this.removeValue(JDBC_CONNECTION_POOL, value, overwrite);
	
public intremoveJdbcResource(JdbcResource value)

		return this.removeValue(JDBC_RESOURCE, value);
	
public intremoveJdbcResource(JdbcResource value, boolean overwrite)

		return this.removeValue(JDBC_RESOURCE, value, overwrite);
	
public intremoveMailResource(MailResource value)

		return this.removeValue(MAIL_RESOURCE, value);
	
public intremoveMailResource(MailResource value, boolean overwrite)

		return this.removeValue(MAIL_RESOURCE, value, overwrite);
	
public intremovePersistenceManagerFactoryResource(PersistenceManagerFactoryResource value)

		return this.removeValue(PERSISTENCE_MANAGER_FACTORY_RESOURCE, value);
	
public intremovePersistenceManagerFactoryResource(PersistenceManagerFactoryResource value, boolean overwrite)

		return this.removeValue(PERSISTENCE_MANAGER_FACTORY_RESOURCE, value, overwrite);
	
public intremoveResourceAdapterConfig(ResourceAdapterConfig value)

		return this.removeValue(RESOURCE_ADAPTER_CONFIG, value);
	
public intremoveResourceAdapterConfig(ResourceAdapterConfig value, boolean overwrite)

		return this.removeValue(RESOURCE_ADAPTER_CONFIG, value, overwrite);
	
public voidsetAdminObjectResource(AdminObjectResource[] value)

		this.setValue(ADMIN_OBJECT_RESOURCE, value);
	
public voidsetConnectorConnectionPool(ConnectorConnectionPool[] value)

		this.setValue(CONNECTOR_CONNECTION_POOL, value);
	
public voidsetConnectorResource(ConnectorResource[] value)

		this.setValue(CONNECTOR_RESOURCE, value);
	
public voidsetCustomResource(CustomResource[] value)

		this.setValue(CUSTOM_RESOURCE, value);
	
public voidsetExternalJndiResource(ExternalJndiResource[] value)

		this.setValue(EXTERNAL_JNDI_RESOURCE, value);
	
public voidsetJdbcConnectionPool(JdbcConnectionPool[] value)

		this.setValue(JDBC_CONNECTION_POOL, value);
	
public voidsetJdbcResource(JdbcResource[] value)

		this.setValue(JDBC_RESOURCE, value);
	
public voidsetMailResource(MailResource[] value)

		this.setValue(MAIL_RESOURCE, value);
	
public voidsetPersistenceManagerFactoryResource(PersistenceManagerFactoryResource[] value)

		this.setValue(PERSISTENCE_MANAGER_FACTORY_RESOURCE, value);
	
public voidsetResourceAdapterConfig(ResourceAdapterConfig[] value)

		this.setValue(RESOURCE_ADAPTER_CONFIG, value);
	
public intsizeAdminObjectResource()

		return this.size(ADMIN_OBJECT_RESOURCE);
	
public intsizeConnectorConnectionPool()

		return this.size(CONNECTOR_CONNECTION_POOL);
	
public intsizeConnectorResource()

		return this.size(CONNECTOR_RESOURCE);
	
public intsizeCustomResource()

		return this.size(CUSTOM_RESOURCE);
	
public intsizeExternalJndiResource()

		return this.size(EXTERNAL_JNDI_RESOURCE);
	
public intsizeJdbcConnectionPool()

		return this.size(JDBC_CONNECTION_POOL);
	
public intsizeJdbcResource()

		return this.size(JDBC_RESOURCE);
	
public intsizeMailResource()

		return this.size(MAIL_RESOURCE);
	
public intsizePersistenceManagerFactoryResource()

		return this.size(PERSISTENCE_MANAGER_FACTORY_RESOURCE);
	
public intsizeResourceAdapterConfig()

		return this.size(RESOURCE_ADAPTER_CONFIG);
	
public voidvalidate()