Nuxeo Enterprise Platform 5.4

org.nuxeo.runtime.datasource
Class DataSourceDescriptor

java.lang.Object
  extended by org.nuxeo.runtime.datasource.DataSourceDescriptor

public class DataSourceDescriptor
extends Object

The descriptor for a Nuxeo-defined datasource.

The attributes of a <datasource> element are:

To configure the characteristics of the pool:

To configure the datasource connections, individual <property> sub-elements are used.

For a non-XA datasource, you must specify at least a url:

   <property name="url">jdbc:derby:foo/bar</property>
   <property name="username">nuxeo</property>
   <property name="password">nuxeo</property>
 
For a XA datasource, see the documentation for your JDBC driver.


Field Summary
 Element element
           
 String name
           
static String PROP_PREFIX
          How we store XA props in the Reference.
 Map<String,String> properties
           
 
Constructor Summary
DataSourceDescriptor()
           
 
Method Summary
 Reference getReference()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public String name

element

public Element element

properties

public Map<String,String> properties

PROP_PREFIX

public static final String PROP_PREFIX
How we store XA props in the Reference.

See Also:
Constant Field Values
Constructor Detail

DataSourceDescriptor

public DataSourceDescriptor()
Method Detail

getReference

public Reference getReference()

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.