Class QuerySource
java.lang.Object
com.northconcepts.datapipeline.jdbc.sql.SqlPart
com.northconcepts.datapipeline.jdbc.sql.select.QuerySource
- Direct Known Subclasses:
Select,TableQuerySource,Union
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleancontainsTable(String table) Returns true if this source, a nested source or a join refers to the table (ignoring case).Returns the alias written after this source in a FROM clause ornullfor none.abstract StringgetTable()Returns the first table in the list of tables.Returns the tables this source reads from, including those of nested sources but not joined tables.setNestedAlias(String nestedAlias) Sets the alias written after this source in a FROM clause (nullfor none).setPretty(boolean pretty) Indicates ifSqlPart.getSqlFragment()adds line breaks and indentation instead of using one line (default is false).booleanIndicates if this source is parenthesized when used in a FROM clause (true except for a plain table).Methods inherited from class com.northconcepts.datapipeline.jdbc.sql.SqlPart
collectParameterValues, collectSqlFragment, getParameterValues, getSqlFragment, isPretty, printSqlParts, toString
-
Constructor Details
-
QuerySource
public QuerySource()
-
-
Method Details
-
setPretty
Description copied from class:SqlPartIndicates ifSqlPart.getSqlFragment()adds line breaks and indentation instead of using one line (default is false). -
getTables
Returns the tables this source reads from, including those of nested sources but not joined tables. -
getTable
Returns the first table in the list of tables.
If this query source involves more than one table, usegetTables()instead of this method. -
containsTable
Returns true if this source, a nested source or a join refers to the table (ignoring case). -
shouldWrapWhenNested
public boolean shouldWrapWhenNested()Indicates if this source is parenthesized when used in a FROM clause (true except for a plain table). -
getNestedAlias
Returns the alias written after this source in a FROM clause ornullfor none. -
setNestedAlias
Sets the alias written after this source in a FROM clause (nullfor none).
-