Class DataSourceTypeImpl<T>
- java.lang.Object
-
- org.jboss.shrinkwrap.descriptor.impl.javaee7.DataSourceTypeImpl<T>
-
- All Implemented Interfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>,DataSourceType<T>
public class DataSourceTypeImpl<T> extends Object implements org.jboss.shrinkwrap.descriptor.api.Child<T>, DataSourceType<T>
This class implements thedata-sourceTypexsd type
-
-
Constructor Summary
Constructors Constructor Description DataSourceTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)DataSourceTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node, org.jboss.shrinkwrap.descriptor.spi.node.Node childNode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataSourceType<T>className(String className)Sets theclass-nameelementPropertyType<DataSourceType<T>>createProperty()Creates a newpropertyelementDataSourceType<T>databaseName(String databaseName)Sets thedatabase-nameelementDataSourceType<T>description(String description)Sets thedescriptionelementList<PropertyType<DataSourceType<T>>>getAllProperty()Returns allpropertyelementsStringgetClassName()Returns theclass-nameelementStringgetDatabaseName()Returns thedatabase-nameelementStringgetDescription()Returns thedescriptionelementStringgetId()Returns theidattributeIntegergetInitialPoolSize()Returns theinitial-pool-sizeelementIsolationLevelTypegetIsolationLevel()Returns theisolation-levelelementStringgetIsolationLevelAsString()Returns theisolation-levelelementIntegergetLoginTimeout()Returns thelogin-timeoutelementIntegergetMaxIdleTime()Returns themax-idle-timeelementIntegergetMaxPoolSize()Returns themax-pool-sizeelementIntegergetMaxStatements()Returns themax-statementselementIntegergetMinPoolSize()Returns themin-pool-sizeelementStringgetName()Returns thenameelementPropertyType<DataSourceType<T>>getOrCreateProperty()If not already created, a newpropertyelement will be created and returned.StringgetPassword()Returns thepasswordelementIntegergetPortNumber()Returns theport-numberelementStringgetServerName()Returns theserver-nameelementStringgetUrl()Returns theurlelementStringgetUser()Returns theuserelementDataSourceType<T>id(String id)Sets theidattributeDataSourceType<T>initialPoolSize(Integer initialPoolSize)Sets theinitial-pool-sizeelementDataSourceType<T>isolationLevel(String isolationLevel)Sets theisolation-levelelementDataSourceType<T>isolationLevel(IsolationLevelType isolationLevel)Sets theisolation-levelelementBooleanisTransactional()Returns thetransactionalelementDataSourceType<T>loginTimeout(Integer loginTimeout)Sets thelogin-timeoutelementDataSourceType<T>maxIdleTime(Integer maxIdleTime)Sets themax-idle-timeelementDataSourceType<T>maxPoolSize(Integer maxPoolSize)Sets themax-pool-sizeelementDataSourceType<T>maxStatements(Integer maxStatements)Sets themax-statementselementDataSourceType<T>minPoolSize(Integer minPoolSize)Sets themin-pool-sizeelementDataSourceType<T>name(String name)Sets thenameelementDataSourceType<T>password(String password)Sets thepasswordelementDataSourceType<T>portNumber(Integer portNumber)Sets theport-numberelementDataSourceType<T>removeAllProperty()Removes allpropertyelementsDataSourceType<T>removeClassName()Removes theclass-nameelementDataSourceType<T>removeDatabaseName()Removes thedatabase-nameelementDataSourceType<T>removeDescription()Removes thedescriptionelementDataSourceType<T>removeId()Removes theidattributeDataSourceType<T>removeInitialPoolSize()Removes theinitial-pool-sizeelementDataSourceType<T>removeIsolationLevel()Removes theisolation-levelattributeDataSourceType<T>removeLoginTimeout()Removes thelogin-timeoutelementDataSourceType<T>removeMaxIdleTime()Removes themax-idle-timeelementDataSourceType<T>removeMaxPoolSize()Removes themax-pool-sizeelementDataSourceType<T>removeMaxStatements()Removes themax-statementselementDataSourceType<T>removeMinPoolSize()Removes themin-pool-sizeelementDataSourceType<T>removeName()Removes thenameelementDataSourceType<T>removePassword()Removes thepasswordelementDataSourceType<T>removePortNumber()Removes theport-numberelementDataSourceType<T>removeServerName()Removes theserver-nameelementDataSourceType<T>removeTransactional()Removes thetransactionalelementDataSourceType<T>removeUrl()Removes theurlelementDataSourceType<T>removeUser()Removes theuserelementDataSourceType<T>serverName(String serverName)Sets theserver-nameelementDataSourceType<T>transactional(Boolean transactional)Sets thetransactionalelementTup()DataSourceType<T>url(String url)Sets theurlelementDataSourceType<T>user(String user)Sets theuserelement
-
-
-
Method Detail
-
description
public DataSourceType<T> description(String description)
Sets thedescriptionelement- Specified by:
descriptionin interfaceDataSourceType<T>- Parameters:
description- the value for the elementdescription- Returns:
- the current instance of
DataSourceType
-
getDescription
public String getDescription()
Returns thedescriptionelement- Specified by:
getDescriptionin interfaceDataSourceType<T>- Returns:
- the node defined for the element
description
-
removeDescription
public DataSourceType<T> removeDescription()
Removes thedescriptionelement- Specified by:
removeDescriptionin interfaceDataSourceType<T>- Returns:
- the current instance of
DataSourceType
-
name
public DataSourceType<T> name(String name)
Sets thenameelement- Specified by:
namein interfaceDataSourceType<T>- Parameters:
name- the value for the elementname- Returns:
- the current instance of
DataSourceType
-
getName
public String getName()
Returns thenameelement- Specified by:
getNamein interfaceDataSourceType<T>- Returns:
- the node defined for the element
name
-
removeName
public DataSourceType<T> removeName()
Removes thenameelement- Specified by:
removeNamein interfaceDataSourceType<T>- Returns:
- the current instance of
DataSourceType
-
className
public DataSourceType<T> className(String className)
Sets theclass-nameelement- Specified by:
classNamein interfaceDataSourceType<T>- Parameters:
className- the value for the elementclass-name- Returns:
- the current instance of
DataSourceType
-
getClassName
public String getClassName()
Returns theclass-nameelement- Specified by:
getClassNamein interfaceDataSourceType<T>- Returns:
- the node defined for the element
class-name
-
removeClassName
public DataSourceType<T> removeClassName()
Removes theclass-nameelement- Specified by:
removeClassNamein interfaceDataSourceType<T>- Returns:
- the current instance of
DataSourceType
-
serverName
public DataSourceType<T> serverName(String serverName)
Sets theserver-nameelement- Specified by:
serverNamein interfaceDataSourceType<T>- Parameters:
serverName- the value for the elementserver-name- Returns:
- the current instance of
DataSourceType
-
getServerName
public String getServerName()
Returns theserver-nameelement- Specified by:
getServerNamein interfaceDataSourceType<T>- Returns:
- the node defined for the element
server-name
-
removeServerName
public DataSourceType<T> removeServerName()
Removes theserver-nameelement- Specified by:
removeServerNamein interfaceDataSourceType<T>- Returns:
- the current instance of
DataSourceType
-
portNumber
public DataSourceType<T> portNumber(Integer portNumber)
Sets theport-numberelement- Specified by:
portNumberin interfaceDataSourceType<T>- Parameters:
portNumber- the value for the elementport-number- Returns:
- the current instance of
DataSourceType
-
getPortNumber
public Integer getPortNumber()
Returns theport-numberelement- Specified by:
getPortNumberin interfaceDataSourceType<T>- Returns:
- the node defined for the element
port-number
-
removePortNumber
public DataSourceType<T> removePortNumber()
Removes theport-numberelement- Specified by:
removePortNumberin interfaceDataSourceType<T>- Returns:
- the current instance of
DataSourceType
-
databaseName
public DataSourceType<T> databaseName(String databaseName)
Sets thedatabase-nameelement- Specified by:
databaseNamein interfaceDataSourceType<T>- Parameters:
databaseName- the value for the elementdatabase-name- Returns:
- the current instance of
DataSourceType
-
getDatabaseName
public String getDatabaseName()
Returns thedatabase-nameelement- Specified by:
getDatabaseNamein interfaceDataSourceType<T>- Returns:
- the node defined for the element
database-name
-
removeDatabaseName
public DataSourceType<T> removeDatabaseName()
Removes thedatabase-nameelement- Specified by:
removeDatabaseNamein interfaceDataSourceType<T>- Returns:
- the current instance of
DataSourceType
-
url
public DataSourceType<T> url(String url)
Sets theurlelement- Specified by:
urlin interfaceDataSourceType<T>- Parameters:
url- the value for the elementurl- Returns:
- the current instance of
DataSourceType
-
getUrl
public String getUrl()
Returns theurlelement- Specified by:
getUrlin interfaceDataSourceType<T>- Returns:
- the node defined for the element
url
-
removeUrl
public DataSourceType<T> removeUrl()
Removes theurlelement- Specified by:
removeUrlin interfaceDataSourceType<T>- Returns:
- the current instance of
DataSourceType
-
user
public DataSourceType<T> user(String user)
Sets theuserelement- Specified by:
userin interfaceDataSourceType<T>- Parameters:
user- the value for the elementuser- Returns:
- the current instance of
DataSourceType
-
getUser
public String getUser()
Returns theuserelement- Specified by:
getUserin interfaceDataSourceType<T>- Returns:
- the node defined for the element
user
-
removeUser
public DataSourceType<T> removeUser()
Removes theuserelement- Specified by:
removeUserin interfaceDataSourceType<T>- Returns:
- the current instance of
DataSourceType
-
password
public DataSourceType<T> password(String password)
Sets thepasswordelement- Specified by:
passwordin interfaceDataSourceType<T>- Parameters:
password- the value for the elementpassword- Returns:
- the current instance of
DataSourceType
-
getPassword
public String getPassword()
Returns thepasswordelement- Specified by:
getPasswordin interfaceDataSourceType<T>- Returns:
- the node defined for the element
password
-
removePassword
public DataSourceType<T> removePassword()
Removes thepasswordelement- Specified by:
removePasswordin interfaceDataSourceType<T>- Returns:
- the current instance of
DataSourceType
-
getOrCreateProperty
public PropertyType<DataSourceType<T>> getOrCreateProperty()
If not already created, a newpropertyelement will be created and returned. Otherwise, the first existingpropertyelement will be returned.- Specified by:
getOrCreatePropertyin interfaceDataSourceType<T>- Returns:
- the instance defined for the element
property
-
createProperty
public PropertyType<DataSourceType<T>> createProperty()
Creates a newpropertyelement- Specified by:
createPropertyin interfaceDataSourceType<T>- Returns:
- the new created instance of
PropertyType>
-
getAllProperty
public List<PropertyType<DataSourceType<T>>> getAllProperty()
Returns allpropertyelements- Specified by:
getAllPropertyin interfaceDataSourceType<T>- Returns:
- list of
property
-
removeAllProperty
public DataSourceType<T> removeAllProperty()
Removes allpropertyelements- Specified by:
removeAllPropertyin interfaceDataSourceType<T>- Returns:
- the current instance of
PropertyType>
-
loginTimeout
public DataSourceType<T> loginTimeout(Integer loginTimeout)
Sets thelogin-timeoutelement- Specified by:
loginTimeoutin interfaceDataSourceType<T>- Parameters:
loginTimeout- the value for the elementlogin-timeout- Returns:
- the current instance of
DataSourceType
-
getLoginTimeout
public Integer getLoginTimeout()
Returns thelogin-timeoutelement- Specified by:
getLoginTimeoutin interfaceDataSourceType<T>- Returns:
- the node defined for the element
login-timeout
-
removeLoginTimeout
public DataSourceType<T> removeLoginTimeout()
Removes thelogin-timeoutelement- Specified by:
removeLoginTimeoutin interfaceDataSourceType<T>- Returns:
- the current instance of
DataSourceType
-
transactional
public DataSourceType<T> transactional(Boolean transactional)
Sets thetransactionalelement- Specified by:
transactionalin interfaceDataSourceType<T>- Parameters:
transactional- the value for the elementtransactional- Returns:
- the current instance of
DataSourceType
-
isTransactional
public Boolean isTransactional()
Returns thetransactionalelement- Specified by:
isTransactionalin interfaceDataSourceType<T>- Returns:
- the node defined for the element
transactional
-
removeTransactional
public DataSourceType<T> removeTransactional()
Removes thetransactionalelement- Specified by:
removeTransactionalin interfaceDataSourceType<T>- Returns:
- the current instance of
DataSourceType
-
isolationLevel
public DataSourceType<T> isolationLevel(IsolationLevelType isolationLevel)
Sets theisolation-levelelement- Specified by:
isolationLevelin interfaceDataSourceType<T>- Parameters:
isolationLevel- the value for the elementisolation-level- Returns:
- the current instance of
DataSourceType
-
isolationLevel
public DataSourceType<T> isolationLevel(String isolationLevel)
Sets theisolation-levelelement- Specified by:
isolationLevelin interfaceDataSourceType<T>- Parameters:
isolationLevel- the value for the elementisolation-level- Returns:
- the current instance of
DataSourceType
-
getIsolationLevel
public IsolationLevelType getIsolationLevel()
Returns theisolation-levelelement- Specified by:
getIsolationLevelin interfaceDataSourceType<T>- Returns:
- the value found for the element
isolation-level
-
getIsolationLevelAsString
public String getIsolationLevelAsString()
Returns theisolation-levelelement- Specified by:
getIsolationLevelAsStringin interfaceDataSourceType<T>- Returns:
- the value found for the element
isolation-level
-
removeIsolationLevel
public DataSourceType<T> removeIsolationLevel()
Removes theisolation-levelattribute- Specified by:
removeIsolationLevelin interfaceDataSourceType<T>- Returns:
- the current instance of
DataSourceType
-
initialPoolSize
public DataSourceType<T> initialPoolSize(Integer initialPoolSize)
Sets theinitial-pool-sizeelement- Specified by:
initialPoolSizein interfaceDataSourceType<T>- Parameters:
initialPoolSize- the value for the elementinitial-pool-size- Returns:
- the current instance of
DataSourceType
-
getInitialPoolSize
public Integer getInitialPoolSize()
Returns theinitial-pool-sizeelement- Specified by:
getInitialPoolSizein interfaceDataSourceType<T>- Returns:
- the node defined for the element
initial-pool-size
-
removeInitialPoolSize
public DataSourceType<T> removeInitialPoolSize()
Removes theinitial-pool-sizeelement- Specified by:
removeInitialPoolSizein interfaceDataSourceType<T>- Returns:
- the current instance of
DataSourceType
-
maxPoolSize
public DataSourceType<T> maxPoolSize(Integer maxPoolSize)
Sets themax-pool-sizeelement- Specified by:
maxPoolSizein interfaceDataSourceType<T>- Parameters:
maxPoolSize- the value for the elementmax-pool-size- Returns:
- the current instance of
DataSourceType
-
getMaxPoolSize
public Integer getMaxPoolSize()
Returns themax-pool-sizeelement- Specified by:
getMaxPoolSizein interfaceDataSourceType<T>- Returns:
- the node defined for the element
max-pool-size
-
removeMaxPoolSize
public DataSourceType<T> removeMaxPoolSize()
Removes themax-pool-sizeelement- Specified by:
removeMaxPoolSizein interfaceDataSourceType<T>- Returns:
- the current instance of
DataSourceType
-
minPoolSize
public DataSourceType<T> minPoolSize(Integer minPoolSize)
Sets themin-pool-sizeelement- Specified by:
minPoolSizein interfaceDataSourceType<T>- Parameters:
minPoolSize- the value for the elementmin-pool-size- Returns:
- the current instance of
DataSourceType
-
getMinPoolSize
public Integer getMinPoolSize()
Returns themin-pool-sizeelement- Specified by:
getMinPoolSizein interfaceDataSourceType<T>- Returns:
- the node defined for the element
min-pool-size
-
removeMinPoolSize
public DataSourceType<T> removeMinPoolSize()
Removes themin-pool-sizeelement- Specified by:
removeMinPoolSizein interfaceDataSourceType<T>- Returns:
- the current instance of
DataSourceType
-
maxIdleTime
public DataSourceType<T> maxIdleTime(Integer maxIdleTime)
Sets themax-idle-timeelement- Specified by:
maxIdleTimein interfaceDataSourceType<T>- Parameters:
maxIdleTime- the value for the elementmax-idle-time- Returns:
- the current instance of
DataSourceType
-
getMaxIdleTime
public Integer getMaxIdleTime()
Returns themax-idle-timeelement- Specified by:
getMaxIdleTimein interfaceDataSourceType<T>- Returns:
- the node defined for the element
max-idle-time
-
removeMaxIdleTime
public DataSourceType<T> removeMaxIdleTime()
Removes themax-idle-timeelement- Specified by:
removeMaxIdleTimein interfaceDataSourceType<T>- Returns:
- the current instance of
DataSourceType
-
maxStatements
public DataSourceType<T> maxStatements(Integer maxStatements)
Sets themax-statementselement- Specified by:
maxStatementsin interfaceDataSourceType<T>- Parameters:
maxStatements- the value for the elementmax-statements- Returns:
- the current instance of
DataSourceType
-
getMaxStatements
public Integer getMaxStatements()
Returns themax-statementselement- Specified by:
getMaxStatementsin interfaceDataSourceType<T>- Returns:
- the node defined for the element
max-statements
-
removeMaxStatements
public DataSourceType<T> removeMaxStatements()
Removes themax-statementselement- Specified by:
removeMaxStatementsin interfaceDataSourceType<T>- Returns:
- the current instance of
DataSourceType
-
id
public DataSourceType<T> id(String id)
Sets theidattribute- Specified by:
idin interfaceDataSourceType<T>- Parameters:
id- the value for the attributeid- Returns:
- the current instance of
DataSourceType
-
getId
public String getId()
Returns theidattribute- Specified by:
getIdin interfaceDataSourceType<T>- Returns:
- the value defined for the attribute
id
-
removeId
public DataSourceType<T> removeId()
Removes theidattribute- Specified by:
removeIdin interfaceDataSourceType<T>- Returns:
- the current instance of
DataSourceType
-
-