Class DataSourceType
- java.lang.Object
-
- com.sun.xml.ws.config.metro.parser.jsr109.DataSourceType
-
- All Implemented Interfaces:
org.glassfish.jaxb.core.Locatable
public class DataSourceType extends Object implements org.glassfish.jaxb.core.Locatable
Configuration of a DataSource.Java class for data-sourceType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="data-sourceType"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="description" type="{http://java.sun.com/xml/ns/javaee}descriptionType" minOccurs="0"/> <element name="name" type="{http://java.sun.com/xml/ns/javaee}jndi-nameType"/> <element name="class-name" type="{http://java.sun.com/xml/ns/javaee}fully-qualified-classType" minOccurs="0"/> <element name="server-name" type="{http://java.sun.com/xml/ns/javaee}string" minOccurs="0"/> <element name="port-number" type="{http://java.sun.com/xml/ns/javaee}xsdIntegerType" minOccurs="0"/> <element name="database-name" type="{http://java.sun.com/xml/ns/javaee}string" minOccurs="0"/> <element name="url" type="{http://java.sun.com/xml/ns/javaee}jdbc-urlType" minOccurs="0"/> <element name="user" type="{http://java.sun.com/xml/ns/javaee}string" minOccurs="0"/> <element name="password" type="{http://java.sun.com/xml/ns/javaee}string" minOccurs="0"/> <element name="property" type="{http://java.sun.com/xml/ns/javaee}propertyType" maxOccurs="unbounded" minOccurs="0"/> <element name="login-timeout" type="{http://java.sun.com/xml/ns/javaee}xsdIntegerType" minOccurs="0"/> <element name="transactional" type="{http://java.sun.com/xml/ns/javaee}xsdBooleanType" minOccurs="0"/> <element name="isolation-level" type="{http://java.sun.com/xml/ns/javaee}isolation-levelType" minOccurs="0"/> <element name="initial-pool-size" type="{http://java.sun.com/xml/ns/javaee}xsdIntegerType" minOccurs="0"/> <element name="max-pool-size" type="{http://java.sun.com/xml/ns/javaee}xsdIntegerType" minOccurs="0"/> <element name="min-pool-size" type="{http://java.sun.com/xml/ns/javaee}xsdIntegerType" minOccurs="0"/> <element name="max-idle-time" type="{http://java.sun.com/xml/ns/javaee}xsdIntegerType" minOccurs="0"/> <element name="max-statements" type="{http://java.sun.com/xml/ns/javaee}xsdIntegerType" minOccurs="0"/> </sequence> <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" /> </restriction> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected FullyQualifiedClassTypeclassNameprotected StringdatabaseNameprotected DescriptionTypedescriptionprotected Stringidprotected XsdIntegerTypeinitialPoolSizeprotected IsolationLevelTypeisolationLevelprotected Locatorlocatorprotected XsdIntegerTypeloginTimeoutprotected XsdIntegerTypemaxIdleTimeprotected XsdIntegerTypemaxPoolSizeprotected XsdIntegerTypemaxStatementsprotected XsdIntegerTypeminPoolSizeprotected JndiNameTypenameprotected Stringpasswordprotected XsdIntegerTypeportNumberprotected List<PropertyType>propertyprotected StringserverNameprotected XsdBooleanTypetransactionalprotected JdbcUrlTypeurlprotected Stringuser
-
Constructor Summary
Constructors Constructor Description DataSourceType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FullyQualifiedClassTypegetClassName()Gets the value of the className property.StringgetDatabaseName()Gets the value of the databaseName property.DescriptionTypegetDescription()Gets the value of the description property.StringgetId()Gets the value of the id property.XsdIntegerTypegetInitialPoolSize()Gets the value of the initialPoolSize property.IsolationLevelTypegetIsolationLevel()Gets the value of the isolationLevel property.XsdIntegerTypegetLoginTimeout()Gets the value of the loginTimeout property.XsdIntegerTypegetMaxIdleTime()Gets the value of the maxIdleTime property.XsdIntegerTypegetMaxPoolSize()Gets the value of the maxPoolSize property.XsdIntegerTypegetMaxStatements()Gets the value of the maxStatements property.XsdIntegerTypegetMinPoolSize()Gets the value of the minPoolSize property.JndiNameTypegetName()Gets the value of the name property.StringgetPassword()Gets the value of the password property.XsdIntegerTypegetPortNumber()Gets the value of the portNumber property.List<PropertyType>getProperty()Gets the value of the property property.StringgetServerName()Gets the value of the serverName property.XsdBooleanTypegetTransactional()Gets the value of the transactional property.JdbcUrlTypegetUrl()Gets the value of the url property.StringgetUser()Gets the value of the user property.voidsetClassName(FullyQualifiedClassType value)Sets the value of the className property.voidsetDatabaseName(String value)Sets the value of the databaseName property.voidsetDescription(DescriptionType value)Sets the value of the description property.voidsetId(String value)Sets the value of the id property.voidsetInitialPoolSize(XsdIntegerType value)Sets the value of the initialPoolSize property.voidsetIsolationLevel(IsolationLevelType value)Sets the value of the isolationLevel property.voidsetLoginTimeout(XsdIntegerType value)Sets the value of the loginTimeout property.voidsetMaxIdleTime(XsdIntegerType value)Sets the value of the maxIdleTime property.voidsetMaxPoolSize(XsdIntegerType value)Sets the value of the maxPoolSize property.voidsetMaxStatements(XsdIntegerType value)Sets the value of the maxStatements property.voidsetMinPoolSize(XsdIntegerType value)Sets the value of the minPoolSize property.voidsetName(JndiNameType value)Sets the value of the name property.voidsetPassword(String value)Sets the value of the password property.voidsetPortNumber(XsdIntegerType value)Sets the value of the portNumber property.voidsetServerName(String value)Sets the value of the serverName property.voidsetSourceLocation(Locator newLocator)voidsetTransactional(XsdBooleanType value)Sets the value of the transactional property.voidsetUrl(JdbcUrlType value)Sets the value of the url property.voidsetUser(String value)Sets the value of the user property.LocatorsourceLocation()
-
-
-
Field Detail
-
description
protected DescriptionType description
-
name
protected JndiNameType name
-
className
protected FullyQualifiedClassType className
-
serverName
protected String serverName
-
portNumber
protected XsdIntegerType portNumber
-
databaseName
protected String databaseName
-
url
protected JdbcUrlType url
-
user
protected String user
-
password
protected String password
-
property
protected List<PropertyType> property
-
loginTimeout
protected XsdIntegerType loginTimeout
-
transactional
protected XsdBooleanType transactional
-
isolationLevel
protected IsolationLevelType isolationLevel
-
initialPoolSize
protected XsdIntegerType initialPoolSize
-
maxPoolSize
protected XsdIntegerType maxPoolSize
-
minPoolSize
protected XsdIntegerType minPoolSize
-
maxIdleTime
protected XsdIntegerType maxIdleTime
-
maxStatements
protected XsdIntegerType maxStatements
-
id
protected String id
-
locator
protected Locator locator
-
-
Method Detail
-
getDescription
public DescriptionType getDescription()
Gets the value of the description property.- Returns:
- possible object is
DescriptionType
-
setDescription
public void setDescription(DescriptionType value)
Sets the value of the description property.- Parameters:
value- allowed object isDescriptionType
-
getName
public JndiNameType getName()
Gets the value of the name property.- Returns:
- possible object is
JndiNameType
-
setName
public void setName(JndiNameType value)
Sets the value of the name property.- Parameters:
value- allowed object isJndiNameType
-
getClassName
public FullyQualifiedClassType getClassName()
Gets the value of the className property.- Returns:
- possible object is
FullyQualifiedClassType
-
setClassName
public void setClassName(FullyQualifiedClassType value)
Sets the value of the className property.- Parameters:
value- allowed object isFullyQualifiedClassType
-
getServerName
public String getServerName()
Gets the value of the serverName property.- Returns:
- possible object is
String
-
setServerName
public void setServerName(String value)
Sets the value of the serverName property.- Parameters:
value- allowed object isString
-
getPortNumber
public XsdIntegerType getPortNumber()
Gets the value of the portNumber property.- Returns:
- possible object is
XsdIntegerType
-
setPortNumber
public void setPortNumber(XsdIntegerType value)
Sets the value of the portNumber property.- Parameters:
value- allowed object isXsdIntegerType
-
getDatabaseName
public String getDatabaseName()
Gets the value of the databaseName property.- Returns:
- possible object is
String
-
setDatabaseName
public void setDatabaseName(String value)
Sets the value of the databaseName property.- Parameters:
value- allowed object isString
-
getUrl
public JdbcUrlType getUrl()
Gets the value of the url property.- Returns:
- possible object is
JdbcUrlType
-
setUrl
public void setUrl(JdbcUrlType value)
Sets the value of the url property.- Parameters:
value- allowed object isJdbcUrlType
-
getUser
public String getUser()
Gets the value of the user property.- Returns:
- possible object is
String
-
setUser
public void setUser(String value)
Sets the value of the user property.- Parameters:
value- allowed object isString
-
getPassword
public String getPassword()
Gets the value of the password property.- Returns:
- possible object is
String
-
setPassword
public void setPassword(String value)
Sets the value of the password property.- Parameters:
value- allowed object isString
-
getProperty
public List<PropertyType> getProperty()
Gets the value of the property property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the property property.For example, to add a new item, do as follows:
getProperty().add(newItem);Objects of the following type(s) are allowed in the list
PropertyType
-
getLoginTimeout
public XsdIntegerType getLoginTimeout()
Gets the value of the loginTimeout property.- Returns:
- possible object is
XsdIntegerType
-
setLoginTimeout
public void setLoginTimeout(XsdIntegerType value)
Sets the value of the loginTimeout property.- Parameters:
value- allowed object isXsdIntegerType
-
getTransactional
public XsdBooleanType getTransactional()
Gets the value of the transactional property.- Returns:
- possible object is
XsdBooleanType
-
setTransactional
public void setTransactional(XsdBooleanType value)
Sets the value of the transactional property.- Parameters:
value- allowed object isXsdBooleanType
-
getIsolationLevel
public IsolationLevelType getIsolationLevel()
Gets the value of the isolationLevel property.- Returns:
- possible object is
IsolationLevelType
-
setIsolationLevel
public void setIsolationLevel(IsolationLevelType value)
Sets the value of the isolationLevel property.- Parameters:
value- allowed object isIsolationLevelType
-
getInitialPoolSize
public XsdIntegerType getInitialPoolSize()
Gets the value of the initialPoolSize property.- Returns:
- possible object is
XsdIntegerType
-
setInitialPoolSize
public void setInitialPoolSize(XsdIntegerType value)
Sets the value of the initialPoolSize property.- Parameters:
value- allowed object isXsdIntegerType
-
getMaxPoolSize
public XsdIntegerType getMaxPoolSize()
Gets the value of the maxPoolSize property.- Returns:
- possible object is
XsdIntegerType
-
setMaxPoolSize
public void setMaxPoolSize(XsdIntegerType value)
Sets the value of the maxPoolSize property.- Parameters:
value- allowed object isXsdIntegerType
-
getMinPoolSize
public XsdIntegerType getMinPoolSize()
Gets the value of the minPoolSize property.- Returns:
- possible object is
XsdIntegerType
-
setMinPoolSize
public void setMinPoolSize(XsdIntegerType value)
Sets the value of the minPoolSize property.- Parameters:
value- allowed object isXsdIntegerType
-
getMaxIdleTime
public XsdIntegerType getMaxIdleTime()
Gets the value of the maxIdleTime property.- Returns:
- possible object is
XsdIntegerType
-
setMaxIdleTime
public void setMaxIdleTime(XsdIntegerType value)
Sets the value of the maxIdleTime property.- Parameters:
value- allowed object isXsdIntegerType
-
getMaxStatements
public XsdIntegerType getMaxStatements()
Gets the value of the maxStatements property.- Returns:
- possible object is
XsdIntegerType
-
setMaxStatements
public void setMaxStatements(XsdIntegerType value)
Sets the value of the maxStatements property.- Parameters:
value- allowed object isXsdIntegerType
-
setId
public void setId(String value)
Sets the value of the id property.- Parameters:
value- allowed object isString
-
sourceLocation
public Locator sourceLocation()
- Specified by:
sourceLocationin interfaceorg.glassfish.jaxb.core.Locatable- Returns:
- null if the location information is unavaiable,
or otherwise return a immutable valid
Locatorobject.
-
setSourceLocation
public void setSourceLocation(Locator newLocator)
-
-