public class DatabaseQueryContext extends AbstractQueryContext
Constructor and Description |
---|
DatabaseQueryContext(DatabaseConnection database)
Constructs the QueryContext.
|
Modifier and Type | Method and Description |
---|---|
QueryPlanNode |
createViewQueryPlanNode(TableName name)
Creates a QueryPlanNode for the view with the given name.
|
long |
currentSequenceValue(String name)
Returns the current sequence value returned for the given sequence
generator within the connection defined by this context.
|
Database |
getDatabase()
Returns the Database object that this context is a child of.
|
DataTableDef |
getDataTableDef(TableName name)
Returns a DataTableDef for the given table name.
|
FunctionLookup |
getFunctionLookup()
Returns the system FunctionLookup object.
|
GrantManager |
getGrantManager()
Returns the GrantManager object that is used to determine grant information
for the database.
|
TransactionSystem |
getSystem()
Returns a TransactionSystem object that is used to determine information
about the transactional system.
|
DataTable |
getTable(TableName name)
Returns a DataTable from the database with the given table name.
|
String |
getUserName()
Returns the user name of the connection.
|
long |
nextSequenceValue(String name)
Increments the sequence generator and returns the next unique key.
|
void |
setSequenceValue(String name,
long value)
Sets the current sequence value for the given sequence generator.
|
addMarkedTable, clearCache, getCachedNode, getMarkedTable, putCachedNode
public DatabaseQueryContext(DatabaseConnection database)
public Database getDatabase()
public TransactionSystem getSystem()
public FunctionLookup getFunctionLookup()
public GrantManager getGrantManager()
public DataTable getTable(TableName name)
public DataTableDef getDataTableDef(TableName name)
public QueryPlanNode createViewQueryPlanNode(TableName name)
public long nextSequenceValue(String name)
public long currentSequenceValue(String name)
public void setSequenceValue(String name, long value)
public String getUserName()
Copyright © 2015. All rights reserved.