|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mysema.query.types.ExpressionBase<T>
com.mysema.query.types.ConstantImpl<T>
public class ConstantImpl<T>
ConstantImpl is the default implementation of the Constant interface
| Constructor Summary | |
|---|---|
ConstantImpl(Class<T> type,
T constant)
Create a new Constant of the given type for the given object |
|
ConstantImpl(T constant)
Create a new Constant for the given object |
|
| Method Summary | ||
|---|---|---|
|
accept(Visitor<R,C> v,
C context)
Accept the visitor with the given context |
|
static Constant<Boolean> |
create(boolean b)
Get a constant for the given boolean value |
|
static Constant<Byte> |
create(byte i)
Get a constant for the given byte value |
|
static Constant<Character> |
create(char i)
Get a constant for the given char value |
|
static
|
create(Class<T> constant)
Create a constant for the given class |
|
static Constant<Integer> |
create(int i)
Get a constant for the given int value |
|
static Constant<Long> |
create(long i)
Get a constant for the given long value |
|
static Constant<Short> |
create(short i)
Create a constant for the given short value |
|
static Constant<String> |
create(String str)
Create a constant for the given string |
|
static Constant<String> |
create(String str,
boolean populateCache)
Create a constant for the given string |
|
boolean |
equals(Object o)
|
|
T |
getConstant()
Get the constant |
|
| Methods inherited from class com.mysema.query.types.ExpressionBase |
|---|
getType, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.mysema.query.types.Expression |
|---|
getType |
| Constructor Detail |
|---|
public ConstantImpl(T constant)
constant -
public ConstantImpl(Class<T> type,
T constant)
type - constant - | Method Detail |
|---|
public static Constant<Boolean> create(boolean b)
b -
public static Constant<Byte> create(byte i)
i -
public static Constant<Character> create(char i)
i -
public static Constant<Integer> create(int i)
i -
public static Constant<Long> create(long i)
i -
public static Constant<Short> create(short i)
i -
public static Constant<String> create(String str)
str -
public static Constant<String> create(String str,
boolean populateCache)
str - populateCache - whether to add the created constant to the cache
public static <T> Constant<Class<T>> create(Class<T> constant)
constant -
public <R,C> R accept(Visitor<R,C> v,
C context)
Expression
accept in interface Expression<T>R - return typeC - context typev - visitorcontext - context of visit
public boolean equals(Object o)
equals in class Objectpublic T getConstant()
Constant
getConstant in interface Constant<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||