EMMA Coverage Report (generated Sun Mar 01 22:06:14 CET 2015)
[all classes][org.h2.command.ddl]

COVERAGE SUMMARY FOR SOURCE FILE [DefineCommand.java]

nameclass, %method, %block, %line, %
DefineCommand.java100% (1/1)100% (5/5)100% (15/15)100% (7/7)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class DefineCommand100% (1/1)100% (5/5)100% (15/15)100% (7/7)
DefineCommand (Session): void 100% (1/1)100% (4/4)100% (2/2)
isReadOnly (): boolean 100% (1/1)100% (2/2)100% (1/1)
isTransactional (): boolean 100% (1/1)100% (3/3)100% (1/1)
queryMeta (): ResultInterface 100% (1/1)100% (2/2)100% (1/1)
setTransactional (boolean): void 100% (1/1)100% (4/4)100% (2/2)

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

[all classes][org.h2.command.ddl]
EMMA 2.0.5312 (C) Vladimir Roubtsov