org.objectweb.speedo.query.lib
Class SpeedoQueryHelper
java.lang.Object
org.objectweb.speedo.query.lib.SpeedoQueryHelper
- All Implemented Interfaces:
- org.objectweb.jorm.util.api.Loggable
- Direct Known Subclasses:
- EJBQLAbstractVisitor, SpeedoQLAbstractVisitor
public class SpeedoQueryHelper
- extends java.lang.Object
- implements org.objectweb.jorm.util.api.Loggable
- Author:
- Alexandre Lefebvre
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
public org.objectweb.util.monolog.api.Logger logger
- Logger for monolog.
debug
public boolean debug
curClass
protected java.lang.String curClass
- the name of the current class
jmiManager
protected org.objectweb.jorm.metainfo.api.Manager jmiManager
includeSubClasses
protected boolean includeSubClasses
ids
protected java.util.Map ids
- ids is a temporary structure to store variables, parameters, name
definitions, and build corresponding QueryTree(s)
key: the name to resolve
value: an IdValue object which contains the name, the paths, and the
corresponding QueryTree (see the definition of IdValue object in
SpeedoQLAbstractVisitor object)
SpeedoQueryHelper
public SpeedoQueryHelper()
splitPath
protected java.lang.String[] splitPath(java.lang.String path)
- split a dot separated path into tokens
define
protected QueryTreeField define(org.objectweb.medor.query.jorm.lib.QueryBuilder theqb,
java.lang.String id,
java.lang.String alias)
throws MedorException,
SpeedoException
- Throws:
MedorException
SpeedoException
extent
protected org.objectweb.medor.query.jorm.lib.PNameField extent(java.lang.String classname,
java.lang.String alias)
throws SpeedoException,
MedorException
- Throws:
SpeedoException
MedorException
mergePath
protected java.lang.String mergePath(java.lang.String[] path,
int begin,
int length)
mergePath
protected java.lang.String mergePath(java.lang.String[] path)
- Parameters:
path
- the input path
- Returns:
- the merge tokens into a dot separated path
setLogger
public void setLogger(org.objectweb.util.monolog.api.Logger logger)
- Specified by:
setLogger
in interface org.objectweb.jorm.util.api.Loggable
getLogger
public org.objectweb.util.monolog.api.Logger getLogger()
- Specified by:
getLogger
in interface org.objectweb.jorm.util.api.Loggable
setLoggerFactory
public void setLoggerFactory(org.objectweb.util.monolog.api.LoggerFactory loggerFactory)
- Specified by:
setLoggerFactory
in interface org.objectweb.jorm.util.api.Loggable
getLoggerFactory
public org.objectweb.util.monolog.api.LoggerFactory getLoggerFactory()
- Specified by:
getLoggerFactory
in interface org.objectweb.jorm.util.api.Loggable