public class JDBCBackend extends Object implements RepositoryBackend
RepositoryBackend.MapperKind
Constructor and Description |
---|
JDBCBackend() |
Modifier and Type | Method and Description |
---|---|
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,
RepositoryBackend.MapperKind kind)
Creates a new instance a
Mapper . |
void |
shutdown()
Shuts down the backend.
|
public void initialize(RepositoryImpl repository) throws StorageException
RepositoryBackend
initialize
in interface RepositoryBackend
StorageException
public void initializeModelSetup(ModelSetup modelSetup) throws StorageException
ModelSetup
. Called once lazily at repository initialization.
Opens a connection to get the dialect and finish initializing the ModelSetup
.
initializeModelSetup
in interface RepositoryBackend
StorageException
public void initializeModel(Model model) throws StorageException
Model
has been created. Called once lazily at repository
initialization.
Creates the SQLInfo
from the model and the dialect.
initializeModel
in interface RepositoryBackend
StorageException
public Mapper newMapper(Model model, Session.PathResolver pathResolver, RepositoryBackend.MapperKind kind) throws StorageException
RepositoryBackend
Mapper
. Called once for every new session.newMapper
in interface RepositoryBackend
model
- the modelpathResolver
- the path resolverkind
- the kind of mapper to createStorageException
public void shutdown() throws StorageException
RepositoryBackend
shutdown
in interface RepositoryBackend
StorageException
Copyright © 2015 Nuxeo SA. All rights reserved.