public class AliasFactory
extends java.lang.Object
Constructor and Description |
---|
AliasFactory(PathFactory pathFactory,
TypeSystem typeSystem) |
Modifier and Type | Method and Description |
---|---|
<A> A |
createAliasForExpr(java.lang.Class<A> cl,
Expression<? extends A> expr)
Create an alias instance for the given class and Expression
|
<A> A |
createAliasForProperty(java.lang.Class<A> cl,
java.lang.Object parent,
Expression<?> path)
Create an alias instance for the given class, parent and path
|
<A> A |
createAliasForVariable(java.lang.Class<A> cl,
java.lang.String var)
Create an alias instance for the given class and variable name
|
protected <A> A |
createProxy(java.lang.Class<A> cl,
Expression<?> path)
Create a proxy instance for the given class and path
|
<A extends Expression<?>> |
getCurrent()
Get the current thread bound expression without reseting it
|
<A extends Expression<?>> |
getCurrentAndReset()
Get the current thread bound expression and reset it
|
void |
reset()
Reset the thread bound expression to null
|
void |
setCurrent(Expression<?> expr)
Set the thread bound expression to the given value
|
public AliasFactory(PathFactory pathFactory, TypeSystem typeSystem)
public <A> A createAliasForExpr(java.lang.Class<A> cl, Expression<? extends A> expr)
A
- cl
- expr
- public <A> A createAliasForProperty(java.lang.Class<A> cl, java.lang.Object parent, Expression<?> path)
A
- cl
- parent
- path
- public <A> A createAliasForVariable(java.lang.Class<A> cl, java.lang.String var)
A
- cl
- var
- protected <A> A createProxy(java.lang.Class<A> cl, Expression<?> path)
A
- cl
- path
- @Nullable public <A extends Expression<?>> A getCurrent()
A
- @Nullable public <A extends Expression<?>> A getCurrentAndReset()
A
- public void reset()
public void setCurrent(Expression<?> expr)
expr
- Copyright © 2007-2013 Mysema Ltd. All Rights Reserved.