Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.core.storage.sql.jdbc
Class JDBCConnection

java.lang.Object
  extended by org.nuxeo.ecm.core.storage.sql.jdbc.JDBCConnection
Direct Known Subclasses:
JDBCRowMapper

public class JDBCConnection
extends java.lang.Object

Holds a connection to a JDBC database.


Field Summary
 java.sql.Connection connection
          The actual connection.
 JDBCMapperLogger logger
           
 
Constructor Summary
JDBCConnection(Model model, SQLInfo sqlInfo, javax.sql.XADataSource xadatasource)
          Creates a new Mapper.
 
Method Summary
 void close()
           
 Mapper.Identification getIdentification()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connection

public java.sql.Connection connection
The actual connection.


logger

public final JDBCMapperLogger logger
Constructor Detail

JDBCConnection

public JDBCConnection(Model model,
                      SQLInfo sqlInfo,
                      javax.sql.XADataSource xadatasource)
               throws StorageException
Creates a new Mapper.

Parameters:
model - the model
sqlInfo - the sql info
xadatasource - the XA datasource to use to get connections
Throws:
StorageException
Method Detail

getIdentification

public Mapper.Identification getIdentification()

close

public void close()

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.