public abstract class DBQueryHandler
extends java.lang.Object
Constructor and Description |
---|
DBQueryHandler() |
Modifier and Type | Method and Description |
---|---|
abstract PossibleRowsHolder |
fetchPossibleRows(SearchPlan plan) |
protected DBPathClause |
getKeyClause(SearchPlan plan)
If a specific key has been requested as part of the criteria then
we can create a query clause to directly access the specific data
|
protected boolean |
isBottomLevel(VirtualDB vDB,
DBClass dbClass,
DBCriteria criteria)
If the class that you are searching for or the field that you are searching with
is defined in this layer then no point searching any deeper.
|
static void |
record(DataSource ds,
java.lang.String message,
java.lang.Object rows,
long start)
Record the info into the timings files.
|
protected PossibleRowsHolder |
tryWillSearchFail(SearchPlan plan)
Will this search fail ?
1) If the searched class is excluded from all layers
2) Is the bottom level above the first non excluded layer ?
|
public abstract PossibleRowsHolder fetchPossibleRows(SearchPlan plan) throws java.lang.Exception
plan
- java.lang.Exception
- a serious problemprotected DBPathClause getKeyClause(SearchPlan plan)
plan
- public static void record(@Nonnull DataSource ds, java.lang.String message, java.lang.Object rows, long start)
ds
- the data sourcemessage
- the messagerows
- start
- protected PossibleRowsHolder tryWillSearchFail(SearchPlan plan)
plan
- protected boolean isBottomLevel(VirtualDB vDB, DBClass dbClass, DBCriteria criteria)
vDB
- the layerdbClass
- the classcriteria
- the criteriastSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.