KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > h2 > command > dml > NoOperation


1 /*
2  * Copyright 2004-2006 H2 Group. Licensed under the H2 License, Version 1.0 (http://h2database.com/html/license.html).
3  * Initial Developer: H2 Group
4  */

5 package org.h2.command.dml;
6
7 import org.h2.command.Prepared;
8 import org.h2.engine.Session;
9
10 public class NoOperation extends Prepared {
11
12     public NoOperation(Session session) {
13         super(session);
14     }
15     
16     public int update() {
17         return 0;
18     }
19     
20     public boolean isQuery() {
21         return false;
22     }
23     
24     public boolean isTransactional() {
25         return true;
26     }
27     
28     public boolean needRecompile() {
29         return false;
30     }
31     
32     public boolean isReadOnly() {
33         return true;
34     }
35     
36 }
37
Popular Tags