Class HibernateDriver
- java.lang.Object
-
- liquibase.ext.hibernate.database.connection.HibernateDriver
-
- All Implemented Interfaces:
Driver,liquibase.database.LiquibaseExtDriver
public class HibernateDriver extends Object implements Driver, liquibase.database.LiquibaseExtDriver
Implements the standard java.sql.Driver interface to allow the Hibernate integration to better fit into what Liquibase expects.
-
-
Constructor Summary
Constructors Constructor Description HibernateDriver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanacceptsURL(String url)Connectionconnect(String url, Properties info)intgetMajorVersion()intgetMinorVersion()LoggergetParentLogger()DriverPropertyInfo[]getPropertyInfo(String url, Properties info)booleanjdbcCompliant()voidsetResourceAccessor(liquibase.resource.ResourceAccessor accessor)
-
-
-
Method Detail
-
connect
public Connection connect(String url, Properties info) throws SQLException
- Specified by:
connectin interfaceDriver- Throws:
SQLException
-
acceptsURL
public boolean acceptsURL(String url) throws SQLException
- Specified by:
acceptsURLin interfaceDriver- Throws:
SQLException
-
getPropertyInfo
public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException
- Specified by:
getPropertyInfoin interfaceDriver- Throws:
SQLException
-
getMajorVersion
public int getMajorVersion()
- Specified by:
getMajorVersionin interfaceDriver
-
getMinorVersion
public int getMinorVersion()
- Specified by:
getMinorVersionin interfaceDriver
-
jdbcCompliant
public boolean jdbcCompliant()
- Specified by:
jdbcCompliantin interfaceDriver
-
getParentLogger
public Logger getParentLogger() throws SQLFeatureNotSupportedException
- Specified by:
getParentLoggerin interfaceDriver- Throws:
SQLFeatureNotSupportedException
-
setResourceAccessor
public void setResourceAccessor(liquibase.resource.ResourceAccessor accessor)
- Specified by:
setResourceAccessorin interfaceliquibase.database.LiquibaseExtDriver
-
-