| |
|
| java.lang.Object org.jpox.store.expression.ScalarExpression org.jpox.store.expression.StringExpression org.jpox.store.expression.StringLiteral
All known Subclasses: org.jpox.store.expression.MetaDataStringLiteral,
StringLiteral | public class StringLiteral extends StringExpression implements Literal(Code) | | Representation of a string literal.
version: $Revision: 1.19 $ |
rawValue | Object rawValue(Code) | | Raw value that this literal represents.
|
StringLiteral | public StringLiteral(QueryExpression qs, JavaTypeMapping mapping, char value)(Code) | | Constructor that takes a char. TODO we should not accept chars in String literal
Parameters: qs - The QueryExpression Parameters: mapping - The mapping to the java type Parameters: value - The value that is further converted to a String |
StringLiteral | public StringLiteral(QueryExpression qs, JavaTypeMapping mapping, String value)(Code) | | Constructor
Parameters: qs - The QueryExpression Parameters: mapping - The mapping to the java type. null mapping is accepted Parameters: value - The value |
generateStatementWithoutQuotes | public void generateStatementWithoutQuotes()(Code) | | Convenience method to generate the statement without any quotes.
This is called when we create a literal using a mapping, and dont want quotes
because the string is an SQL keyword.
|
getRawValue | public Object getRawValue()(Code) | | Accessor for the "raw" value that this literal represents.
This value differs from the literal value since that is of the same type as this literal.
The raw value |
setRawValue | public void setRawValue(Object val)(Code) | | Method to save a "raw" value that this literal represents.
This value differs from the literal value since that is of the same type as this literal.
Parameters: val - The raw value |
toLowerCaseMethod | public StringExpression toLowerCaseMethod()(Code) | | Method to handle the lower case operation.
The expression. |
toUpperCaseMethod | public StringExpression toUpperCaseMethod()(Code) | | Method to handle the upper case operation.
The expression. |
|
|
|