Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.storage.sql.jdbc
Class JDBCBackend

java.lang.Object
  extended by org.nuxeo.ecm.core.storage.sql.jdbc.JDBCBackend
All Implemented Interfaces:
RepositoryBackend

public class JDBCBackend
extends Object
implements RepositoryBackend

JDBC Backend for a repository.


Constructor Summary
JDBCBackend()
           
 
Method Summary
 void initialize(RepositoryImpl repository)
          Initializer.
 void initializeModel(Model model)
          Initializes what's needed after the Model has been created.
 void initializeModelSetup(ModelSetup modelSetup)
          Initializes the ModelSetup.
 Mapper newMapper(Model model, Session.PathResolver pathResolver, Credentials credentials, boolean create)
          Creates a new instance a Mapper.
 void shutdown()
          Shuts down the backend.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCBackend

public JDBCBackend()
Method Detail

initialize

public void initialize(RepositoryImpl repository)
                throws StorageException
Description copied from interface: RepositoryBackend
Initializer.

Specified by:
initialize in interface RepositoryBackend
Throws:
StorageException

initializeModelSetup

public void initializeModelSetup(ModelSetup modelSetup)
                          throws StorageException
Initializes the ModelSetup. Called once lazily at repository initialization.

Opens a connection to get the dialect and finish initializing the ModelSetup.

Specified by:
initializeModelSetup in interface RepositoryBackend
Throws:
StorageException

initializeModel

public void initializeModel(Model model)
                     throws StorageException
Initializes what's needed after the Model has been created. Called once lazily at repository initialization.

Creates the SQLInfo from the model and the dialect.

Specified by:
initializeModel in interface RepositoryBackend
Throws:
StorageException

newMapper

public Mapper newMapper(Model model,
                        Session.PathResolver pathResolver,
                        Credentials credentials,
                        boolean create)
                 throws StorageException
Description copied from interface: RepositoryBackend
Creates a new instance a Mapper. Called once for every new session.

Specified by:
newMapper in interface RepositoryBackend
Parameters:
model - the model
pathResolver - the path resolver
credentials - the core session credentials
create - true if the database has to be created (initialization)
Throws:
StorageException

shutdown

public void shutdown()
              throws StorageException
Description copied from interface: RepositoryBackend
Shuts down the backend.

Specified by:
shutdown in interface RepositoryBackend
Throws:
StorageException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.