/*
* JBoss, Home of Professional Open Source
* Copyright 2005, JBoss Inc., and individual contributors as indicated
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.hibernate.console;
import java.beans.PropertyChangeListener;
import java.util.List;
import org.hibernate.eclipse.console.common.HibernateExtension;
import org.jboss.tools.hibernate.runtime.spi.ISession;
/**
* @author MAX
*
*/
public interface QueryPage {
/**
* Returns query run time in milliseconds
* @return
*/
public abstract long getQueryTime();
public abstract List<Object> getList();
/**
* @param i
*/
public abstract void setId(int i);
public abstract List<String> getPathNames();
public abstract void release();
/**
* @return
*/
public abstract int getID();
/**
* @return
*/
public abstract boolean isSticky();
/**
* @return
*/
public abstract List<Throwable> getExceptions();
/**
* @return
*/
public abstract String getQueryString();
public abstract void setQueryString(String str);
/**
* @return
*/
public abstract String getTabName();
public abstract void setTabName(String tabName);
/**
* @param b
*/
public abstract void setSticky(boolean b);
public ISession getSession();
public void setSession(ISession session);
public HibernateExtension getHibernateExtension();
public void addPropertyChangeListener(PropertyChangeListener listener);
public void addPropertyChangeListener(
String propertyName,
PropertyChangeListener listener);
public void removePropertyChangeListener(PropertyChangeListener listener);
public void removePropertyChangeListener(
String propertyName,
PropertyChangeListener listener);
public void addException(Throwable he);
/** Return result size if known, -1 if not */
public int getResultSize();
public void setModel(QueryInputModel model);
}