--- /dev/null
+/*\r
+\r
+ Derby - Class org.apache.derby.impl.sql.compile.TransactionStatementNode\r
+\r
+ Licensed to the Apache Software Foundation (ASF) under one or more\r
+ contributor license agreements. See the NOTICE file distributed with\r
+ this work for additional information regarding copyright ownership.\r
+ The ASF licenses this file to you under the Apache License, Version 2.0\r
+ (the "License"); you may not use this file except in compliance with\r
+ the License. You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+ Unless required by applicable law or agreed to in writing, software\r
+ distributed under the License is distributed on an "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ See the License for the specific language governing permissions and\r
+ limitations under the License.\r
+\r
+ */\r
+\r
+\r
+package org.apache.derby.impl.sql.compile;\r
+\r
+import org.apache.derby.iapi.services.context.ContextManager;\r
+\r
+import org.apache.derby.iapi.services.sanity.SanityManager;\r
+\r
+/**\r
+ * A TransactionStatementNode represents any type of Transaction statement: \r
+ * SET TRANSACTION, COMMIT, and ROLLBACK.\r
+ *\r
+ */\r
+\r
+abstract class TransactionStatementNode extends StatementNode\r
+{\r
+ int activationKind()\r
+ {\r
+ return StatementNode.NEED_NOTHING_ACTIVATION;\r
+ }\r
+ /**\r
+ * COMMIT and ROLLBACK are allowed to commit\r
+ * and rollback, duh.\r
+ *\r
+ * @return false \r
+ */ \r
+ public boolean isAtomic() \r
+ {\r
+ return false;\r
+ }\r
+\r
+ /**\r
+ * Returns whether or not this Statement requires a set/clear savepoint\r
+ * around its execution. The following statement "types" do not require them:\r
+ * Cursor - unnecessary and won't work in a read only environment\r
+ * Xact - savepoint will get blown away underneath us during commit/rollback\r
+ *\r
+ * @return boolean Whether or not this Statement requires a set/clear savepoint\r
+ */\r
+ public boolean needsSavepoint()\r
+ {\r
+ return false;\r
+ }\r
+}\r