|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fuberlin.wiwiss.d2rq.sql.ConnectedDB
public class ConnectedDB
Field Summary | |
---|---|
static int |
DATE_COLUMN
|
static String |
MySQL
|
static int |
NUMERIC_COLUMN
|
static String |
Oracle
|
static String |
Other
|
static String |
PostgreSQL
|
static int |
TEXT_COLUMN
|
Constructor Summary | |
---|---|
ConnectedDB(String jdbcURL,
String username,
String password)
|
|
ConnectedDB(String jdbcURL,
String username,
String password,
String expressionTranslator,
boolean allowDistinct,
Set textColumns,
Set numericColumns,
Set dateColumns)
|
Method Summary | |
---|---|
boolean |
allowDistinct()
Some Databases do not handle large entries correctly. |
String |
backtickQuote(String s)
Wraps s in backticks and escapes special characters to avoid SQL injection |
void |
close()
|
int |
columnType(Attribute column)
Returns the columnType for a given database column. |
Connection |
connection()
|
String |
dbType()
Reports the brand of RDBMS. |
boolean |
dbTypeIs(String candidateType)
|
String |
doubleQuote(String s)
Wraps s in single quotes and escapes special characters to avoid SQL injection |
boolean |
equals(Object otherObject)
|
ExpressionTranslator |
expressionTranslator(ConstraintHandler handler)
|
int |
hashCode()
|
String |
quoteAttribute(Attribute attribute)
|
String |
quoteRelationName(RelationName relationName)
|
String |
quoteValue(String value,
Attribute column)
|
DatabaseSchemaInspector |
schemaInspector()
|
String |
singleQuote(String s)
Wraps s in single quotes and escapes special characters to avoid SQL injection |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String MySQL
public static final String PostgreSQL
public static final String Oracle
public static final String Other
public static final int TEXT_COLUMN
public static final int NUMERIC_COLUMN
public static final int DATE_COLUMN
Constructor Detail |
---|
public ConnectedDB(String jdbcURL, String username, String password)
public ConnectedDB(String jdbcURL, String username, String password, String expressionTranslator, boolean allowDistinct, Set textColumns, Set numericColumns, Set dateColumns)
Method Detail |
---|
public Connection connection()
public DatabaseSchemaInspector schemaInspector()
public String dbType()
public boolean dbTypeIs(String candidateType)
public int columnType(Attribute column)
public String singleQuote(String s)
public String doubleQuote(String s)
public String backtickQuote(String s)
public String quoteValue(String value, Attribute column)
public String quoteAttribute(Attribute attribute)
public String quoteRelationName(RelationName relationName)
public ExpressionTranslator expressionTranslator(ConstraintHandler handler)
public boolean allowDistinct()
public void close()
public boolean equals(Object otherObject)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |