org.apache.openejb.jee
Class DataSource
java.lang.Object
org.apache.openejb.jee.DataSource
- All Implemented Interfaces:
- Keyable<String>
public class DataSource
- extends Object
- implements Keyable<String>
javaee6.xsd
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>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
description
protected TextMap description
name
protected String name
className
protected String className
serverName
protected String serverName
portNumber
protected Integer portNumber
databaseName
protected String databaseName
url
protected String url
user
protected String user
password
protected String password
property
protected List<Property> property
loginTimeout
protected Integer loginTimeout
transactional
protected Boolean transactional
isolationLevel
protected IsolationLevel isolationLevel
initialPoolSize
protected Integer initialPoolSize
maxPoolSize
protected Integer maxPoolSize
minPoolSize
protected Integer minPoolSize
maxIdleTime
protected Integer maxIdleTime
maxStatements
protected Integer maxStatements
id
protected String id
DataSource
public DataSource()
DataSource
public DataSource(String name,
String className)
getDescriptions
public Text[] getDescriptions()
name
public DataSource name(String name)
className
public DataSource className(String className)
serverName
public DataSource serverName(String serverName)
portNumber
public DataSource portNumber(Integer portNumber)
databaseName
public DataSource databaseName(String databaseName)
url
public DataSource url(String url)
user
public DataSource user(String user)
password
public DataSource password(String password)
property
public DataSource property(String name,
String value)
loginTimeout
public DataSource loginTimeout(Integer loginTimeout)
transactional
public DataSource transactional(Boolean transactional)
isolationLevel
public DataSource isolationLevel(IsolationLevel isolationLevel)
initialPoolSize
public DataSource initialPoolSize(Integer initialPoolSize)
maxPoolSize
public DataSource maxPoolSize(Integer maxPoolSize)
minPoolSize
public DataSource minPoolSize(Integer minPoolSize)
maxIdleTime
public DataSource maxIdleTime(Integer maxIdleTime)
maxStatements
public DataSource maxStatements(Integer maxStatements)
setDescriptions
public void setDescriptions(Text[] text)
getDescription
public String getDescription()
getName
public String getName()
setName
public void setName(String value)
getClassName
public String getClassName()
setClassName
public void setClassName(String value)
getServerName
public String getServerName()
setServerName
public void setServerName(String value)
getPortNumber
public Integer getPortNumber()
setPortNumber
public void setPortNumber(Integer value)
getDatabaseName
public String getDatabaseName()
setDatabaseName
public void setDatabaseName(String value)
getUrl
public String getUrl()
setUrl
public void setUrl(String value)
getUser
public String getUser()
setUser
public void setUser(String value)
getPassword
public String getPassword()
setPassword
public void setPassword(String value)
getProperty
public List<Property> getProperty()
getLoginTimeout
public Integer getLoginTimeout()
setLoginTimeout
public void setLoginTimeout(Integer value)
getTransactional
public Boolean getTransactional()
setTransactional
public void setTransactional(Boolean value)
getIsolationLevel
public IsolationLevel getIsolationLevel()
setIsolationLevel
public void setIsolationLevel(IsolationLevel value)
getInitialPoolSize
public Integer getInitialPoolSize()
setInitialPoolSize
public void setInitialPoolSize(Integer value)
getMaxPoolSize
public Integer getMaxPoolSize()
setMaxPoolSize
public void setMaxPoolSize(Integer value)
getMinPoolSize
public Integer getMinPoolSize()
setMinPoolSize
public void setMinPoolSize(Integer value)
getMaxIdleTime
public Integer getMaxIdleTime()
setMaxIdleTime
public void setMaxIdleTime(Integer value)
getMaxStatements
public Integer getMaxStatements()
setMaxStatements
public void setMaxStatements(Integer value)
getId
public String getId()
setId
public void setId(String value)
getKey
public String getKey()
- Description copied from interface:
Keyable
- Gets the immutable key for this object.
- Specified by:
getKey in interface Keyable<String>
- Returns:
- gets the immutable key for this object
Copyright © 1999-2011 The Apache Software Foundation. All Rights Reserved.