com.evolveum.midpoint.repo.sql
Class SqlRepositoryFactory

java.lang.Object
  extended by com.evolveum.midpoint.repo.sql.SqlRepositoryFactory
All Implemented Interfaces:
RepositoryServiceFactory

public class SqlRepositoryFactory
extends java.lang.Object
implements RepositoryServiceFactory

Author:
lazyman

Constructor Summary
SqlRepositoryFactory()
           
 
Method Summary
 void destroy()
           
 void destroyService(RepositoryService service)
           
 RepositoryService getRepositoryService()
           
 SqlRepositoryConfiguration getSqlConfiguration()
           
 void init(org.apache.commons.configuration.Configuration configuration)
           
 java.lang.String prepareJdbcUrlPrefix(SqlRepositoryConfiguration config)
          Prepares a prefix (first part) of JDBC URL for embedded database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlRepositoryFactory

public SqlRepositoryFactory()
Method Detail

getSqlConfiguration

public SqlRepositoryConfiguration getSqlConfiguration()

destroy

public void destroy()
             throws RepositoryServiceFactoryException
Specified by:
destroy in interface RepositoryServiceFactory
Throws:
RepositoryServiceFactoryException

destroyService

public void destroyService(RepositoryService service)
                    throws RepositoryServiceFactoryException
Specified by:
destroyService in interface RepositoryServiceFactory
Throws:
RepositoryServiceFactoryException

init

public void init(org.apache.commons.configuration.Configuration configuration)
          throws RepositoryServiceFactoryException
Specified by:
init in interface RepositoryServiceFactory
Throws:
RepositoryServiceFactoryException

getRepositoryService

public RepositoryService getRepositoryService()
                                       throws RepositoryServiceFactoryException
Specified by:
getRepositoryService in interface RepositoryServiceFactory
Throws:
RepositoryServiceFactoryException

prepareJdbcUrlPrefix

public java.lang.String prepareJdbcUrlPrefix(SqlRepositoryConfiguration config)
                                      throws RepositoryServiceFactoryException
Prepares a prefix (first part) of JDBC URL for embedded database. Used also by configurator of tasks (quartz) and workflow (activiti) modules; they add their own db names and parameters to this string.

Parameters:
config -
Returns:
prefix of JDBC URL like jdbc:h2:file:d:\midpoint\midpoint
Throws:
RepositoryServiceFactoryException


Copyright © 2012 evolveum. All Rights Reserved.