Nuxeo ECM Projects 5.4.3-SNAPSHOT

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 javax.resource.cci.ConnectionFactory
getMetaData, getRecordFactory
 
Methods inherited from interface javax.resource.Referenceable
setReference
 
Methods inherited from interface javax.naming.Referenceable
getReference
 
Methods inherited from interface org.nuxeo.ecm.core.storage.sql.RepositoryManagement
activateServer, clearCaches, deactivateServer, getActiveSessionsCount, getBinaryGarbageCollector, getClientInfos, getName, getServerURL, isServerActivated, markReferencedBinaries, processClusterInvalidationsNext
 

Method Detail

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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.