org.jboss.shrinkwrap.descriptor.api.javaee6.DataSourceType Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of shrinkwrap-descriptors-api-javaee Show documentation
Show all versions of shrinkwrap-descriptors-api-javaee Show documentation
Client View of the ShrinkWrap Descriptors Project
The newest version!
package org.jboss.shrinkwrap.descriptor.api.javaee6;
import java.util.ArrayList;
import java.util.List;
import org.jboss.shrinkwrap.descriptor.api.Child;
import org.jboss.shrinkwrap.descriptor.api.javaee6.PropertyType;
import org.jboss.shrinkwrap.descriptor.api.javaee6.IsolationLevelType;
import org.jboss.shrinkwrap.descriptor.api.javaee.*;
/**
* This interface defines the contract for the data-sourceType
xsd type
* @author Ralf Battenfeld
* @author Andrew Lee Rubinger
* @author George Gastaldi
*/
public interface DataSourceType extends Child,
JavaeeDataSourceCommonType,
PropertyType>> {
// --------------------------------------------------------------------------------------------------------||
// ClassName: DataSourceType 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 DataSourceType
*/
public DataSourceType 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 DataSourceType
*/
public DataSourceType removeDescription();
// --------------------------------------------------------------------------------------------------------||
// ClassName: DataSourceType 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 DataSourceType
*/
public DataSourceType 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 DataSourceType
*/
public DataSourceType removeName();
// --------------------------------------------------------------------------------------------------------||
// ClassName: DataSourceType ElementName: xsd:token ElementType : class-name
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the class-name
element
* @param className the value for the element class-name
* @return the current instance of DataSourceType
*/
public DataSourceType className(String className);
/**
* Returns the class-name
element
* @return the node defined for the element class-name
*/
public String getClassName();
/**
* Removes the class-name
element
* @return the current instance of DataSourceType
*/
public DataSourceType removeClassName();
// --------------------------------------------------------------------------------------------------------||
// ClassName: DataSourceType ElementName: xsd:token ElementType : server-name
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the server-name
element
* @param serverName the value for the element server-name
* @return the current instance of DataSourceType
*/
public DataSourceType serverName(String serverName);
/**
* Returns the server-name
element
* @return the node defined for the element server-name
*/
public String getServerName();
/**
* Removes the server-name
element
* @return the current instance of DataSourceType
*/
public DataSourceType removeServerName();
// --------------------------------------------------------------------------------------------------------||
// ClassName: DataSourceType ElementName: xsd:integer ElementType : port-number
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the port-number
element
* @param portNumber the value for the element port-number
* @return the current instance of DataSourceType
*/
public DataSourceType portNumber(Integer portNumber);
/**
* Returns the port-number
element
* @return the node defined for the element port-number
*/
public Integer getPortNumber();
/**
* Removes the port-number
element
* @return the current instance of DataSourceType
*/
public DataSourceType removePortNumber();
// --------------------------------------------------------------------------------------------------------||
// ClassName: DataSourceType ElementName: xsd:token ElementType : database-name
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the database-name
element
* @param databaseName the value for the element database-name
* @return the current instance of DataSourceType
*/
public DataSourceType databaseName(String databaseName);
/**
* Returns the database-name
element
* @return the node defined for the element database-name
*/
public String getDatabaseName();
/**
* Removes the database-name
element
* @return the current instance of DataSourceType
*/
public DataSourceType removeDatabaseName();
// --------------------------------------------------------------------------------------------------------||
// ClassName: DataSourceType ElementName: xsd:token ElementType : url
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the url
element
* @param url the value for the element url
* @return the current instance of DataSourceType
*/
public DataSourceType url(String url);
/**
* Returns the url
element
* @return the node defined for the element url
*/
public String getUrl();
/**
* Removes the url
element
* @return the current instance of DataSourceType
*/
public DataSourceType removeUrl();
// --------------------------------------------------------------------------------------------------------||
// ClassName: DataSourceType ElementName: xsd:token ElementType : user
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the user
element
* @param user the value for the element user
* @return the current instance of DataSourceType
*/
public DataSourceType user(String user);
/**
* Returns the user
element
* @return the node defined for the element user
*/
public String getUser();
/**
* Removes the user
element
* @return the current instance of DataSourceType
*/
public DataSourceType removeUser();
// --------------------------------------------------------------------------------------------------------||
// ClassName: DataSourceType ElementName: xsd:token ElementType : password
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the password
element
* @param password the value for the element password
* @return the current instance of DataSourceType
*/
public DataSourceType password(String password);
/**
* Returns the password
element
* @return the node defined for the element password
*/
public String getPassword();
/**
* Removes the password
element
* @return the current instance of DataSourceType
*/
public DataSourceType removePassword();
// --------------------------------------------------------------------------------------------------------||
// ClassName: DataSourceType 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 DataSourceType removeAllProperty();
// --------------------------------------------------------------------------------------------------------||
// ClassName: DataSourceType ElementName: xsd:integer ElementType : login-timeout
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the login-timeout
element
* @param loginTimeout the value for the element login-timeout
* @return the current instance of DataSourceType
*/
public DataSourceType loginTimeout(Integer loginTimeout);
/**
* Returns the login-timeout
element
* @return the node defined for the element login-timeout
*/
public Integer getLoginTimeout();
/**
* Removes the login-timeout
element
* @return the current instance of DataSourceType
*/
public DataSourceType removeLoginTimeout();
// --------------------------------------------------------------------------------------------------------||
// ClassName: DataSourceType ElementName: xsd:boolean ElementType : transactional
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the transactional
element
* @param transactional the value for the element transactional
* @return the current instance of DataSourceType
*/
public DataSourceType transactional(Boolean transactional);
/**
* Returns the transactional
element
* @return the node defined for the element transactional
*/
public Boolean isTransactional();
/**
* Removes the transactional
element
* @return the current instance of DataSourceType
*/
public DataSourceType removeTransactional();
// --------------------------------------------------------------------------------------------------------||
// ClassName: DataSourceType ElementName: javaee:isolation-levelType ElementType : isolation-level
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: true isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the isolation-level
element
* @param isolationLevel the value for the element isolation-level
* @return the current instance of DataSourceType
*/
public DataSourceType isolationLevel(IsolationLevelType isolationLevel);
/**
* Sets the isolation-level
element
* @param isolationLevel the value for the element isolation-level
* @return the current instance of DataSourceType
*/
public DataSourceType isolationLevel(String isolationLevel);
/**
* Returns the isolation-level
element
* @return the value found for the element isolation-level
*/
public IsolationLevelType getIsolationLevel();
/**
* Returns the isolation-level
element
* @return the value found for the element isolation-level
*/
public String getIsolationLevelAsString();
/**
* Removes the isolation-level
attribute
* @return the current instance of DataSourceType
*/
public DataSourceType removeIsolationLevel();
// --------------------------------------------------------------------------------------------------------||
// ClassName: DataSourceType ElementName: xsd:integer ElementType : initial-pool-size
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the initial-pool-size
element
* @param initialPoolSize the value for the element initial-pool-size
* @return the current instance of DataSourceType
*/
public DataSourceType initialPoolSize(Integer initialPoolSize);
/**
* Returns the initial-pool-size
element
* @return the node defined for the element initial-pool-size
*/
public Integer getInitialPoolSize();
/**
* Removes the initial-pool-size
element
* @return the current instance of DataSourceType
*/
public DataSourceType removeInitialPoolSize();
// --------------------------------------------------------------------------------------------------------||
// ClassName: DataSourceType 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 DataSourceType
*/
public DataSourceType 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 DataSourceType
*/
public DataSourceType removeMaxPoolSize();
// --------------------------------------------------------------------------------------------------------||
// ClassName: DataSourceType 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 DataSourceType
*/
public DataSourceType 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 DataSourceType
*/
public DataSourceType removeMinPoolSize();
// --------------------------------------------------------------------------------------------------------||
// ClassName: DataSourceType ElementName: xsd:integer ElementType : max-idle-time
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the max-idle-time
element
* @param maxIdleTime the value for the element max-idle-time
* @return the current instance of DataSourceType
*/
public DataSourceType maxIdleTime(Integer maxIdleTime);
/**
* Returns the max-idle-time
element
* @return the node defined for the element max-idle-time
*/
public Integer getMaxIdleTime();
/**
* Removes the max-idle-time
element
* @return the current instance of DataSourceType
*/
public DataSourceType removeMaxIdleTime();
// --------------------------------------------------------------------------------------------------------||
// ClassName: DataSourceType ElementName: xsd:integer ElementType : max-statements
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the max-statements
element
* @param maxStatements the value for the element max-statements
* @return the current instance of DataSourceType
*/
public DataSourceType maxStatements(Integer maxStatements);
/**
* Returns the max-statements
element
* @return the node defined for the element max-statements
*/
public Integer getMaxStatements();
/**
* Removes the max-statements
element
* @return the current instance of DataSourceType
*/
public DataSourceType removeMaxStatements();
// --------------------------------------------------------------------------------------------------------||
// ClassName: DataSourceType 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 DataSourceType
*/
public DataSourceType 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 DataSourceType
*/
public DataSourceType removeId();
}