com.mysema.query.types.expr
Class EString

java.lang.Object
  extended by com.mysema.query.types.Expr<D>
      extended by com.mysema.query.types.expr.ESimple<D>
          extended by com.mysema.query.types.expr.EComparableBase<D>
              extended by com.mysema.query.types.expr.EComparable<String>
                  extended by com.mysema.query.types.expr.EString
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CString, EStringConst, OString, PhraseElement, PString, StringSubQuery

public abstract class EString
extends EComparable<String>

EString represents String expressions

Author:
tiwe
See Also:
String, Serialized Form

Field Summary
 
Fields inherited from class com.mysema.query.types.Expr
primitive
 
Constructor Summary
EString()
           
 
Method Summary
 EString append(Expr<String> str)
          Get the concatenation of this and str
 EString append(String str)
          Get the concatenation of this and str
 EString as(Path<String> alias)
          Create an alias for the operation
 Expr<Character> charAt(Expr<Integer> i)
          Get the character at the given index
 Expr<Character> charAt(int i)
          Get the character at the given index
 EString concat(Expr<String> str)
          Get the concatenation of this and str
 EString concat(String str)
          Get the concatenation of this and str
 EBoolean contains(Expr<String> str)
          Returns true if the given String is contained
 EBoolean contains(Expr<String> str, boolean caseSensitive)
          Returns true if the given String is contained
 EBoolean contains(String str)
          Returns true if the given String is contained
 EBoolean contains(String str, boolean caseSensitive)
          Returns true if the given String is contained
 EBoolean endsWith(Expr<String> str)
          Returns true if this ends with str
 EBoolean endsWith(Expr<String> str, boolean caseSensitive)
          Returns true if this ends with str
 EBoolean endsWith(String str)
          Returns true if this ends with str
 EBoolean endsWith(String str, boolean caseSensitive)
          Returns true if this ends with str
 EBoolean equalsIgnoreCase(Expr<String> str)
          Compares this EString to another EString, ignoring case considerations.
 EBoolean equalsIgnoreCase(String str)
          Compares this EString to another EString, ignoring case considerations.
 ENumber<Integer> indexOf(Expr<String> str)
          Get the index of the given substring in this String
 ENumber<Integer> indexOf(Expr<String> str, int i)
          Get the index of the given substring in this String, starting from the given index
 ENumber<Integer> indexOf(String str)
          Get the index of the given substring in this String
 ENumber<Integer> indexOf(String str, int i)
          Get the index of the given substring in this String, starting from the given index
 EBoolean isEmpty()
          Return true if this String is empty
 EBoolean isNotEmpty()
          Return true if this String is not empty
 ENumber<Integer> length()
          Return the length of this String
 EBoolean like(EString str)
          Expr: this like str
 EBoolean like(String str)
          Expr: this like str
 EString lower()
          Get the lower case form
 EBoolean matches(Expr<String> regex)
          Return true if this String matches the given regular expression
 EBoolean matches(String regex)
          Return true if this String matches the given regular expression
 EString prepend(Expr<String> str)
          Prepend the given String and return the result
 EString prepend(String str)
          Prepend the given String and return the result
 Expr<String[]> split(String regex)
          Split the given String with regex as the matcher for the separator
 EBoolean startsWith(Expr<String> str)
          Return true if this starts with str
 EBoolean startsWith(Expr<String> str, boolean caseSensitive)
          Return true if this starts with str
 EBoolean startsWith(String str)
          Return true if this starts with str
 EBoolean startsWith(String str, boolean caseSensitive)
          Return true if this starts with str
 EString stringValue()
          Get a cast to String expression
 EString substring(int beginIndex)
          Get the given substring
 EString substring(int beginIndex, int endIndex)
          Get the given substring
 EString toLowerCase()
          Get the lower case form
 EString toUpperCase()
          Get the upper case form
 EString trim()
          Get a copy of the string, with leading and trailing whitespace omitted.
 EString upper()
          Get the upper case form
 
Methods inherited from class com.mysema.query.types.expr.EComparable
between, between, goe, goe, gt, gt, loe, loe, lt, lt, notBetween, notBetween
 
Methods inherited from class com.mysema.query.types.expr.EComparableBase
asc, castToNum, desc
 
Methods inherited from class com.mysema.query.types.expr.ESimple
count, countDistinct, eq, eq, in, in, in, ne, ne, when, when
 
Methods inherited from class com.mysema.query.types.Expr
accept, asExpr, equals, getType, hashCode, notIn, notIn, notIn, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EString

public EString()
Method Detail

as

public EString as(Path<String> alias)
Description copied from class: ESimple
Create an alias for the operation

Overrides:
as in class EComparable<String>
Returns:

append

public EString append(Expr<String> str)
Get the concatenation of this and str

Parameters:
str -
Returns:
this + str

append

public EString append(String str)
Get the concatenation of this and str

Parameters:
str -
Returns:
this + str

charAt

public Expr<Character> charAt(Expr<Integer> i)
Get the character at the given index

Parameters:
i -
Returns:
this.charAt(i)
See Also:
String.charAt(int)

charAt

public Expr<Character> charAt(int i)
Get the character at the given index

Parameters:
i -
Returns:
this.charAt(i)
See Also:
String.charAt(int)

concat

public EString concat(Expr<String> str)
Get the concatenation of this and str

Parameters:
str -
Returns:
this + str

concat

public EString concat(String str)
Get the concatenation of this and str

Parameters:
str -
Returns:
this + str

contains

public EBoolean contains(Expr<String> str)
Returns true if the given String is contained

Parameters:
str -
Returns:
this.contains(str)
See Also:
String.contains(CharSequence)

contains

public EBoolean contains(String str)
Returns true if the given String is contained

Parameters:
str -
Returns:
this.contains(str)
See Also:
String.contains(CharSequence)

contains

public EBoolean contains(Expr<String> str,
                         boolean caseSensitive)
Returns true if the given String is contained

Parameters:
str -
caseSensitive - case sensitivity of operation
Returns:
this.contains(str)
See Also:
String.contains(CharSequence)

contains

public EBoolean contains(String str,
                         boolean caseSensitive)
Returns true if the given String is contained

Parameters:
str -
caseSensitive - case sensitivity of operation
Returns:
this.contains(str)
See Also:
String.contains(CharSequence)

endsWith

public EBoolean endsWith(Expr<String> str)
Returns true if this ends with str

Parameters:
str -
Returns:
this.endsWith(str)
See Also:
String.endsWith(String)

endsWith

public EBoolean endsWith(Expr<String> str,
                         boolean caseSensitive)
Returns true if this ends with str

Parameters:
str -
caseSensitive - case sensitivity of operation
Returns:
See Also:
String.endsWith(String)

endsWith

public EBoolean endsWith(String str)
Returns true if this ends with str

Parameters:
str -
Returns:
this.endsWith(str)
See Also:
String.endsWith(String)

endsWith

public EBoolean endsWith(String str,
                         boolean caseSensitive)
Returns true if this ends with str

Parameters:
str -
caseSensitive -
Returns:
See Also:
String.endsWith(String)

equalsIgnoreCase

public EBoolean equalsIgnoreCase(Expr<String> str)
Compares this EString to another EString, ignoring case considerations.

Parameters:
str -
Returns:
this.equalsIgnoreCase(str)
See Also:
String.equalsIgnoreCase(String)

equalsIgnoreCase

public EBoolean equalsIgnoreCase(String str)
Compares this EString to another EString, ignoring case considerations.

Parameters:
str -
Returns:
this.equalsIgnoreCase(str)
See Also:
String.equalsIgnoreCase(String)

indexOf

public ENumber<Integer> indexOf(Expr<String> str)
Get the index of the given substring in this String

Parameters:
str -
Returns:
this.indexOf(str)
See Also:
String.indexOf(String)

indexOf

public ENumber<Integer> indexOf(String str)
Get the index of the given substring in this String

Parameters:
str -
Returns:
this.indexOf(str)
See Also:
String.indexOf(String)

indexOf

public ENumber<Integer> indexOf(String str,
                                int i)
Get the index of the given substring in this String, starting from the given index

Parameters:
str -
i -
Returns:
this.indexOf(str, i)
See Also:
String.indexOf(String, int)

indexOf

public ENumber<Integer> indexOf(Expr<String> str,
                                int i)
Get the index of the given substring in this String, starting from the given index

Parameters:
str -
i -
Returns:

isEmpty

public EBoolean isEmpty()
Return true if this String is empty

Returns:
this.isEmpty()
See Also:
String.isEmpty()

isNotEmpty

public EBoolean isNotEmpty()
Return true if this String is not empty

Returns:
!this.isEmpty()
See Also:
String.isEmpty()

length

public ENumber<Integer> length()
Return the length of this String

Returns:
this.length()
See Also:
String.length()

like

public EBoolean like(String str)
Expr: this like str

Parameters:
str -
Returns:

like

public EBoolean like(EString str)
Expr: this like str

Parameters:
str -
Returns:

lower

public EString lower()
Get the lower case form

Returns:
this.toLowerCase()
See Also:
String.toLowerCase()

matches

public EBoolean matches(Expr<String> regex)
Return true if this String matches the given regular expression

Parameters:
regex -
Returns:
this.matches(right)
See Also:
String.matches(String)

matches

public EBoolean matches(String regex)
Return true if this String matches the given regular expression

Parameters:
regex -
Returns:
this.matches(regex)
See Also:
String.matches(String)

prepend

public EString prepend(Expr<String> str)
Prepend the given String and return the result

Parameters:
str -
Returns:
str + this

prepend

public EString prepend(String str)
Prepend the given String and return the result

Parameters:
str -
Returns:
str + this

split

public Expr<String[]> split(String regex)
Split the given String with regex as the matcher for the separator

Parameters:
regex -
Returns:
this.split(regex)
See Also:
String.split(String)

startsWith

public EBoolean startsWith(Expr<String> str)
Return true if this starts with str

Parameters:
str -
Returns:
this.startsWith(str)
See Also:
String.startsWith(String)

startsWith

public EBoolean startsWith(Expr<String> str,
                           boolean caseSensitive)
Return true if this starts with str

Parameters:
str -
caseSensitive -
Returns:
See Also:
String.startsWith(String)

startsWith

public EBoolean startsWith(String str)
Return true if this starts with str

Parameters:
str -
Returns:
this.startsWith(str)
See Also:
String.startsWith(String)

startsWith

public EBoolean startsWith(String str,
                           boolean caseSensitive)
Return true if this starts with str

Parameters:
str -
caseSensitive -
Returns:
See Also:
String.startsWith(String)

stringValue

public EString stringValue()
Description copied from class: EComparableBase
Get a cast to String expression

Overrides:
stringValue in class EComparableBase<String>
Returns:
See Also:
Object.toString()

substring

public EString substring(int beginIndex)
Get the given substring

Parameters:
beginIndex -
Returns:
this.substring(beginIndex)
See Also:
String.substring(int)

substring

public EString substring(int beginIndex,
                         int endIndex)
Get the given substring

Parameters:
beginIndex -
endIndex -
Returns:
this.substring(beginIndex, endIndex)
See Also:
String.substring(int, int)

toLowerCase

public EString toLowerCase()
Get the lower case form

Returns:
this.toLowerCase()
See Also:
String.toLowerCase()

toUpperCase

public EString toUpperCase()
Get the upper case form

Returns:
See Also:
String.toUpperCase()

trim

public EString trim()
Get a copy of the string, with leading and trailing whitespace omitted.

Returns:
See Also:
String.trim()

upper

public EString upper()
Get the upper case form

Returns:
See Also:
String.toUpperCase()


Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.