org.sonar.api.database.dialect
Interface Dialect
- All Known Implementing Classes:
- Derby, HsqlDb, MsSql, MySql, Oracle, PostgreSql
public interface Dialect
- Since:
- 1.12
getId
java.lang.String getId()
- Returns:
- the sonar dialect Id to be matched with the sonar.jdbc.dialect property when provided
getHibernateDialectClass
java.lang.Class<? extends org.hibernate.dialect.Dialect> getHibernateDialectClass()
- Returns:
- the hiberrnate dialect class to be used
getActiveRecordDialectCode
java.lang.String getActiveRecordDialectCode()
- Returns:
- the activerecord dialect to be used
matchesJdbcURL
boolean matchesJdbcURL(java.lang.String jdbcConnectionURL)
- Used to autodetect a dialect for a given driver URL
- Parameters:
jdbcConnectionURL
- a jdbc driver url such as jdbc:mysql://localhost:3306/sonar
- Returns:
- true if the dialect supports surch url
Copyright © 2009-2010 SonarSource. All Rights Reserved.