Class LiteralExpressionStatement
java.lang.Object
com.invirgance.convirgance.jdbc.sql.LiteralExpressionStatement
- All Implemented Interfaces:
NamedSchema,ExpressionStatement,SQLStatement
Represents a literal value within an SQL expression.
This class handles literal values (strings, numbers, null, etc.) in SQL statements.
It properly escapes string literals and handles type conversion when required
ex for Null or Number. Optionally, literals can be given an alias using the AS keyword.
- Author:
- jbanes
-
Constructor Summary
ConstructorsConstructorDescriptionLiteralExpressionStatement(DatabaseSchemaLayout layout, Object literal) LiteralExpressionStatement(DatabaseSchemaLayout layout, Object literal, String name) -
Method Summary
Modifier and TypeMethodDescriptiongetName()Get the schema name of this database objectIf this statement is part of a larger statement, this returns the parent statement.Get the schema name of this database object quoted for use in a SQL statementrender(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
-
LiteralExpressionStatement
-
LiteralExpressionStatement
-
-
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
-
getName
Description copied from interface:NamedSchemaGet the schema name of this database object- Specified by:
getNamein interfaceNamedSchema- Returns:
- name of the object with exact database capitalization
-
getQuotedName
Description copied from interface:NamedSchemaGet the schema name of this database object quoted for use in a SQL statement- Specified by:
getQuotedNamein interfaceNamedSchema- Returns:
- name of the object quoted for use in a SQL statement
-
render
- Specified by:
renderin interfaceSQLStatement
-
toString
-