Class OrderByStatement
java.lang.Object
com.invirgance.convirgance.jdbc.sql.OrderByStatement
- All Implemented Interfaces:
SQLStatement
Creates an OrderByStatement, this is used to add an order by clause.
- Author:
- jbanes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIf this statement is part of a larger statement, this returns the parent statement.order(ExpressionStatement clause, OrderBy order) Creates an OrderByStatement with the provided clause and order.render(SQLRenderer renderer) voidsetParent(SQLStatement parent) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.invirgance.convirgance.jdbc.sql.SQLStatement
query, query
-
Constructor Details
-
OrderByStatement
Creates a new statement.- Parameters:
layout- The Database schema layout.
-
-
Method Details
-
getParent
Description copied from interface:SQLStatementIf this statement is part of a larger statement, this returns the parent statement.- Specified by:
getParentin interfaceSQLStatement- Returns:
- the parent statement
-
setParent
- Specified by:
setParentin interfaceSQLStatement
-
order
Creates an OrderByStatement with the provided clause and order. This will update the rendered query to order the clause/column by the provided order.- Parameters:
clause- ExpressionStatementorder- The order- Returns:
- An OrderByStatement.
-
render
- Specified by:
renderin interfaceSQLStatement
-
toString
-