com.mysema.query.support
Class SerializerBase<S extends SerializerBase<S>>
java.lang.Object
com.mysema.query.support.SerializerBase<S>
- All Implemented Interfaces:
- Visitor<Void,Void>
- Direct Known Subclasses:
- ColQuerySerializer, JDOQLSerializer, JPQLSerializer, SQLSerializer
public abstract class SerializerBase<S extends SerializerBase<S>>
- extends Object
- implements Visitor<Void,Void>
SerializerBase is a stub for Serializer implementations
- Version:
- $Id$
- Author:
- tiwe
Method Summary |
S |
append(String... str)
|
protected String |
getConstantPrefix()
|
Map<Object,String> |
getConstantToLabel()
|
protected Template |
getTemplate(Operator<?> op)
|
S |
handle(Expression<?> expr)
|
S |
handle(JoinFlag joinFlag)
|
S |
handle(String sep,
List<?> expressions)
|
protected boolean |
serialize(JoinFlag.Position position,
Set<JoinFlag> flags)
|
protected boolean |
serialize(QueryFlag.Position position,
Set<QueryFlag> flags)
|
void |
setAnonParamPrefix(String prefix)
|
void |
setConstantPrefix(String prefix)
|
void |
setParamPrefix(String prefix)
|
String |
toString()
|
Void |
visit(Constant<?> expr,
Void context)
|
Void |
visit(FactoryExpression<?> expr,
Void context)
|
Void |
visit(Operation<?> expr,
Void context)
|
Void |
visit(ParamExpression<?> param,
Void context)
|
Void |
visit(Path<?> path,
Void context)
|
Void |
visit(TemplateExpression<?> expr,
Void context)
|
protected void |
visitOperation(Class<?> type,
Operator<?> operator,
List<Expression<?>> args)
|
Methods inherited from interface com.mysema.query.types.Visitor |
visit |
SerializerBase
public SerializerBase(Templates templates)
SerializerBase
public SerializerBase(Templates templates,
boolean dry)
append
public S append(String... str)
getConstantPrefix
protected String getConstantPrefix()
getConstantToLabel
public Map<Object,String> getConstantToLabel()
getTemplate
protected Template getTemplate(Operator<?> op)
handle
public S handle(Expression<?> expr)
handle
public S handle(JoinFlag joinFlag)
handle
public final S handle(String sep,
List<?> expressions)
serialize
protected boolean serialize(QueryFlag.Position position,
Set<QueryFlag> flags)
serialize
protected boolean serialize(JoinFlag.Position position,
Set<JoinFlag> flags)
setConstantPrefix
public void setConstantPrefix(String prefix)
setParamPrefix
public void setParamPrefix(String prefix)
setAnonParamPrefix
public void setAnonParamPrefix(String prefix)
toString
public String toString()
- Overrides:
toString
in class Object
visit
public Void visit(Constant<?> expr,
Void context)
- Specified by:
visit
in interface Visitor<Void,Void>
visit
public Void visit(ParamExpression<?> param,
Void context)
- Specified by:
visit
in interface Visitor<Void,Void>
visit
public Void visit(TemplateExpression<?> expr,
Void context)
- Specified by:
visit
in interface Visitor<Void,Void>
visit
public Void visit(FactoryExpression<?> expr,
Void context)
- Specified by:
visit
in interface Visitor<Void,Void>
visit
public Void visit(Operation<?> expr,
Void context)
- Specified by:
visit
in interface Visitor<Void,Void>
visit
public Void visit(Path<?> path,
Void context)
- Specified by:
visit
in interface Visitor<Void,Void>
visitOperation
protected void visitOperation(Class<?> type,
Operator<?> operator,
List<Expression<?>> args)
Copyright © 2007-2011 Mysema Ltd. All Rights Reserved.