com.mysema.query.types.expr
Class EStringConst

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
                      extended by com.mysema.query.types.expr.EStringConst
All Implemented Interfaces:
Constant<String>, Serializable

public final class EStringConst
extends EString
implements Constant<String>

EStringConst represents String constants

Author:
tiwe
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.mysema.query.types.Expr
primitive
 
Method Summary
 void accept(Visitor v)
           
 EString append(Expr<String> s)
          Get the concatenation of this and str
 EString append(String s)
          Get the concatenation of this and str
 Expr<Character> charAt(int i)
          Get the character at the given index
 EString concat(String s)
          Get the concatenation of this and str
static EString create(String str)
          Factory method for constants
static EString create(String str, boolean populateCache)
           
 EBoolean eq(String s)
          Get a this == right expression
 boolean equals(Object o)
           
 EBoolean equalsIgnoreCase(String str)
          Compares this EString to another EString, ignoring case considerations.
 String getConstant()
          Get the constant
 int hashCode()
           
 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
 EString lower()
          Get the lower case form
 EBoolean matches(String pattern)
          Return true if this String matches the given regular expression
 EBoolean ne(String s)
          Get a this <> right expression
 EString prepend(Expr<String> s)
          Prepend the given String and return the result
 EString prepend(String s)
          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
 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.EString
as, charAt, concat, contains, contains, contains, contains, endsWith, endsWith, endsWith, endsWith, equalsIgnoreCase, indexOf, indexOf, indexOf, indexOf, like, like, matches, startsWith, startsWith, startsWith, startsWith, stringValue
 
Methods inherited from class com.mysema.query.types.expr.EComparable
between, between, goe, goe, gt, gt, in, 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
asExpr, count, countDistinct, eq, in, in, in, ne, when, when
 
Methods inherited from class com.mysema.query.types.Expr
getType, notIn, notIn, notIn, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.mysema.query.types.Constant
asExpr
 

Method Detail

create

public static EString create(String str)
Factory method for constants

Parameters:
str -
Returns:

create

public static EString create(String str,
                             boolean populateCache)

accept

public void accept(Visitor v)
Specified by:
accept in class Expr<String>

append

public EString append(Expr<String> s)
Description copied from class: EString
Get the concatenation of this and str

Overrides:
append in class EString
Returns:
this + str

append

public EString append(String s)
Description copied from class: EString
Get the concatenation of this and str

Overrides:
append in class EString
Returns:
this + str

charAt

public Expr<Character> charAt(int i)
Description copied from class: EString
Get the character at the given index

Overrides:
charAt in class EString
Returns:
this.charAt(i)
See Also:
String.charAt(int)

concat

public EString concat(String s)
Description copied from class: EString
Get the concatenation of this and str

Overrides:
concat in class EString
Returns:
this + str

eq

public EBoolean eq(String s)
Description copied from class: Expr
Get a this == right expression

Overrides:
eq in class ESimple<String>
Parameters:
s - rhs of the comparison
Returns:

equals

public boolean equals(Object o)
Specified by:
equals in class Expr<String>

equalsIgnoreCase

public EBoolean equalsIgnoreCase(String str)
Description copied from class: EString
Compares this EString to another EString, ignoring case considerations.

Overrides:
equalsIgnoreCase in class EString
Returns:
this.equalsIgnoreCase(str)
See Also:
String.equalsIgnoreCase(String)

getConstant

public String getConstant()
Description copied from interface: Constant
Get the constant

Specified by:
getConstant in interface Constant<String>
Returns:

hashCode

public int hashCode()
Overrides:
hashCode in class Expr<String>

isEmpty

public EBoolean isEmpty()
Description copied from class: EString
Return true if this String is empty

Overrides:
isEmpty in class EString
Returns:
this.isEmpty()
See Also:
String.isEmpty()

isNotEmpty

public EBoolean isNotEmpty()
Description copied from class: EString
Return true if this String is not empty

Overrides:
isNotEmpty in class EString
Returns:
!this.isEmpty()
See Also:
String.isEmpty()

length

public ENumber<Integer> length()
Description copied from class: EString
Return the length of this String

Overrides:
length in class EString
Returns:
this.length()
See Also:
String.length()

lower

public EString lower()
Description copied from class: EString
Get the lower case form

Overrides:
lower in class EString
Returns:
this.toLowerCase()
See Also:
String.toLowerCase()

matches

public EBoolean matches(String pattern)
Description copied from class: EString
Return true if this String matches the given regular expression

Overrides:
matches in class EString
Returns:
this.matches(regex)
See Also:
String.matches(String)

ne

public EBoolean ne(String s)
Description copied from class: Expr
Get a this <> right expression

Overrides:
ne in class ESimple<String>
Parameters:
s - rhs of the comparison
Returns:

prepend

public EString prepend(Expr<String> s)
Description copied from class: EString
Prepend the given String and return the result

Overrides:
prepend in class EString
Returns:
str + this

prepend

public EString prepend(String s)
Description copied from class: EString
Prepend the given String and return the result

Overrides:
prepend in class EString
Returns:
str + this

split

public Expr<String[]> split(String regex)
Description copied from class: EString
Split the given String with regex as the matcher for the separator

Overrides:
split in class EString
Returns:
this.split(regex)
See Also:
String.split(String)

substring

public EString substring(int beginIndex)
Description copied from class: EString
Get the given substring

Overrides:
substring in class EString
Returns:
this.substring(beginIndex)
See Also:
String.substring(int)

substring

public EString substring(int beginIndex,
                         int endIndex)
Description copied from class: EString
Get the given substring

Overrides:
substring in class EString
Returns:
this.substring(beginIndex, endIndex)
See Also:
String.substring(int, int)

toLowerCase

public EString toLowerCase()
Description copied from class: EString
Get the lower case form

Overrides:
toLowerCase in class EString
Returns:
this.toLowerCase()
See Also:
String.toLowerCase()

toUpperCase

public EString toUpperCase()
Description copied from class: EString
Get the upper case form

Overrides:
toUpperCase in class EString
Returns:
See Also:
String.toUpperCase()

trim

public EString trim()
Description copied from class: EString
Get a copy of the string, with leading and trailing whitespace omitted.

Overrides:
trim in class EString
Returns:
See Also:
String.trim()

upper

public EString upper()
Description copied from class: EString
Get the upper case form

Overrides:
upper in class EString
Returns:
See Also:
String.toUpperCase()


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