File D:\maven-qcr-plugin-testsunitaires\qcr4java\h2-1.3.170-sources\target\site\qc\lecode\command\dml\NoOperation.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.dml;
8
9 import org.h2.command.CommandInterface;
10 import org.h2.command.Prepared;
11 import org.h2.engine.Session;
12 import org.h2.result.ResultInterface;
13
14 /**
15 * Represents an empty statement or a statement that has no effect.
16 */
17 public class NoOperation extends Prepared {
18
19 public NoOperation(Session session) {
20 super(session);
21 }
22
23 public int update() {
24 return 0;
25 }
26
27 public boolean isQuery() {
28 return false;
29 }
30
31 public boolean isTransactional() {
32 return true;
33 }
34
35 public boolean needRecompile() {
36 return false;
37 }
38
39 public boolean isReadOnly() {
40 return true;
41 }
42
43 public ResultInterface queryMeta() {
44 return null;
45 }
46
47 public int getType() {
48 return CommandInterface.NO_OPERATION;
49 }
50
51 }
52