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 the
data-sourceType xsd type-
Constructor Summary
ConstructorsConstructorDescriptionDataSourceTypeImpl(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
Modifier and TypeMethodDescriptionSets theclass-nameelementCreates a newpropertyelementdatabaseName(String databaseName) Sets thedatabase-nameelementdescription(String description) Sets thedescriptionelementReturns allpropertyelementsReturns theclass-nameelementReturns thedatabase-nameelementReturns thedescriptionelementgetId()Returns theidattributeReturns theinitial-pool-sizeelementReturns theisolation-levelelementReturns theisolation-levelelementReturns thelogin-timeoutelementReturns themax-idle-timeelementReturns themax-pool-sizeelementReturns themax-statementselementReturns themin-pool-sizeelementgetName()Returns thenameelementIf not already created, a newpropertyelement will be created and returned.Returns thepasswordelementReturns theport-numberelementReturns theserver-nameelementgetUrl()Returns theurlelementgetUser()Returns theuserelementSets theidattributeinitialPoolSize(Integer initialPoolSize) Sets theinitial-pool-sizeelementisolationLevel(String isolationLevel) Sets theisolation-levelelementisolationLevel(IsolationLevelType isolationLevel) Sets theisolation-levelelementReturns thetransactionalelementloginTimeout(Integer loginTimeout) Sets thelogin-timeoutelementmaxIdleTime(Integer maxIdleTime) Sets themax-idle-timeelementmaxPoolSize(Integer maxPoolSize) Sets themax-pool-sizeelementmaxStatements(Integer maxStatements) Sets themax-statementselementminPoolSize(Integer minPoolSize) Sets themin-pool-sizeelementSets thenameelementSets thepasswordelementportNumber(Integer portNumber) Sets theport-numberelementRemoves allpropertyelementsRemoves theclass-nameelementRemoves thedatabase-nameelementRemoves thedescriptionelementremoveId()Removes theidattributeRemoves theinitial-pool-sizeelementRemoves theisolation-levelattributeRemoves thelogin-timeoutelementRemoves themax-idle-timeelementRemoves themax-pool-sizeelementRemoves themax-statementselementRemoves themin-pool-sizeelementRemoves thenameelementRemoves thepasswordelementRemoves theport-numberelementRemoves theserver-nameelementRemoves thetransactionalelementRemoves theurlelementRemoves theuserelementserverName(String serverName) Sets theserver-nameelementtransactional(Boolean transactional) Sets thetransactionalelementup()Sets theurlelementSets theuserelement
-
Constructor Details
-
DataSourceTypeImpl
-
DataSourceTypeImpl
-
-
Method Details
-
up
- Specified by:
upin interfaceorg.jboss.shrinkwrap.descriptor.api.Child<T>
-
description
Sets thedescriptionelement- Specified by:
descriptionin interfaceDataSourceType<T>- Parameters:
description- the value for the elementdescription- Returns:
- the current instance of
DataSourceType
-
getDescription
Returns thedescriptionelement- Specified by:
getDescriptionin interfaceDataSourceType<T>- Returns:
- the node defined for the element
description
-
removeDescription
Removes thedescriptionelement- Specified by:
removeDescriptionin interfaceDataSourceType<T>- Returns:
- the current instance of
DataSourceType
-
name
Sets thenameelement- Specified by:
namein interfaceDataSourceType<T>- Parameters:
name- the value for the elementname- Returns:
- the current instance of
DataSourceType
-
getName
Returns thenameelement- Specified by:
getNamein interfaceDataSourceType<T>- Returns:
- the node defined for the element
name
-
removeName
Removes thenameelement- Specified by:
removeNamein interfaceDataSourceType<T>- Returns:
- the current instance of
DataSourceType
-
className
Sets theclass-nameelement- Specified by:
classNamein interfaceDataSourceType<T>- Parameters:
className- the value for the elementclass-name- Returns:
- the current instance of
DataSourceType
-
getClassName
Returns theclass-nameelement- Specified by:
getClassNamein interfaceDataSourceType<T>- Returns:
- the node defined for the element
class-name
-
removeClassName
Removes theclass-nameelement- Specified by:
removeClassNamein interfaceDataSourceType<T>- Returns:
- the current instance of
DataSourceType
-
serverName
Sets theserver-nameelement- Specified by:
serverNamein interfaceDataSourceType<T>- Parameters:
serverName- the value for the elementserver-name- Returns:
- the current instance of
DataSourceType
-
getServerName
Returns theserver-nameelement- Specified by:
getServerNamein interfaceDataSourceType<T>- Returns:
- the node defined for the element
server-name
-
removeServerName
Removes theserver-nameelement- Specified by:
removeServerNamein interfaceDataSourceType<T>- Returns:
- the current instance of
DataSourceType
-
portNumber
Sets theport-numberelement- Specified by:
portNumberin interfaceDataSourceType<T>- Parameters:
portNumber- the value for the elementport-number- Returns:
- the current instance of
DataSourceType
-
getPortNumber
Returns theport-numberelement- Specified by:
getPortNumberin interfaceDataSourceType<T>- Returns:
- the node defined for the element
port-number
-
removePortNumber
Removes theport-numberelement- Specified by:
removePortNumberin interfaceDataSourceType<T>- Returns:
- the current instance of
DataSourceType
-
databaseName
Sets thedatabase-nameelement- Specified by:
databaseNamein interfaceDataSourceType<T>- Parameters:
databaseName- the value for the elementdatabase-name- Returns:
- the current instance of
DataSourceType
-
getDatabaseName
Returns thedatabase-nameelement- Specified by:
getDatabaseNamein interfaceDataSourceType<T>- Returns:
- the node defined for the element
database-name
-
removeDatabaseName
Removes thedatabase-nameelement- Specified by:
removeDatabaseNamein interfaceDataSourceType<T>- Returns:
- the current instance of
DataSourceType
-
url
Sets theurlelement- Specified by:
urlin interfaceDataSourceType<T>- Parameters:
url- the value for the elementurl- Returns:
- the current instance of
DataSourceType
-
getUrl
Returns theurlelement- Specified by:
getUrlin interfaceDataSourceType<T>- Returns:
- the node defined for the element
url
-
removeUrl
Removes theurlelement- Specified by:
removeUrlin interfaceDataSourceType<T>- Returns:
- the current instance of
DataSourceType
-
user
Sets theuserelement- Specified by:
userin interfaceDataSourceType<T>- Parameters:
user- the value for the elementuser- Returns:
- the current instance of
DataSourceType
-
getUser
Returns theuserelement- Specified by:
getUserin interfaceDataSourceType<T>- Returns:
- the node defined for the element
user
-
removeUser
Removes theuserelement- Specified by:
removeUserin interfaceDataSourceType<T>- Returns:
- the current instance of
DataSourceType
-
password
Sets thepasswordelement- Specified by:
passwordin interfaceDataSourceType<T>- Parameters:
password- the value for the elementpassword- Returns:
- the current instance of
DataSourceType
-
getPassword
Returns thepasswordelement- Specified by:
getPasswordin interfaceDataSourceType<T>- Returns:
- the node defined for the element
password
-
removePassword
Removes thepasswordelement- Specified by:
removePasswordin interfaceDataSourceType<T>- Returns:
- the current instance of
DataSourceType
-
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
Creates a newpropertyelement- Specified by:
createPropertyin interfaceDataSourceType<T>- Returns:
- the new created instance of
PropertyType<DataSourceType>
-
getAllProperty
Returns allpropertyelements- Specified by:
getAllPropertyin interfaceDataSourceType<T>- Returns:
- list of
property
-
removeAllProperty
Removes allpropertyelements- Specified by:
removeAllPropertyin interfaceDataSourceType<T>- Returns:
- the current instance of
PropertyType<DataSourceType>
-
loginTimeout
Sets thelogin-timeoutelement- Specified by:
loginTimeoutin interfaceDataSourceType<T>- Parameters:
loginTimeout- the value for the elementlogin-timeout- Returns:
- the current instance of
DataSourceType
-
getLoginTimeout
Returns thelogin-timeoutelement- Specified by:
getLoginTimeoutin interfaceDataSourceType<T>- Returns:
- the node defined for the element
login-timeout
-
removeLoginTimeout
Removes thelogin-timeoutelement- Specified by:
removeLoginTimeoutin interfaceDataSourceType<T>- Returns:
- the current instance of
DataSourceType
-
transactional
Sets thetransactionalelement- Specified by:
transactionalin interfaceDataSourceType<T>- Parameters:
transactional- the value for the elementtransactional- Returns:
- the current instance of
DataSourceType
-
isTransactional
Returns thetransactionalelement- Specified by:
isTransactionalin interfaceDataSourceType<T>- Returns:
- the node defined for the element
transactional
-
removeTransactional
Removes thetransactionalelement- Specified by:
removeTransactionalin interfaceDataSourceType<T>- Returns:
- the current instance of
DataSourceType
-
isolationLevel
Sets theisolation-levelelement- Specified by:
isolationLevelin interfaceDataSourceType<T>- Parameters:
isolationLevel- the value for the elementisolation-level- Returns:
- the current instance of
DataSourceType
-
isolationLevel
Sets theisolation-levelelement- Specified by:
isolationLevelin interfaceDataSourceType<T>- Parameters:
isolationLevel- the value for the elementisolation-level- Returns:
- the current instance of
DataSourceType
-
getIsolationLevel
Returns theisolation-levelelement- Specified by:
getIsolationLevelin interfaceDataSourceType<T>- Returns:
- the value found for the element
isolation-level
-
getIsolationLevelAsString
Returns theisolation-levelelement- Specified by:
getIsolationLevelAsStringin interfaceDataSourceType<T>- Returns:
- the value found for the element
isolation-level
-
removeIsolationLevel
Removes theisolation-levelattribute- Specified by:
removeIsolationLevelin interfaceDataSourceType<T>- Returns:
- the current instance of
DataSourceType
-
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
Returns theinitial-pool-sizeelement- Specified by:
getInitialPoolSizein interfaceDataSourceType<T>- Returns:
- the node defined for the element
initial-pool-size
-
removeInitialPoolSize
Removes theinitial-pool-sizeelement- Specified by:
removeInitialPoolSizein interfaceDataSourceType<T>- Returns:
- the current instance of
DataSourceType
-
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
Returns themax-pool-sizeelement- Specified by:
getMaxPoolSizein interfaceDataSourceType<T>- Returns:
- the node defined for the element
max-pool-size
-
removeMaxPoolSize
Removes themax-pool-sizeelement- Specified by:
removeMaxPoolSizein interfaceDataSourceType<T>- Returns:
- the current instance of
DataSourceType
-
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
Returns themin-pool-sizeelement- Specified by:
getMinPoolSizein interfaceDataSourceType<T>- Returns:
- the node defined for the element
min-pool-size
-
removeMinPoolSize
Removes themin-pool-sizeelement- Specified by:
removeMinPoolSizein interfaceDataSourceType<T>- Returns:
- the current instance of
DataSourceType
-
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
Returns themax-idle-timeelement- Specified by:
getMaxIdleTimein interfaceDataSourceType<T>- Returns:
- the node defined for the element
max-idle-time
-
removeMaxIdleTime
Removes themax-idle-timeelement- Specified by:
removeMaxIdleTimein interfaceDataSourceType<T>- Returns:
- the current instance of
DataSourceType
-
maxStatements
Sets themax-statementselement- Specified by:
maxStatementsin interfaceDataSourceType<T>- Parameters:
maxStatements- the value for the elementmax-statements- Returns:
- the current instance of
DataSourceType
-
getMaxStatements
Returns themax-statementselement- Specified by:
getMaxStatementsin interfaceDataSourceType<T>- Returns:
- the node defined for the element
max-statements
-
removeMaxStatements
Removes themax-statementselement- Specified by:
removeMaxStatementsin interfaceDataSourceType<T>- Returns:
- the current instance of
DataSourceType
-
id
Sets theidattribute- Specified by:
idin interfaceDataSourceType<T>- Parameters:
id- the value for the attributeid- Returns:
- the current instance of
DataSourceType
-
getId
Returns theidattribute- Specified by:
getIdin interfaceDataSourceType<T>- Returns:
- the value defined for the attribute
id
-
removeId
Removes theidattribute- Specified by:
removeIdin interfaceDataSourceType<T>- Returns:
- the current instance of
DataSourceType
-