org.nuxeo.ecm.core.storage.sql
Interface Repository
- All Superinterfaces:
- ConnectionFactory, Referenceable, RepositoryManagement, Serializable
- All Known Implementing Classes:
- RepositoryImpl
public interface Repository
- extends 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(ConnectionSpec connectionSpec)
Gets a new connection by logging in to the repository with given
connection information (credentials). |
Methods inherited from interface org.nuxeo.ecm.core.storage.sql.RepositoryManagement |
activateServer, clearCaches, deactivateServer, getActiveSessionsCount, getBinaryGarbageCollector, getClientInfos, getName, getServerURL, isServerActivated, markReferencedBinaries, processClusterInvalidationsNext |
getConnection
Session getConnection()
throws StorageException
- Gets a new connection by logging in to the repository with default
credentials.
- Specified by:
getConnection
in interface ConnectionFactory
- Returns:
- the session
- Throws:
StorageException
getConnection
Session getConnection(ConnectionSpec connectionSpec)
throws StorageException
- Gets a new connection by logging in to the repository with given
connection information (credentials).
- Specified by:
getConnection
in interface 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 © 2011 Nuxeo SAS. All Rights Reserved.