org.jboss.shrinkwrap.descriptor.api.javaee7.ConnectionFactoryResourceType Maven / Gradle / Ivy
package org.jboss.shrinkwrap.descriptor.api.javaee7;
import java.util.ArrayList;
import java.util.List;
import org.jboss.shrinkwrap.descriptor.api.Child;
import org.jboss.shrinkwrap.descriptor.api.javaee7.TransactionSupportType;
import org.jboss.shrinkwrap.descriptor.api.javaee7.PropertyType;
import org.jboss.shrinkwrap.descriptor.api.javaee.*;
/**
* This interface defines the contract for the connection-factory-resourceType
xsd type
* @author Ralf Battenfeld
* @author Andrew Lee Rubinger
*/
public interface ConnectionFactoryResourceType extends Child,
JavaeeConnectionFactoryResourceCommonType,
PropertyType>> {
// --------------------------------------------------------------------------------------------------------||
// ClassName: ConnectionFactoryResourceType ElementName: xsd:string ElementType : description
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the description
element
* @param description the value for the element description
* @return the current instance of ConnectionFactoryResourceType
*/
public ConnectionFactoryResourceType description(String description);
/**
* Returns the description
element
* @return the node defined for the element description
*/
public String getDescription();
/**
* Removes the description
element
* @return the current instance of ConnectionFactoryResourceType
*/
public ConnectionFactoryResourceType removeDescription();
// --------------------------------------------------------------------------------------------------------||
// ClassName: ConnectionFactoryResourceType ElementName: xsd:token ElementType : name
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the name
element
* @param name the value for the element name
* @return the current instance of ConnectionFactoryResourceType
*/
public ConnectionFactoryResourceType name(String name);
/**
* Returns the name
element
* @return the node defined for the element name
*/
public String getName();
/**
* Removes the name
element
* @return the current instance of ConnectionFactoryResourceType
*/
public ConnectionFactoryResourceType removeName();
// --------------------------------------------------------------------------------------------------------||
// ClassName: ConnectionFactoryResourceType ElementName: xsd:token ElementType : interface-name
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the interface-name
element
* @param interfaceName the value for the element interface-name
* @return the current instance of ConnectionFactoryResourceType
*/
public ConnectionFactoryResourceType interfaceName(String interfaceName);
/**
* Returns the interface-name
element
* @return the node defined for the element interface-name
*/
public String getInterfaceName();
/**
* Removes the interface-name
element
* @return the current instance of ConnectionFactoryResourceType
*/
public ConnectionFactoryResourceType removeInterfaceName();
// --------------------------------------------------------------------------------------------------------||
// ClassName: ConnectionFactoryResourceType ElementName: xsd:token ElementType : resource-adapter
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the resource-adapter
element
* @param resourceAdapter the value for the element resource-adapter
* @return the current instance of ConnectionFactoryResourceType
*/
public ConnectionFactoryResourceType resourceAdapter(String resourceAdapter);
/**
* Returns the resource-adapter
element
* @return the node defined for the element resource-adapter
*/
public String getResourceAdapter();
/**
* Removes the resource-adapter
element
* @return the current instance of ConnectionFactoryResourceType
*/
public ConnectionFactoryResourceType removeResourceAdapter();
// --------------------------------------------------------------------------------------------------------||
// ClassName: ConnectionFactoryResourceType ElementName: xsd:integer ElementType : max-pool-size
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the max-pool-size
element
* @param maxPoolSize the value for the element max-pool-size
* @return the current instance of ConnectionFactoryResourceType
*/
public ConnectionFactoryResourceType maxPoolSize(Integer maxPoolSize);
/**
* Returns the max-pool-size
element
* @return the node defined for the element max-pool-size
*/
public Integer getMaxPoolSize();
/**
* Removes the max-pool-size
element
* @return the current instance of ConnectionFactoryResourceType
*/
public ConnectionFactoryResourceType removeMaxPoolSize();
// --------------------------------------------------------------------------------------------------------||
// ClassName: ConnectionFactoryResourceType ElementName: xsd:integer ElementType : min-pool-size
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the min-pool-size
element
* @param minPoolSize the value for the element min-pool-size
* @return the current instance of ConnectionFactoryResourceType
*/
public ConnectionFactoryResourceType minPoolSize(Integer minPoolSize);
/**
* Returns the min-pool-size
element
* @return the node defined for the element min-pool-size
*/
public Integer getMinPoolSize();
/**
* Removes the min-pool-size
element
* @return the current instance of ConnectionFactoryResourceType
*/
public ConnectionFactoryResourceType removeMinPoolSize();
// --------------------------------------------------------------------------------------------------------||
// ClassName: ConnectionFactoryResourceType ElementName: javaee:transaction-supportType ElementType : transaction-support
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: true isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the transaction-support
element
* @param transactionSupport the value for the element transaction-support
* @return the current instance of ConnectionFactoryResourceType
*/
public ConnectionFactoryResourceType transactionSupport(TransactionSupportType transactionSupport);
/**
* Sets the transaction-support
element
* @param transactionSupport the value for the element transaction-support
* @return the current instance of ConnectionFactoryResourceType
*/
public ConnectionFactoryResourceType transactionSupport(String transactionSupport);
/**
* Returns the transaction-support
element
* @return the value found for the element transaction-support
*/
public TransactionSupportType getTransactionSupport();
/**
* Returns the transaction-support
element
* @return the value found for the element transaction-support
*/
public String getTransactionSupportAsString();
/**
* Removes the transaction-support
attribute
* @return the current instance of ConnectionFactoryResourceType
*/
public ConnectionFactoryResourceType removeTransactionSupport();
// --------------------------------------------------------------------------------------------------------||
// ClassName: ConnectionFactoryResourceType ElementName: javaee:propertyType ElementType : property
// MaxOccurs: -unbounded isGeneric: true isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new property
element will be created and returned.
* Otherwise, the first existing property
element will be returned.
* @return the instance defined for the element property
*/
public PropertyType> getOrCreateProperty();
/**
* Creates a new property
element
* @return the new created instance of PropertyType>
*/
public PropertyType> createProperty();
/**
* Returns all property
elements
* @return list of property
*/
public List>> getAllProperty();
/**
* Removes all property
elements
* @return the current instance of PropertyType>
*/
public ConnectionFactoryResourceType removeAllProperty();
// --------------------------------------------------------------------------------------------------------||
// ClassName: ConnectionFactoryResourceType ElementName: xsd:ID ElementType : id
// MaxOccurs: - isGeneric: true isAttribute: true isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the id
attribute
* @param id the value for the attribute id
* @return the current instance of ConnectionFactoryResourceType
*/
public ConnectionFactoryResourceType id(String id);
/**
* Returns the id
attribute
* @return the value defined for the attribute id
*/
public String getId();
/**
* Removes the id
attribute
* @return the current instance of ConnectionFactoryResourceType
*/
public ConnectionFactoryResourceType removeId();
}