Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.storage.sql
Interface RepositoryBackend

All Known Implementing Classes:
JDBCBackend, MonitoredBackend, MonitoredJDBCBackend, MonitoredNetBackend, NetBackend

public interface RepositoryBackend

Interface for the backend-specific initialization code of a Repository.

See Also:
RepositoryImpl

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.
 

Method Detail

initialize

void initialize(RepositoryImpl repository)
                throws StorageException
Initializer.

Throws:
StorageException

initializeModelSetup

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

Throws:
StorageException

initializeModel

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

Throws:
StorageException

newMapper

Mapper newMapper(Model model,
                 Session.PathResolver pathResolver,
                 Credentials credentials,
                 boolean create)
                 throws StorageException
Creates a new instance a Mapper. Called once for every new session.

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

void shutdown()
              throws StorageException
Shuts down the backend.

Throws:
StorageException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.