public class DataSourceTypeImpl<T> extends Object implements org.jboss.shrinkwrap.descriptor.api.Child<T>, DataSourceType<T>
data-sourceType
xsd typeConstructor and 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) |
Modifier and Type | Method and Description |
---|---|
DataSourceType<T> |
className(String className)
Sets the
class-name element |
PropertyType<DataSourceType<T>> |
createProperty()
Creates a new
property element |
DataSourceType<T> |
databaseName(String databaseName)
Sets the
database-name element |
DataSourceType<T> |
description(String description)
Sets the
description element |
List<PropertyType<DataSourceType<T>>> |
getAllProperty()
Returns all
property elements |
String |
getClassName()
Returns the
class-name element |
String |
getDatabaseName()
Returns the
database-name element |
String |
getDescription()
Returns the
description element |
String |
getId()
Returns the
id attribute |
Integer |
getInitialPoolSize()
Returns the
initial-pool-size element |
IsolationLevelType |
getIsolationLevel()
Returns the
isolation-level element |
String |
getIsolationLevelAsString()
Returns the
isolation-level element |
Integer |
getLoginTimeout()
Returns the
login-timeout element |
Integer |
getMaxIdleTime()
Returns the
max-idle-time element |
Integer |
getMaxPoolSize()
Returns the
max-pool-size element |
Integer |
getMaxStatements()
Returns the
max-statements element |
Integer |
getMinPoolSize()
Returns the
min-pool-size element |
String |
getName()
Returns the
name element |
PropertyType<DataSourceType<T>> |
getOrCreateProperty()
If not already created, a new
property element will be created and returned. |
String |
getPassword()
Returns the
password element |
Integer |
getPortNumber()
Returns the
port-number element |
String |
getServerName()
Returns the
server-name element |
String |
getUrl()
Returns the
url element |
String |
getUser()
Returns the
user element |
DataSourceType<T> |
id(String id)
Sets the
id attribute |
DataSourceType<T> |
initialPoolSize(Integer initialPoolSize)
Sets the
initial-pool-size element |
DataSourceType<T> |
isolationLevel(IsolationLevelType isolationLevel)
Sets the
isolation-level element |
DataSourceType<T> |
isolationLevel(String isolationLevel)
Sets the
isolation-level element |
Boolean |
isTransactional()
Returns the
transactional element |
DataSourceType<T> |
loginTimeout(Integer loginTimeout)
Sets the
login-timeout element |
DataSourceType<T> |
maxIdleTime(Integer maxIdleTime)
Sets the
max-idle-time element |
DataSourceType<T> |
maxPoolSize(Integer maxPoolSize)
Sets the
max-pool-size element |
DataSourceType<T> |
maxStatements(Integer maxStatements)
Sets the
max-statements element |
DataSourceType<T> |
minPoolSize(Integer minPoolSize)
Sets the
min-pool-size element |
DataSourceType<T> |
name(String name)
Sets the
name element |
DataSourceType<T> |
password(String password)
Sets the
password element |
DataSourceType<T> |
portNumber(Integer portNumber)
Sets the
port-number element |
DataSourceType<T> |
removeAllProperty()
Removes all
property elements |
DataSourceType<T> |
removeClassName()
Removes the
class-name element |
DataSourceType<T> |
removeDatabaseName()
Removes the
database-name element |
DataSourceType<T> |
removeDescription()
Removes the
description element |
DataSourceType<T> |
removeId()
Removes the
id attribute |
DataSourceType<T> |
removeInitialPoolSize()
Removes the
initial-pool-size element |
DataSourceType<T> |
removeIsolationLevel()
Removes the
isolation-level attribute |
DataSourceType<T> |
removeLoginTimeout()
Removes the
login-timeout element |
DataSourceType<T> |
removeMaxIdleTime()
Removes the
max-idle-time element |
DataSourceType<T> |
removeMaxPoolSize()
Removes the
max-pool-size element |
DataSourceType<T> |
removeMaxStatements()
Removes the
max-statements element |
DataSourceType<T> |
removeMinPoolSize()
Removes the
min-pool-size element |
DataSourceType<T> |
removeName()
Removes the
name element |
DataSourceType<T> |
removePassword()
Removes the
password element |
DataSourceType<T> |
removePortNumber()
Removes the
port-number element |
DataSourceType<T> |
removeServerName()
Removes the
server-name element |
DataSourceType<T> |
removeTransactional()
Removes the
transactional element |
DataSourceType<T> |
removeUrl()
Removes the
url element |
DataSourceType<T> |
removeUser()
Removes the
user element |
DataSourceType<T> |
serverName(String serverName)
Sets the
server-name element |
DataSourceType<T> |
transactional(Boolean transactional)
Sets the
transactional element |
T |
up() |
DataSourceType<T> |
url(String url)
Sets the
url element |
DataSourceType<T> |
user(String user)
Sets the
user element |
public DataSourceTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)
public DataSourceType<T> description(String description)
description
elementdescription
in interface DataSourceType<T>
description
- the value for the element description
DataSourceType
public String getDescription()
description
elementgetDescription
in interface DataSourceType<T>
description
public DataSourceType<T> removeDescription()
description
elementremoveDescription
in interface DataSourceType<T>
DataSourceType
public DataSourceType<T> name(String name)
name
elementname
in interface DataSourceType<T>
name
- the value for the element name
DataSourceType
public String getName()
name
elementgetName
in interface DataSourceType<T>
name
public DataSourceType<T> removeName()
name
elementremoveName
in interface DataSourceType<T>
DataSourceType
public DataSourceType<T> className(String className)
class-name
elementclassName
in interface DataSourceType<T>
className
- the value for the element class-name
DataSourceType
public String getClassName()
class-name
elementgetClassName
in interface DataSourceType<T>
class-name
public DataSourceType<T> removeClassName()
class-name
elementremoveClassName
in interface DataSourceType<T>
DataSourceType
public DataSourceType<T> serverName(String serverName)
server-name
elementserverName
in interface DataSourceType<T>
serverName
- the value for the element server-name
DataSourceType
public String getServerName()
server-name
elementgetServerName
in interface DataSourceType<T>
server-name
public DataSourceType<T> removeServerName()
server-name
elementremoveServerName
in interface DataSourceType<T>
DataSourceType
public DataSourceType<T> portNumber(Integer portNumber)
port-number
elementportNumber
in interface DataSourceType<T>
portNumber
- the value for the element port-number
DataSourceType
public Integer getPortNumber()
port-number
elementgetPortNumber
in interface DataSourceType<T>
port-number
public DataSourceType<T> removePortNumber()
port-number
elementremovePortNumber
in interface DataSourceType<T>
DataSourceType
public DataSourceType<T> databaseName(String databaseName)
database-name
elementdatabaseName
in interface DataSourceType<T>
databaseName
- the value for the element database-name
DataSourceType
public String getDatabaseName()
database-name
elementgetDatabaseName
in interface DataSourceType<T>
database-name
public DataSourceType<T> removeDatabaseName()
database-name
elementremoveDatabaseName
in interface DataSourceType<T>
DataSourceType
public DataSourceType<T> url(String url)
url
elementurl
in interface DataSourceType<T>
url
- the value for the element url
DataSourceType
public String getUrl()
url
elementgetUrl
in interface DataSourceType<T>
url
public DataSourceType<T> removeUrl()
url
elementremoveUrl
in interface DataSourceType<T>
DataSourceType
public DataSourceType<T> user(String user)
user
elementuser
in interface DataSourceType<T>
user
- the value for the element user
DataSourceType
public String getUser()
user
elementgetUser
in interface DataSourceType<T>
user
public DataSourceType<T> removeUser()
user
elementremoveUser
in interface DataSourceType<T>
DataSourceType
public DataSourceType<T> password(String password)
password
elementpassword
in interface DataSourceType<T>
password
- the value for the element password
DataSourceType
public String getPassword()
password
elementgetPassword
in interface DataSourceType<T>
password
public DataSourceType<T> removePassword()
password
elementremovePassword
in interface DataSourceType<T>
DataSourceType
public PropertyType<DataSourceType<T>> getOrCreateProperty()
property
element will be created and returned.
Otherwise, the first existing property
element will be returned.getOrCreateProperty
in interface DataSourceType<T>
property
public PropertyType<DataSourceType<T>> createProperty()
property
elementcreateProperty
in interface DataSourceType<T>
PropertyType>
public List<PropertyType<DataSourceType<T>>> getAllProperty()
property
elementsgetAllProperty
in interface DataSourceType<T>
property
public DataSourceType<T> removeAllProperty()
property
elementsremoveAllProperty
in interface DataSourceType<T>
PropertyType>
public DataSourceType<T> loginTimeout(Integer loginTimeout)
login-timeout
elementloginTimeout
in interface DataSourceType<T>
loginTimeout
- the value for the element login-timeout
DataSourceType
public Integer getLoginTimeout()
login-timeout
elementgetLoginTimeout
in interface DataSourceType<T>
login-timeout
public DataSourceType<T> removeLoginTimeout()
login-timeout
elementremoveLoginTimeout
in interface DataSourceType<T>
DataSourceType
public DataSourceType<T> transactional(Boolean transactional)
transactional
elementtransactional
in interface DataSourceType<T>
transactional
- the value for the element transactional
DataSourceType
public Boolean isTransactional()
transactional
elementisTransactional
in interface DataSourceType<T>
transactional
public DataSourceType<T> removeTransactional()
transactional
elementremoveTransactional
in interface DataSourceType<T>
DataSourceType
public DataSourceType<T> isolationLevel(IsolationLevelType isolationLevel)
isolation-level
elementisolationLevel
in interface DataSourceType<T>
isolationLevel
- the value for the element isolation-level
DataSourceType
public DataSourceType<T> isolationLevel(String isolationLevel)
isolation-level
elementisolationLevel
in interface DataSourceType<T>
isolationLevel
- the value for the element isolation-level
DataSourceType
public IsolationLevelType getIsolationLevel()
isolation-level
elementgetIsolationLevel
in interface DataSourceType<T>
isolation-level
public String getIsolationLevelAsString()
isolation-level
elementgetIsolationLevelAsString
in interface DataSourceType<T>
isolation-level
public DataSourceType<T> removeIsolationLevel()
isolation-level
attributeremoveIsolationLevel
in interface DataSourceType<T>
DataSourceType
public DataSourceType<T> initialPoolSize(Integer initialPoolSize)
initial-pool-size
elementinitialPoolSize
in interface DataSourceType<T>
initialPoolSize
- the value for the element initial-pool-size
DataSourceType
public Integer getInitialPoolSize()
initial-pool-size
elementgetInitialPoolSize
in interface DataSourceType<T>
initial-pool-size
public DataSourceType<T> removeInitialPoolSize()
initial-pool-size
elementremoveInitialPoolSize
in interface DataSourceType<T>
DataSourceType
public DataSourceType<T> maxPoolSize(Integer maxPoolSize)
max-pool-size
elementmaxPoolSize
in interface DataSourceType<T>
maxPoolSize
- the value for the element max-pool-size
DataSourceType
public Integer getMaxPoolSize()
max-pool-size
elementgetMaxPoolSize
in interface DataSourceType<T>
max-pool-size
public DataSourceType<T> removeMaxPoolSize()
max-pool-size
elementremoveMaxPoolSize
in interface DataSourceType<T>
DataSourceType
public DataSourceType<T> minPoolSize(Integer minPoolSize)
min-pool-size
elementminPoolSize
in interface DataSourceType<T>
minPoolSize
- the value for the element min-pool-size
DataSourceType
public Integer getMinPoolSize()
min-pool-size
elementgetMinPoolSize
in interface DataSourceType<T>
min-pool-size
public DataSourceType<T> removeMinPoolSize()
min-pool-size
elementremoveMinPoolSize
in interface DataSourceType<T>
DataSourceType
public DataSourceType<T> maxIdleTime(Integer maxIdleTime)
max-idle-time
elementmaxIdleTime
in interface DataSourceType<T>
maxIdleTime
- the value for the element max-idle-time
DataSourceType
public Integer getMaxIdleTime()
max-idle-time
elementgetMaxIdleTime
in interface DataSourceType<T>
max-idle-time
public DataSourceType<T> removeMaxIdleTime()
max-idle-time
elementremoveMaxIdleTime
in interface DataSourceType<T>
DataSourceType
public DataSourceType<T> maxStatements(Integer maxStatements)
max-statements
elementmaxStatements
in interface DataSourceType<T>
maxStatements
- the value for the element max-statements
DataSourceType
public Integer getMaxStatements()
max-statements
elementgetMaxStatements
in interface DataSourceType<T>
max-statements
public DataSourceType<T> removeMaxStatements()
max-statements
elementremoveMaxStatements
in interface DataSourceType<T>
DataSourceType
public DataSourceType<T> id(String id)
id
attributeid
in interface DataSourceType<T>
id
- the value for the attribute id
DataSourceType
public String getId()
id
attributegetId
in interface DataSourceType<T>
id
public DataSourceType<T> removeId()
id
attributeremoveId
in interface DataSourceType<T>
DataSourceType
Copyright © 2021 JBoss by Red Hat. All rights reserved.