org.sonar.api.database.dialect
Interface Dialect
- All Known Implementing Classes:
- Derby, HsqlDb, MsSql, MySql, Oracle, PostgreSql
public interface Dialect
- Since:
- 1.12
getId
String getId()
- Returns:
- the sonar dialect Id to be matched with the sonar.jdbc.dialect property when provided
getHibernateDialectClass
Class<? extends org.hibernate.dialect.Dialect> getHibernateDialectClass()
- Returns:
- the hiberrnate dialect class to be used
getActiveRecordDialectCode
String getActiveRecordDialectCode()
- Returns:
- the activerecord dialect to be used
matchesJdbcURL
boolean matchesJdbcURL(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 SonarSource SA. All Rights Reserved.