public class DataSourceTypeImpl<T> extends Object implements org.jboss.shrinkwrap.descriptor.api.Child<T>, DataSourceType<T>
data-sourceType xsd type| Constructor 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 descriptionDataSourceTypepublic String getDescription()
description elementgetDescription in interface DataSourceType<T>descriptionpublic DataSourceType<T> removeDescription()
description elementremoveDescription in interface DataSourceType<T>DataSourceTypepublic DataSourceType<T> name(String name)
name elementname in interface DataSourceType<T>name - the value for the element nameDataSourceTypepublic String getName()
name elementgetName in interface DataSourceType<T>namepublic DataSourceType<T> removeName()
name elementremoveName in interface DataSourceType<T>DataSourceTypepublic DataSourceType<T> className(String className)
class-name elementclassName in interface DataSourceType<T>className - the value for the element class-nameDataSourceTypepublic String getClassName()
class-name elementgetClassName in interface DataSourceType<T>class-namepublic DataSourceType<T> removeClassName()
class-name elementremoveClassName in interface DataSourceType<T>DataSourceTypepublic DataSourceType<T> serverName(String serverName)
server-name elementserverName in interface DataSourceType<T>serverName - the value for the element server-nameDataSourceTypepublic String getServerName()
server-name elementgetServerName in interface DataSourceType<T>server-namepublic DataSourceType<T> removeServerName()
server-name elementremoveServerName in interface DataSourceType<T>DataSourceTypepublic DataSourceType<T> portNumber(Integer portNumber)
port-number elementportNumber in interface DataSourceType<T>portNumber - the value for the element port-numberDataSourceTypepublic Integer getPortNumber()
port-number elementgetPortNumber in interface DataSourceType<T>port-numberpublic DataSourceType<T> removePortNumber()
port-number elementremovePortNumber in interface DataSourceType<T>DataSourceTypepublic DataSourceType<T> databaseName(String databaseName)
database-name elementdatabaseName in interface DataSourceType<T>databaseName - the value for the element database-nameDataSourceTypepublic String getDatabaseName()
database-name elementgetDatabaseName in interface DataSourceType<T>database-namepublic DataSourceType<T> removeDatabaseName()
database-name elementremoveDatabaseName in interface DataSourceType<T>DataSourceTypepublic DataSourceType<T> url(String url)
url elementurl in interface DataSourceType<T>url - the value for the element urlDataSourceTypepublic String getUrl()
url elementgetUrl in interface DataSourceType<T>urlpublic DataSourceType<T> removeUrl()
url elementremoveUrl in interface DataSourceType<T>DataSourceTypepublic DataSourceType<T> user(String user)
user elementuser in interface DataSourceType<T>user - the value for the element userDataSourceTypepublic String getUser()
user elementgetUser in interface DataSourceType<T>userpublic DataSourceType<T> removeUser()
user elementremoveUser in interface DataSourceType<T>DataSourceTypepublic DataSourceType<T> password(String password)
password elementpassword in interface DataSourceType<T>password - the value for the element passwordDataSourceTypepublic String getPassword()
password elementgetPassword in interface DataSourceType<T>passwordpublic DataSourceType<T> removePassword()
password elementremovePassword in interface DataSourceType<T>DataSourceTypepublic 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>propertypublic PropertyType<DataSourceType<T>> createProperty()
property elementcreateProperty in interface DataSourceType<T>PropertyType> public List<PropertyType<DataSourceType<T>>> getAllProperty()
property elementsgetAllProperty in interface DataSourceType<T>propertypublic 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-timeoutDataSourceTypepublic Integer getLoginTimeout()
login-timeout elementgetLoginTimeout in interface DataSourceType<T>login-timeoutpublic DataSourceType<T> removeLoginTimeout()
login-timeout elementremoveLoginTimeout in interface DataSourceType<T>DataSourceTypepublic DataSourceType<T> transactional(Boolean transactional)
transactional elementtransactional in interface DataSourceType<T>transactional - the value for the element transactionalDataSourceTypepublic Boolean isTransactional()
transactional elementisTransactional in interface DataSourceType<T>transactionalpublic DataSourceType<T> removeTransactional()
transactional elementremoveTransactional in interface DataSourceType<T>DataSourceTypepublic DataSourceType<T> isolationLevel(IsolationLevelType isolationLevel)
isolation-level elementisolationLevel in interface DataSourceType<T>isolationLevel - the value for the element isolation-levelDataSourceTypepublic DataSourceType<T> isolationLevel(String isolationLevel)
isolation-level elementisolationLevel in interface DataSourceType<T>isolationLevel - the value for the element isolation-levelDataSourceTypepublic IsolationLevelType getIsolationLevel()
isolation-level elementgetIsolationLevel in interface DataSourceType<T>isolation-levelpublic String getIsolationLevelAsString()
isolation-level elementgetIsolationLevelAsString in interface DataSourceType<T>isolation-levelpublic DataSourceType<T> removeIsolationLevel()
isolation-level attributeremoveIsolationLevel in interface DataSourceType<T>DataSourceTypepublic DataSourceType<T> initialPoolSize(Integer initialPoolSize)
initial-pool-size elementinitialPoolSize in interface DataSourceType<T>initialPoolSize - the value for the element initial-pool-sizeDataSourceTypepublic Integer getInitialPoolSize()
initial-pool-size elementgetInitialPoolSize in interface DataSourceType<T>initial-pool-sizepublic DataSourceType<T> removeInitialPoolSize()
initial-pool-size elementremoveInitialPoolSize in interface DataSourceType<T>DataSourceTypepublic DataSourceType<T> maxPoolSize(Integer maxPoolSize)
max-pool-size elementmaxPoolSize in interface DataSourceType<T>maxPoolSize - the value for the element max-pool-sizeDataSourceTypepublic Integer getMaxPoolSize()
max-pool-size elementgetMaxPoolSize in interface DataSourceType<T>max-pool-sizepublic DataSourceType<T> removeMaxPoolSize()
max-pool-size elementremoveMaxPoolSize in interface DataSourceType<T>DataSourceTypepublic DataSourceType<T> minPoolSize(Integer minPoolSize)
min-pool-size elementminPoolSize in interface DataSourceType<T>minPoolSize - the value for the element min-pool-sizeDataSourceTypepublic Integer getMinPoolSize()
min-pool-size elementgetMinPoolSize in interface DataSourceType<T>min-pool-sizepublic DataSourceType<T> removeMinPoolSize()
min-pool-size elementremoveMinPoolSize in interface DataSourceType<T>DataSourceTypepublic DataSourceType<T> maxIdleTime(Integer maxIdleTime)
max-idle-time elementmaxIdleTime in interface DataSourceType<T>maxIdleTime - the value for the element max-idle-timeDataSourceTypepublic Integer getMaxIdleTime()
max-idle-time elementgetMaxIdleTime in interface DataSourceType<T>max-idle-timepublic DataSourceType<T> removeMaxIdleTime()
max-idle-time elementremoveMaxIdleTime in interface DataSourceType<T>DataSourceTypepublic DataSourceType<T> maxStatements(Integer maxStatements)
max-statements elementmaxStatements in interface DataSourceType<T>maxStatements - the value for the element max-statementsDataSourceTypepublic Integer getMaxStatements()
max-statements elementgetMaxStatements in interface DataSourceType<T>max-statementspublic DataSourceType<T> removeMaxStatements()
max-statements elementremoveMaxStatements in interface DataSourceType<T>DataSourceTypepublic DataSourceType<T> id(String id)
id attributeid in interface DataSourceType<T>id - the value for the attribute idDataSourceTypepublic String getId()
id attributegetId in interface DataSourceType<T>idpublic DataSourceType<T> removeId()
id attributeremoveId in interface DataSourceType<T>DataSourceTypeCopyright © 2021 JBoss by Red Hat. All rights reserved.