|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.speedo.query.lib.AbstractCompiledQuery
public abstract class AbstractCompiledQuery
Defines a common abstract implement of CompiledQuery interface. This class must be subclassed for each Speedo personality.
Field Summary | |
---|---|
protected long |
age
Compiled queries are cached by Speedo. |
protected java.lang.ClassLoader |
classLoader
the classloader used for the loading of persistent class. |
protected int |
fixCount
Compiled queries are cached by Speedo. |
protected JormFactory |
jf
Is the JormFactory in charge of the initialization of Naming of persistent class. |
protected org.objectweb.util.monolog.api.Logger |
logger
Logger for monolog |
protected DelegatePMapper |
mapper
The delegate mapper initializes a required class if it is not already done. |
protected java.util.Collection |
pncParams
The PNamingContext to use for the parameters. |
protected PrefetchBufferFactory |
prefetchBufferFactory
Is the Factory of PrefetchBuffer |
protected short |
status
status of the Compiledquery |
protected UserCache |
userCache
A query can correspond to a UserCache. |
protected org.objectweb.medor.expression.api.Operand[] |
userCacheIndexes
|
Fields inherited from interface org.objectweb.speedo.query.api.CompiledQuery |
---|
COMPILED, DEFINED, UNDEFINED |
Constructor Summary | |
---|---|
AbstractCompiledQuery()
|
Method Summary | |
---|---|
boolean |
accept(State ce)
|
protected void |
assignMapper(QueryTree qt)
Assign mappers and project and project name on the JormExtent nodes include in a QueryTree. |
void |
fixCe()
|
long |
getCeAge()
|
int |
getCeFixCount()
|
java.lang.Object |
getCeObject()
|
protected boolean |
getFieldComparaison(org.objectweb.medor.expression.api.Expression e,
java.util.Map field2value)
|
org.objectweb.util.monolog.api.Logger |
getLogger()
|
org.objectweb.jorm.api.PMapper |
getMapper()
|
PrefetchBufferFactory |
getPrefetchBufferFactory()
|
protected org.objectweb.jorm.type.api.PType |
getPType(java.lang.String name)
|
short |
getStatus()
|
void |
init(org.objectweb.util.monolog.api.Logger l,
org.objectweb.jorm.api.PMapper m,
PrefetchBufferFactory pbf,
JormFactory _jf)
|
void |
setCeAge(long _age)
|
void |
setJormFactory(JormFactory jf)
|
abstract void |
setMapper(org.objectweb.jorm.api.PMapper m)
|
void |
unfixCe()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.speedo.query.api.CompiledQuery |
---|
compile, execute, execute, getDefinition |
Methods inherited from interface org.objectweb.perseus.cache.api.CacheEntry |
---|
getCeIdentifier |
Methods inherited from interface org.objectweb.perseus.cache.api.CacheEntry |
---|
getCeIdentifier |
Field Detail |
---|
protected short status
CompiledQuery.COMPILED
,
CompiledQuery.DEFINED
,
CompiledQuery.UNDEFINED
protected java.lang.ClassLoader classLoader
protected java.util.Collection pncParams
protected org.objectweb.util.monolog.api.Logger logger
protected DelegatePMapper mapper
protected JormFactory jf
protected PrefetchBufferFactory prefetchBufferFactory
protected UserCache userCache
protected org.objectweb.medor.expression.api.Operand[] userCacheIndexes
protected long age
protected int fixCount
Constructor Detail |
---|
public AbstractCompiledQuery()
Method Detail |
---|
public org.objectweb.jorm.api.PMapper getMapper()
public abstract void setMapper(org.objectweb.jorm.api.PMapper m)
public void setJormFactory(JormFactory jf)
public org.objectweb.util.monolog.api.Logger getLogger()
public PrefetchBufferFactory getPrefetchBufferFactory()
public void init(org.objectweb.util.monolog.api.Logger l, org.objectweb.jorm.api.PMapper m, PrefetchBufferFactory pbf, JormFactory _jf)
protected org.objectweb.jorm.type.api.PType getPType(java.lang.String name)
public short getStatus()
getStatus
in interface CompiledQuery
protected void assignMapper(QueryTree qt) throws SpeedoException
SpeedoException
protected boolean getFieldComparaison(org.objectweb.medor.expression.api.Expression e, java.util.Map field2value)
public boolean accept(State ce)
accept
in interface StateFilter
public long getCeAge()
getCeAge
in interface ReplaceableCacheEntry
public void setCeAge(long _age)
setCeAge
in interface ReplaceableCacheEntry
public void fixCe()
fixCe
in interface FixableCacheEntry
public void unfixCe() throws UnFixProtocolException
unfixCe
in interface FixableCacheEntry
UnFixProtocolException
public int getCeFixCount()
getCeFixCount
in interface FixableCacheEntry
public java.lang.Object getCeObject()
getCeObject
in interface CacheEntry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |