org.sonar.core.persistence.dialect
Interface Dialect
- All Known Implementing Classes:
- Derby, 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 hibernate dialect class to be used
getActiveRecordDialectCode
String getActiveRecordDialectCode()
- Returns:
- the activerecord dialect to be used
getActiveRecordJdbcAdapter
String getActiveRecordJdbcAdapter()
- Returns:
- the activerecord-jdbc adapter. See the property 'adapter' in database.yml
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
getDefaultDriverClassName
String getDefaultDriverClassName()
- Since:
- 2.13
getConnectionInitStatement
String getConnectionInitStatement(String schema)
getTrueSqlValue
String getTrueSqlValue()
- Since:
- 2.14
getFalseSqlValue
String getFalseSqlValue()
- Since:
- 2.14
Copyright © 2009-2012 SonarSource. All Rights Reserved.