org.lexevs.dao.database.setup.schemacheck
Class AbstractLesGridSchemaCheck

java.lang.Object
  extended by org.lexevs.dao.database.setup.schemacheck.AbstractLesGridSchemaCheck
All Implemented Interfaces:
LexGridSchemaCheck
Direct Known Subclasses:
CountBasedLexGridSchemaCheck

public abstract class AbstractLesGridSchemaCheck
extends java.lang.Object
implements LexGridSchemaCheck

The Class AbstractLesGridSchemaCheck.

Author:
Kevin Peterson

Constructor Summary
AbstractLesGridSchemaCheck()
          Instantiates a new abstract les grid schema check.
AbstractLesGridSchemaCheck(javax.sql.DataSource dataSource, SystemVariables systemVariables)
          Instantiates a new abstract les grid schema check.
 
Method Summary
protected abstract  boolean checkResult(org.springframework.jdbc.core.JdbcTemplate template, java.lang.String sql)
          Check result.
 javax.sql.DataSource getDataSource()
          Gets the data source.
protected abstract  java.lang.String getDbCheckSql()
          Gets the db check sql.
 SystemVariables getSystemVariables()
           
 boolean isCommonLexGridSchemaInstalled()
          Checks if is common lex grid schema installed.
 void setDataSource(javax.sql.DataSource dataSource)
          Sets the data source.
 void setSystemVariables(SystemVariables systemVariables)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractLesGridSchemaCheck

public AbstractLesGridSchemaCheck()
Instantiates a new abstract les grid schema check.


AbstractLesGridSchemaCheck

public AbstractLesGridSchemaCheck(javax.sql.DataSource dataSource,
                                  SystemVariables systemVariables)
Instantiates a new abstract les grid schema check.

Parameters:
dataSource - the data source
prefixResolver - the prefix resolver
Method Detail

setDataSource

public void setDataSource(javax.sql.DataSource dataSource)
Sets the data source.

Parameters:
dataSource - the new data source

getDataSource

public javax.sql.DataSource getDataSource()
Gets the data source.

Returns:
the data source

isCommonLexGridSchemaInstalled

public boolean isCommonLexGridSchemaInstalled()
Description copied from interface: LexGridSchemaCheck
Checks if is common lex grid schema installed.

Specified by:
isCommonLexGridSchemaInstalled in interface LexGridSchemaCheck
Returns:
true, if is common lex grid schema installed

getDbCheckSql

protected abstract java.lang.String getDbCheckSql()
Gets the db check sql.

Returns:
the db check sql

checkResult

protected abstract boolean checkResult(org.springframework.jdbc.core.JdbcTemplate template,
                                       java.lang.String sql)
Check result.

Parameters:
template - the template
sql - the sql
Returns:
true, if successful

setSystemVariables

public void setSystemVariables(SystemVariables systemVariables)

getSystemVariables

public SystemVariables getSystemVariables()

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.