Package com.mckoi.database
Class AbstractQueryContext
java.lang.Object
com.mckoi.database.AbstractQueryContext
- All Implemented Interfaces:
QueryContext
- Direct Known Subclasses:
DatabaseQueryContext
An abstract implementation of QueryContext
- Author:
- Tobias Downer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMarkedTable(String mark_name, Table table) Marks a table in a query plan.voidClears the cache of any cached tables.getCachedNode(long id) Returns a cached table or null if it isn't cached.getMarkedTable(String mark_name) Returns a table that was marked in a query plan or null if no mark was found.voidputCachedNode(long id, Table table) Put a Table into the cache.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mckoi.database.QueryContext
currentSequenceValue, getFunctionLookup, getSystem, getUserName, nextSequenceValue, setSequenceValue
-
Constructor Details
-
AbstractQueryContext
public AbstractQueryContext()
-
-
Method Details
-
addMarkedTable
Marks a table in a query plan.- Specified by:
addMarkedTablein interfaceQueryContext
-
getMarkedTable
Returns a table that was marked in a query plan or null if no mark was found.- Specified by:
getMarkedTablein interfaceQueryContext
-
putCachedNode
Put a Table into the cache.- Specified by:
putCachedNodein interfaceQueryContext
-
getCachedNode
Returns a cached table or null if it isn't cached.- Specified by:
getCachedNodein interfaceQueryContext
-
clearCache
public void clearCache()Clears the cache of any cached tables.- Specified by:
clearCachein interfaceQueryContext
-