org.lexevs.dao.database.utility
Class DatabaseValidationQueryFactory

java.lang.Object
  extended by org.lexevs.dao.database.utility.DatabaseValidationQueryFactory
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean

public class DatabaseValidationQueryFactory
extends java.lang.Object
implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.FactoryBean

A factory for creating DatabaseDialect objects. Because Hibernate cannot automatically detect an Oracle 11g Dialect, we have to do it here.


Constructor Summary
DatabaseValidationQueryFactory()
           
 
Method Summary
 void afterPropertiesSet()
           
 java.lang.String getDbUrl()
          Gets the db url.
 java.lang.Object getObject()
           
 java.lang.Class getObjectType()
           
 java.lang.String getValidationQuery()
          Gets the validation query.
 boolean isSingleton()
           
 void setDbUrl(java.lang.String dbUrl)
          Sets the db url.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseValidationQueryFactory

public DatabaseValidationQueryFactory()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
java.lang.Exception

getObject

public java.lang.Object getObject()
                           throws java.lang.Exception
Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean
Throws:
java.lang.Exception

getObjectType

public java.lang.Class getObjectType()
Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean

getValidationQuery

public java.lang.String getValidationQuery()
                                    throws org.springframework.jdbc.support.MetaDataAccessException
Gets the validation query.

Returns:
the validation query
Throws:
org.springframework.jdbc.support.MetaDataAccessException - the meta data access exception

getDbUrl

public java.lang.String getDbUrl()
Gets the db url.

Returns:
the db url

setDbUrl

public void setDbUrl(java.lang.String dbUrl)
Sets the db url.

Parameters:
dbUrl - the new db url

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.