File D:\maven-qcr-plugin-testsunitaires\qcr4java\h2-1.3.170-sources\target\site\qc\lecode\command\ddl\DefineCommand.java.html

1 /*
2 * Copyright 2004-2011 H2 Group. Multiple-Licensed under the H2 License,
3 * Version 1.0, and under the Eclipse Public License, Version 1.0
4 * (http://h2database.com/html/license.html).
5 * Initial Developer: H2 Group
6 */
7 package org.h2.command.ddl;
8
9 import org.h2.command.Prepared;
10 import org.h2.engine.Session;
11 import org.h2.result.ResultInterface;
12
13 /**
14 * This class represents a non-transaction statement, for example a CREATE or
15 * DROP.
16 */
17 public abstract class DefineCommand extends Prepared {
18
19 /**
20 * The transactional behavior. The default is disabled, meaning the command
21 * commits an open transaction.
22 */
23 protected boolean transactional;
24
25 /**
26 * Create a new command for the given session.
27 *
28 * @param session the session
29 */
30 DefineCommand(Session session) {
31 super(session);
32 }
33
34 public boolean isReadOnly() {
35 return false;
36 }
37
38 public ResultInterface queryMeta() {
39 return null;
40 }
41
42 public void setTransactional(boolean transactional) {
43 this.transactional = transactional;
44 }
45
46 public boolean isTransactional() {
47 return transactional;
48 }
49
50 }
51