public class SQLRepository extends Object implements Repository
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
.
Modifier and Type | Field and Description |
---|---|
RepositoryImpl |
repository |
Constructor and Description |
---|
SQLRepository(RepositoryDescriptor descriptor) |
Modifier and Type | Method and Description |
---|---|
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() |
public final RepositoryImpl repository
public SQLRepository(RepositoryDescriptor descriptor) throws Exception
Exception
public static RepositoryDescriptor getDescriptor(RepositoryDescriptor descriptor) throws Exception
Exception
public String getName()
getName
in interface Repository
public Session getSession(Map<String,Serializable> context) throws DocumentException
getSession
in interface Repository
DocumentException
public SchemaManager getTypeManager()
getTypeManager
in interface Repository
public SecurityManager getNuxeoSecurityManager()
getNuxeoSecurityManager
in interface Repository
public void initialize()
initialize
in interface Repository
@Deprecated public Session getSession(long sessionId)
getSession
in interface Repository
public Session[] getOpenedSessions()
getOpenedSessions
in interface Repository
public void shutdown()
shutdown
in interface Repository
public int getStartedSessionsCount()
getStartedSessionsCount
in interface Repository
public int getClosedSessionsCount()
getClosedSessionsCount
in interface Repository
public int getActiveSessionsCount()
getActiveSessionsCount
in interface Repository
public boolean supportsTags()
supportsTags
in interface Repository
Copyright © 2011 Nuxeo SA. All Rights Reserved.