public class JDBCBackend extends Object implements RepositoryBackend
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,
boolean useInvalidations)
Creates a new instance a
Mapper . |
void |
setClusterInvalidator(ClusterInvalidator clusterInvalidator)
Sets the cluster invalidator, to be used by future mappers created.
|
void |
shutdown()
Shuts down the backend.
|
public JDBCBackend()
public void initialize(RepositoryImpl repository)
RepositoryBackend
initialize
in interface RepositoryBackend
public void initializeModelSetup(ModelSetup modelSetup)
ModelSetup
. Called once lazily at repository initialization.
Opens a connection to get the dialect and finish initializing the ModelSetup
.
initializeModelSetup
in interface RepositoryBackend
public void initializeModel(Model model)
Model
has been created. Called once lazily at repository
initialization.
Creates the SQLInfo
from the model and the dialect.
initializeModel
in interface RepositoryBackend
public void setClusterInvalidator(ClusterInvalidator clusterInvalidator)
RepositoryBackend
setClusterInvalidator
in interface RepositoryBackend
public Mapper newMapper(Model model, Session.PathResolver pathResolver, boolean useInvalidations)
RepositoryBackend
Mapper
. Called once for every new session.newMapper
in interface RepositoryBackend
model
- the modelpathResolver
- the path resolveruseInvalidations
- whether this mapper participates in invalidation propagationpublic void shutdown()
RepositoryBackend
shutdown
in interface RepositoryBackend
Copyright © 2015 Nuxeo SA. All rights reserved.