public class OwCharacterStringLiteral extends Object implements OwLiteral
SQL AST node : <character string literal> syntax terminal as defined by the SQL grammar.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Constructor and Description |
---|
OwCharacterStringLiteral(String characterString_p)
Constructor
|
Modifier and Type | Method and Description |
---|---|
OwCharacterStringLiteral |
append(String characterString_p)
Appends the specified string to this character sequence String contents
and returns new
OwCharacterStringLiteral based on the resulted
string literal contents. |
boolean |
contains(char c_p,
boolean escaped_p)
Search the given character in the contents of this String literal.
|
StringBuilder |
createLiteralSQLString() |
OwCharacterStringLiteral |
insert(int offset_p,
String characterString_p)
Inserts the specified string at the given offset into this character sequence String
contents and returns new
OwCharacterStringLiteral based on the resulted
string literal contents. |
boolean |
isNull() |
OwCharacterStringLiteral |
replace(int start_p,
int end_p,
String characterString_p)
Replaces the specified range from this character sequence String contents with
the specified String and returns new
OwCharacterStringLiteral based
on the resulted string literal contents. |
public OwCharacterStringLiteral(String characterString_p)
characterString_p
- the String value of this literal , can be nullpublic StringBuilder createLiteralSQLString()
createLiteralSQLString
in interface OwLiteral
StringBuilder
filled with the string representation of this terminalpublic OwCharacterStringLiteral append(String characterString_p)
OwCharacterStringLiteral
based on the resulted
string literal contents. Does not change this character string literal.characterString_p
- OwCharacterStringLiteral
having its content
formed by appending the given String to the contents of this literalpublic OwCharacterStringLiteral insert(int offset_p, String characterString_p)
OwCharacterStringLiteral
based on the resulted
string literal contents. Does not change this character string literal.characterString_p
- OwCharacterStringLiteral
having its content
formed by inserting the given String at the given offset into the contents
of this literalStringIndexOutOfBoundsException
- if the offset is invalidpublic OwCharacterStringLiteral replace(int start_p, int end_p, String characterString_p)
OwCharacterStringLiteral
based
on the resulted string literal contents.
Does not change this character string literal.characterString_p
- OwCharacterStringLiteral
having its content
formed by replacing the specified range from this character sequence String
contents with the given character StringStringIndexOutOfBoundsException
- if start is negative, greater than the length of the
contents of this literal, or greater than end.public boolean contains(char c_p, boolean escaped_p)
c_p
- escaped_p
- if true only escaped occurrences of the given character are searched
The backslash character (\) will be used to escape characters within quoted strings in the query as follows:true
if the given character is found considering escaping
false
otherwiseCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.