Skip to content
Snippets Groups Projects
Commit b648da34 authored by gmantele's avatar gmantele
Browse files

[ADQL] Fix Javadoc links

parent 1d3b311c
No related branches found
No related tags found
No related merge requests found
......@@ -896,7 +896,7 @@ public abstract class JDBCTranslator implements ADQLTranslator {
* {@link #convertTypeFromDB(int, String, String, String[])}. So the value should always
* be of the expected type and format. However, if it turns out that the type is wrong
* and that the conversion is finally impossible, this function SHOULD throw a
* {@link tap.data.DataReadException}.
* {@link ParseException}.
* </i></p>
*
* @param jdbcColValue A JDBC column value (returned by ResultSet.getObject(int)).
......
......@@ -76,6 +76,21 @@ public class MySQLTranslator extends JDBCTranslator {
caseSensitivity = 0x0F;
}
/**
* Build a MySQLTranslator which always translates in SQL all identifiers
* (schema, table and column) in the specified case sensitivity ; in other
* words, schema, table and column names will all be surrounded or not by
* back-quotes in the SQL translation.
*
* @param allCaseSensitive <i>true</i> to translate all identifiers in a
* case sensitive manner
* (surrounded by back-quotes),
* <i>false</i> for case insensitivity.
*/
public MySQLTranslator(final boolean allCaseSensitive){
caseSensitivity = allCaseSensitive ? (byte)0x0F : (byte)0x00;
}
/**
* Build a MySQLTranslator which will always translate in SQL identifiers
* with the defined case sensitivity.
......@@ -89,21 +104,6 @@ public class MySQLTranslator extends JDBCTranslator {
* @param column <i>true</i> to translate column names with back-quotes
* (case sensitive in the DBMS), <i>false</i> otherwise.
*/
public MySQLTranslator(final boolean allCaseSensitive){
caseSensitivity = allCaseSensitive ? (byte)0x0F : (byte)0x00;
}
/**
* Build a MySQLTranslator which always translates in SQL all identifiers
* (schema, table and column) in the specified case sensitivity ; in other
* words, schema, table and column names will all be surrounded or not by
* back-quotes in the SQL translation.
*
* @param allCaseSensitive <i>true</i> to translate all identifiers in a
* case sensitive manner
* (surrounded by back-quotes),
* <i>false</i> for case insensitivity.
*/
public MySQLTranslator(final boolean catalog, final boolean schema, final boolean table, final boolean column){
caseSensitivity = IdentifierField.CATALOG.setCaseSensitive(caseSensitivity, catalog);
caseSensitivity = IdentifierField.SCHEMA.setCaseSensitive(caseSensitivity, schema);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment