com.mysema.query.types.expr
Class StringExpressions

java.lang.Object
  extended by com.mysema.query.types.expr.StringExpressions

public final class StringExpressions
extends Object

Extended String expressions, supported by the SQL module

Author:
tiwe

Method Summary
static StringExpression lpad(Expression<String> in, Expression<Integer> length)
           
static StringExpression lpad(Expression<String> in, int length)
           
static StringExpression lpad(Expression<String> in, int length, char c)
           
static StringExpression lpad(Expression<String> in, NumberExpression<Integer> length, char c)
           
static StringExpression ltrim(Expression<String> str)
           
static StringExpression rpad(Expression<String> in, Expression<Integer> length)
           
static StringExpression rpad(Expression<String> in, int length)
           
static StringExpression rpad(Expression<String> in, int length, char c)
           
static StringExpression rpad(Expression<String> in, NumberExpression<Integer> length, char c)
           
static StringExpression rtrim(Expression<String> str)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

ltrim

public static StringExpression ltrim(Expression<String> str)
Parameters:
str -
Returns:
ltrim(str)

rtrim

public static StringExpression rtrim(Expression<String> str)
Parameters:
str -
Returns:
rtrim(str)

lpad

public static StringExpression lpad(Expression<String> in,
                                    int length)
Parameters:
in -
length -
Returns:

lpad

public static StringExpression lpad(Expression<String> in,
                                    Expression<Integer> length)
Parameters:
in -
length -
Returns:

rpad

public static StringExpression rpad(Expression<String> in,
                                    int length)
Parameters:
in -
length -
Returns:

rpad

public static StringExpression rpad(Expression<String> in,
                                    Expression<Integer> length)
Parameters:
in -
length -
Returns:

lpad

public static StringExpression lpad(Expression<String> in,
                                    NumberExpression<Integer> length,
                                    char c)
Parameters:
in -
length -
c -
Returns:

lpad

public static StringExpression lpad(Expression<String> in,
                                    int length,
                                    char c)
Parameters:
in -
length -
c -
Returns:

rpad

public static StringExpression rpad(Expression<String> in,
                                    NumberExpression<Integer> length,
                                    char c)
Parameters:
in -
length -
c -
Returns:

rpad

public static StringExpression rpad(Expression<String> in,
                                    int length,
                                    char c)
Parameters:
in -
length -
c -
Returns:


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