Package com.github.eikecochu.sqlbuilder
Class QueryPartImpl<T extends QueryPartImpl<T>>
- java.lang.Object
-
- com.github.eikecochu.sqlbuilder.QueryPartImpl<T>
-
- Type Parameters:
T- The type to return to for various methods
- All Implemented Interfaces:
QueryPart,QueryPartLinked<T>,QueryPartSQL<T>
- Direct Known Subclasses:
Conditionable,Delete,Exists,Expression,Fetch,From,GroupBy,Insert,Limit,Offset,Offset,OrderBy,Query,Select,Union,Update,With
public abstract class QueryPartImpl<T extends QueryPartImpl<T>> extends java.lang.Object implements QueryPart, QueryPartSQL<T>, QueryPartLinked<T>
The default QueryPart implementation used by most expressions. Also implements the QueryPart, QueryPartSQL and QueryPartLinked interfaces for convenience.
-
-
Constructor Summary
Constructors Constructor Description QueryPartImpl(QueryPartLinked<?> parent)Create a new instance with a parent expression
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tparent(QueryPartLinked<?> parent)Set the parent of this expressionTsql(java.lang.String sql)Set SQL as content-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.github.eikecochu.sqlbuilder.QueryPartLinked
ext, parent
-
-
-
-
Constructor Detail
-
QueryPartImpl
public QueryPartImpl(QueryPartLinked<?> parent)
Create a new instance with a parent expression- Parameters:
parent- The parent expression
-
-
Method Detail
-
sql
public T sql(java.lang.String sql)
Description copied from interface:QueryPartSQLSet SQL as content- Specified by:
sqlin interfaceQueryPartSQL<T extends QueryPartImpl<T>>- Parameters:
sql- The SQL expression- Returns:
- This instance
-
parent
public T parent(QueryPartLinked<?> parent)
Description copied from interface:QueryPartLinkedSet the parent of this expression- Specified by:
parentin interfaceQueryPartLinked<T extends QueryPartImpl<T>>- Parameters:
parent- The parent expression- Returns:
- This instance
-
-