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 Group4 */5 package org.h2.engine;6 7 import java.sql.SQLException ;8 9 import org.h2.command.CommandInterface;10 import org.h2.message.Trace;11 import org.h2.store.DataHandler;12 13 public interface SessionInterface {14 CommandInterface prepareCommand(String sql) throws SQLException ;15 void close() throws SQLException ;16 Trace getTrace();17 boolean isClosed();18 SessionInterface createSession(ConnectionInfo ci) throws SQLException ;19 int getPowerOffCount();20 void setPowerOffCount(int i) throws SQLException ;21 DataHandler getDataHandler();22 }23