|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
StatementContext keeps the context for a statement.
Method Summary | |
void |
addDependency(Dependency dy)
Track a Dependency within this StatementContext. |
void |
clearInUse()
Mark this context as not in use. |
void |
clearSavePoint()
Clear the save point for the current statement. |
short |
getSQLAllowed()
Get the setting of the SQL allowed state. |
java.lang.String |
getStatementText()
Return the text of the current statement. |
NoPutResultSet[] |
getSubqueryTrackingArray()
Get the subquery tracking array for this query. |
boolean |
getSystemCode()
Return true if this statement is system code. |
boolean |
inTrigger()
Returns whether we started from within the context of a trigger or not. |
boolean |
inUse()
Is this statement context in use or not. |
boolean |
isAtomic()
Indicates whether the statement needs to be executed atomically or not, i.e., whether a commit/rollback is permitted by a connection nested in this statement. |
boolean |
onStack()
Reports whether this StatementContext is on the context stack. |
void |
resetSavePoint()
If this statement context has a savepoint, then it is reset to the current point. |
void |
setInUse(boolean inTrigger,
boolean isAtomic,
java.lang.String stmtText,
ParameterValueSet pvs)
Mark this context as being in use. |
void |
setParentRollback()
Indicate that, in the event of a statement-level exception, this context is NOT the last one that needs to be rolled back--rather, it is nested within some other statement context, and that other context needs to be rolled back, too. |
void |
setSavePoint()
Set a save point for the current statement. |
void |
setSQLAllowed(short allow,
boolean force)
Set the level of SQL allowed in this and subsequent nested statements due to a routine call. |
void |
setSubqueryResultSet(int subqueryNumber,
NoPutResultSet subqueryResultSet,
int numSubqueries)
Set the appropriate entry in the subquery tracking array for the specified subquery. |
void |
setSystemCode()
Set to indicate statement is system code. |
void |
setTopResultSet(ResultSet topResultSet,
NoPutResultSet[] subqueryTrackingArray)
Set the top ResultSet in the ResultSet tree for close down on an error. |
Methods inherited from interface org.apache.derby.iapi.services.context.Context |
cleanupOnError, getContextManager, getIdName, isLastHandler, popMe, pushMe |
Method Detail |
public void setInUse(boolean inTrigger, boolean isAtomic, java.lang.String stmtText, ParameterValueSet pvs)
isAtomic
- true if the statement must be executed
atomicallystmtText
- the text of the statement. Needed for any language
statement (currently, for any statement that can cause a trigger
to fire). Please set this unless you are some funky jdbc setXXX
method or something.pvs
- parameter value set, if it has onepublic void clearInUse()
public void setSavePoint() throws StandardException
StandardException
- Thrown on errorpublic void resetSavePoint() throws StandardException
StandardException
- Thrown on errorpublic void clearSavePoint() throws StandardException
StandardException
- Thrown on errorpublic void setTopResultSet(ResultSet topResultSet, NoPutResultSet[] subqueryTrackingArray) throws StandardException
topResultSet
- The top ResultSet in the ResultSet treesubqueryTrackingArray
- (Sparse) of tops of subquery ResultSet trees
StandardException
- Thrown on errorpublic void setSubqueryResultSet(int subqueryNumber, NoPutResultSet subqueryResultSet, int numSubqueries) throws StandardException
subqueryNumber
- The subquery # for this subquerysubqueryResultSet
- The NoPutResultSet at the top of the subquerynumSubqueries
- The total # of subqueries in the entire query
StandardException
- Thrown on errorpublic NoPutResultSet[] getSubqueryTrackingArray() throws StandardException
StandardException
- Thrown on errorpublic void addDependency(Dependency dy) throws StandardException
dy
- The dependency to track.
StandardException
- Thrown on errorpublic boolean onStack()
public boolean inTrigger()
public boolean isAtomic()
public boolean inUse()
public java.lang.String getStatementText()
public void setSQLAllowed(short allow, boolean force)
force
- set to true to override more restrictive setting. Used to
reset the permissions after a function call.public short getSQLAllowed()
public void setSystemCode()
public boolean getSystemCode()
public void setParentRollback()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |