Interface DataSourceType<T>
-
- All Superinterfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>
- All Known Implementing Classes:
DataSourceTypeImpl
public interface DataSourceType<T> extends org.jboss.shrinkwrap.descriptor.api.Child<T>This interface defines the contract for thedata-sourceTypexsd type
-
-
Method Summary
All Methods Instance Methods Abstract 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 thetransactionalelementDataSourceType<T>url(String url)Sets theurlelementDataSourceType<T>user(String user)Sets theuserelement
-
-
-
Method Detail
-
description
DataSourceType<T> description(String description)
Sets thedescriptionelement- Parameters:
description- the value for the elementdescription- Returns:
- the current instance of
DataSourceType
-
getDescription
String getDescription()
Returns thedescriptionelement- Returns:
- the node defined for the element
description
-
removeDescription
DataSourceType<T> removeDescription()
Removes thedescriptionelement- Returns:
- the current instance of
DataSourceType
-
name
DataSourceType<T> name(String name)
Sets thenameelement- Parameters:
name- the value for the elementname- Returns:
- the current instance of
DataSourceType
-
getName
String getName()
Returns thenameelement- Returns:
- the node defined for the element
name
-
removeName
DataSourceType<T> removeName()
Removes thenameelement- Returns:
- the current instance of
DataSourceType
-
className
DataSourceType<T> className(String className)
Sets theclass-nameelement- Parameters:
className- the value for the elementclass-name- Returns:
- the current instance of
DataSourceType
-
getClassName
String getClassName()
Returns theclass-nameelement- Returns:
- the node defined for the element
class-name
-
removeClassName
DataSourceType<T> removeClassName()
Removes theclass-nameelement- Returns:
- the current instance of
DataSourceType
-
serverName
DataSourceType<T> serverName(String serverName)
Sets theserver-nameelement- Parameters:
serverName- the value for the elementserver-name- Returns:
- the current instance of
DataSourceType
-
getServerName
String getServerName()
Returns theserver-nameelement- Returns:
- the node defined for the element
server-name
-
removeServerName
DataSourceType<T> removeServerName()
Removes theserver-nameelement- Returns:
- the current instance of
DataSourceType
-
portNumber
DataSourceType<T> portNumber(Integer portNumber)
Sets theport-numberelement- Parameters:
portNumber- the value for the elementport-number- Returns:
- the current instance of
DataSourceType
-
getPortNumber
Integer getPortNumber()
Returns theport-numberelement- Returns:
- the node defined for the element
port-number
-
removePortNumber
DataSourceType<T> removePortNumber()
Removes theport-numberelement- Returns:
- the current instance of
DataSourceType
-
databaseName
DataSourceType<T> databaseName(String databaseName)
Sets thedatabase-nameelement- Parameters:
databaseName- the value for the elementdatabase-name- Returns:
- the current instance of
DataSourceType
-
getDatabaseName
String getDatabaseName()
Returns thedatabase-nameelement- Returns:
- the node defined for the element
database-name
-
removeDatabaseName
DataSourceType<T> removeDatabaseName()
Removes thedatabase-nameelement- Returns:
- the current instance of
DataSourceType
-
url
DataSourceType<T> url(String url)
Sets theurlelement- Parameters:
url- the value for the elementurl- Returns:
- the current instance of
DataSourceType
-
getUrl
String getUrl()
Returns theurlelement- Returns:
- the node defined for the element
url
-
removeUrl
DataSourceType<T> removeUrl()
Removes theurlelement- Returns:
- the current instance of
DataSourceType
-
user
DataSourceType<T> user(String user)
Sets theuserelement- Parameters:
user- the value for the elementuser- Returns:
- the current instance of
DataSourceType
-
getUser
String getUser()
Returns theuserelement- Returns:
- the node defined for the element
user
-
removeUser
DataSourceType<T> removeUser()
Removes theuserelement- Returns:
- the current instance of
DataSourceType
-
password
DataSourceType<T> password(String password)
Sets thepasswordelement- Parameters:
password- the value for the elementpassword- Returns:
- the current instance of
DataSourceType
-
getPassword
String getPassword()
Returns thepasswordelement- Returns:
- the node defined for the element
password
-
removePassword
DataSourceType<T> removePassword()
Removes thepasswordelement- Returns:
- the current instance of
DataSourceType
-
getOrCreateProperty
PropertyType<DataSourceType<T>> getOrCreateProperty()
If not already created, a newpropertyelement will be created and returned. Otherwise, the first existingpropertyelement will be returned.- Returns:
- the instance defined for the element
property
-
createProperty
PropertyType<DataSourceType<T>> createProperty()
Creates a newpropertyelement- Returns:
- the new created instance of
PropertyType>
-
getAllProperty
List<PropertyType<DataSourceType<T>>> getAllProperty()
Returns allpropertyelements- Returns:
- list of
property
-
removeAllProperty
DataSourceType<T> removeAllProperty()
Removes allpropertyelements- Returns:
- the current instance of
PropertyType>
-
loginTimeout
DataSourceType<T> loginTimeout(Integer loginTimeout)
Sets thelogin-timeoutelement- Parameters:
loginTimeout- the value for the elementlogin-timeout- Returns:
- the current instance of
DataSourceType
-
getLoginTimeout
Integer getLoginTimeout()
Returns thelogin-timeoutelement- Returns:
- the node defined for the element
login-timeout
-
removeLoginTimeout
DataSourceType<T> removeLoginTimeout()
Removes thelogin-timeoutelement- Returns:
- the current instance of
DataSourceType
-
transactional
DataSourceType<T> transactional(Boolean transactional)
Sets thetransactionalelement- Parameters:
transactional- the value for the elementtransactional- Returns:
- the current instance of
DataSourceType
-
isTransactional
Boolean isTransactional()
Returns thetransactionalelement- Returns:
- the node defined for the element
transactional
-
removeTransactional
DataSourceType<T> removeTransactional()
Removes thetransactionalelement- Returns:
- the current instance of
DataSourceType
-
isolationLevel
DataSourceType<T> isolationLevel(IsolationLevelType isolationLevel)
Sets theisolation-levelelement- Parameters:
isolationLevel- the value for the elementisolation-level- Returns:
- the current instance of
DataSourceType
-
isolationLevel
DataSourceType<T> isolationLevel(String isolationLevel)
Sets theisolation-levelelement- Parameters:
isolationLevel- the value for the elementisolation-level- Returns:
- the current instance of
DataSourceType
-
getIsolationLevel
IsolationLevelType getIsolationLevel()
Returns theisolation-levelelement- Returns:
- the value found for the element
isolation-level
-
getIsolationLevelAsString
String getIsolationLevelAsString()
Returns theisolation-levelelement- Returns:
- the value found for the element
isolation-level
-
removeIsolationLevel
DataSourceType<T> removeIsolationLevel()
Removes theisolation-levelattribute- Returns:
- the current instance of
DataSourceType
-
initialPoolSize
DataSourceType<T> initialPoolSize(Integer initialPoolSize)
Sets theinitial-pool-sizeelement- Parameters:
initialPoolSize- the value for the elementinitial-pool-size- Returns:
- the current instance of
DataSourceType
-
getInitialPoolSize
Integer getInitialPoolSize()
Returns theinitial-pool-sizeelement- Returns:
- the node defined for the element
initial-pool-size
-
removeInitialPoolSize
DataSourceType<T> removeInitialPoolSize()
Removes theinitial-pool-sizeelement- Returns:
- the current instance of
DataSourceType
-
maxPoolSize
DataSourceType<T> maxPoolSize(Integer maxPoolSize)
Sets themax-pool-sizeelement- Parameters:
maxPoolSize- the value for the elementmax-pool-size- Returns:
- the current instance of
DataSourceType
-
getMaxPoolSize
Integer getMaxPoolSize()
Returns themax-pool-sizeelement- Returns:
- the node defined for the element
max-pool-size
-
removeMaxPoolSize
DataSourceType<T> removeMaxPoolSize()
Removes themax-pool-sizeelement- Returns:
- the current instance of
DataSourceType
-
minPoolSize
DataSourceType<T> minPoolSize(Integer minPoolSize)
Sets themin-pool-sizeelement- Parameters:
minPoolSize- the value for the elementmin-pool-size- Returns:
- the current instance of
DataSourceType
-
getMinPoolSize
Integer getMinPoolSize()
Returns themin-pool-sizeelement- Returns:
- the node defined for the element
min-pool-size
-
removeMinPoolSize
DataSourceType<T> removeMinPoolSize()
Removes themin-pool-sizeelement- Returns:
- the current instance of
DataSourceType
-
maxIdleTime
DataSourceType<T> maxIdleTime(Integer maxIdleTime)
Sets themax-idle-timeelement- Parameters:
maxIdleTime- the value for the elementmax-idle-time- Returns:
- the current instance of
DataSourceType
-
getMaxIdleTime
Integer getMaxIdleTime()
Returns themax-idle-timeelement- Returns:
- the node defined for the element
max-idle-time
-
removeMaxIdleTime
DataSourceType<T> removeMaxIdleTime()
Removes themax-idle-timeelement- Returns:
- the current instance of
DataSourceType
-
maxStatements
DataSourceType<T> maxStatements(Integer maxStatements)
Sets themax-statementselement- Parameters:
maxStatements- the value for the elementmax-statements- Returns:
- the current instance of
DataSourceType
-
getMaxStatements
Integer getMaxStatements()
Returns themax-statementselement- Returns:
- the node defined for the element
max-statements
-
removeMaxStatements
DataSourceType<T> removeMaxStatements()
Removes themax-statementselement- Returns:
- the current instance of
DataSourceType
-
id
DataSourceType<T> id(String id)
Sets theidattribute- Parameters:
id- the value for the attributeid- Returns:
- the current instance of
DataSourceType
-
getId
String getId()
Returns theidattribute- Returns:
- the value defined for the attribute
id
-
removeId
DataSourceType<T> removeId()
Removes theidattribute- Returns:
- the current instance of
DataSourceType
-
-