org.nuxeo.ecm.core.storage.sql.coremodel
Class SQLRepository
java.lang.Object
org.nuxeo.ecm.core.storage.sql.coremodel.SQLRepository
- All Implemented Interfaces:
- Repository
public class SQLRepository
- extends Object
- implements Repository
This is the Session
factory when the repository is used outside of a
datasource.
(When repositories are looked up through JNDI, the class
org.nuxeo.ecm.core.storage.sql.ra.ConnectionFactoryImpl is used
instead of this one.) [suppressed link for solving cycle dependencies in eclipse]
This class is constructed by SQLRepositoryFactory
.
- Author:
- Florent Guillaume
repository
public final RepositoryImpl repository
SQLRepository
public SQLRepository(RepositoryDescriptor descriptor)
throws Exception
- Throws:
Exception
getDescriptor
public static RepositoryDescriptor getDescriptor(RepositoryDescriptor descriptor)
throws Exception
- Fetch SQL-level descriptor from Nuxeo repository descriptor.
- Throws:
Exception
getName
public String getName()
- Specified by:
getName
in interface Repository
getSession
public Session getSession(Map<String,Serializable> context)
throws DocumentException
- Specified by:
getSession
in interface Repository
- Throws:
DocumentException
getTypeManager
public SchemaManager getTypeManager()
- Specified by:
getTypeManager
in interface Repository
getNuxeoSecurityManager
public SecurityManager getNuxeoSecurityManager()
- Specified by:
getNuxeoSecurityManager
in interface Repository
initialize
public void initialize()
- Specified by:
initialize
in interface Repository
getSession
@Deprecated
public Session getSession(long sessionId)
- Deprecated. unused
- Specified by:
getSession
in interface Repository
getOpenedSessions
public Session[] getOpenedSessions()
- Specified by:
getOpenedSessions
in interface Repository
shutdown
public void shutdown()
- Specified by:
shutdown
in interface Repository
getStartedSessionsCount
public int getStartedSessionsCount()
- Specified by:
getStartedSessionsCount
in interface Repository
getClosedSessionsCount
public int getClosedSessionsCount()
- Specified by:
getClosedSessionsCount
in interface Repository
getActiveSessionsCount
public int getActiveSessionsCount()
- Specified by:
getActiveSessionsCount
in interface Repository
supportsTags
public boolean supportsTags()
- Specified by:
supportsTags
in interface Repository
Copyright © 2011 Nuxeo SAS. All Rights Reserved.