org.nuxeo.ecm.core.storage.sql
Interface Repository
- All Superinterfaces:
- javax.resource.cci.ConnectionFactory, javax.naming.Referenceable, RepositoryManagement, java.io.Serializable
- All Known Implementing Classes:
- RepositoryImpl
public interface Repository
- extends javax.resource.cci.ConnectionFactory, RepositoryManagement
- Author:
- Florent Guillaume
Method Summary |
void |
close()
Closes the repository and release all resources. |
Session |
getConnection()
Gets a new connection by logging in to the repository with default
credentials. |
Session |
getConnection(javax.resource.cci.ConnectionSpec connectionSpec)
Gets a new connection by logging in to the repository with given
connection information (credentials). |
Methods inherited from interface javax.resource.cci.ConnectionFactory |
getMetaData, getRecordFactory |
Methods inherited from interface javax.resource.Referenceable |
setReference |
Methods inherited from interface javax.naming.Referenceable |
getReference |
getConnection
Session getConnection()
throws StorageException
- Gets a new connection by logging in to the repository with default
credentials.
- Specified by:
getConnection
in interface javax.resource.cci.ConnectionFactory
- Returns:
- the session
- Throws:
StorageException
getConnection
Session getConnection(javax.resource.cci.ConnectionSpec connectionSpec)
throws StorageException
- Gets a new connection by logging in to the repository with given
connection information (credentials).
- Specified by:
getConnection
in interface javax.resource.cci.ConnectionFactory
- Parameters:
connectionSpec
- the parameters to use to connnect
- Returns:
- the session
- Throws:
StorageException
close
void close()
throws StorageException
- Closes the repository and release all resources.
- Throws:
StorageException
Copyright © 2010 Nuxeo SAS. All Rights Reserved.