Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.storage.sql.coremodel
Class SQLRepository

java.lang.Object
  extended by 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

Field Summary
 RepositoryImpl repository
           
 
Constructor Summary
SQLRepository(RepositoryDescriptor descriptor)
           
 
Method Summary
 int getActiveSessionsCount()
           
 int getClosedSessionsCount()
           
static RepositoryDescriptor getDescriptor(RepositoryDescriptor descriptor)
          Fetch SQL-level descriptor from Nuxeo repository descriptor.
 String getName()
           
 SecurityManager getNuxeoSecurityManager()
           
 Session[] getOpenedSessions()
           
 Session getSession(long sessionId)
          Deprecated. unused
 Session getSession(Map<String,Serializable> context)
           
 int getStartedSessionsCount()
           
 SchemaManager getTypeManager()
           
 void initialize()
           
 void shutdown()
           
 boolean supportsTags()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

repository

public final RepositoryImpl repository
Constructor Detail

SQLRepository

public SQLRepository(RepositoryDescriptor descriptor)
              throws Exception
Throws:
Exception
Method Detail

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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.