Package com.github.eikecochu.sqlbuilder
Class QueryPartImpl<T extends QueryPartImpl<T>>
- java.lang.Object
-
- com.github.eikecochu.sqlbuilder.QueryPartImpl<T>
-
-
Constructor Summary
Constructors Constructor Description QueryPartImpl(QueryPart parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <U extends QueryPartImpl<U>>
Uext(U ext)Continue the building chain with any element, for example custom implemented expressions.Tparent(QueryPart parent)Set the parent of this expressionTsql(java.lang.String sql)Set SQL as content
-
-
-
Constructor Detail
-
QueryPartImpl
public QueryPartImpl(QueryPart parent)
-
-
Method Detail
-
sql
public T sql(java.lang.String sql)
Set SQL as content- Parameters:
sql- The SQL expression- Returns:
- This instance
-
parent
public T parent(QueryPart parent)
Set the parent of this expression- Parameters:
parent- The parent expression- Returns:
- This instance
-
ext
public <U extends QueryPartImpl<U>> U ext(U ext)
Continue the building chain with any element, for example custom implemented expressions.- Type Parameters:
U- The type of the parameter- Parameters:
ext- The custom expression- Returns:
- The custom expression
-
-