Class SqlRunner
java.lang.Object
java.lang.Thread
org.jumpmind.vaadin.ui.sqlexplorer.SqlRunner
- All Implemented Interfaces:
Runnable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionSqlRunner(String sqlText, boolean runAsScript, String user, IDb db, Settings settings, QueryPanel queryPanel, boolean isInQueryGeneralResults) SqlRunner(String sqlText, boolean runAsScript, String user, IDb db, Settings settings, SqlExplorer explorer) SqlRunner(String sqlText, boolean runAsScript, String user, IDb db, Settings settings, SqlExplorer explorer, org.jumpmind.vaadin.ui.sqlexplorer.SqlRunner.ISqlRunnerListener listener) SqlRunner(String sqlText, boolean runAsScript, String user, IDb db, Settings settings, SqlExplorer explorer, org.jumpmind.vaadin.ui.sqlexplorer.SqlRunner.ISqlRunnerListener listener, QueryPanel queryPanel, boolean isInQueryGeneralResults) SqlRunner(String sqlText, boolean runAsScript, String user, IDb db, Settings settings, org.jumpmind.vaadin.ui.sqlexplorer.SqlRunner.ISqlRunnerListener listener) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringbuildErrorMessage(String message) protected Stringvoidcancel()static voidcommit(Connection connection) protected Class<?>getClass(ResultSetMetaData meta, int i) getUser()booleanbooleanbooleanprotected com.vaadin.flow.component.orderedlayout.ScrollerputResultsInArea(ResultSet rs, int maxResultSize) protected StringresultsAsText(ResultSet rs, int maxResultSize) static voidrollback(Connection connection) voidrun()voidsetConnection(Connection connection) voidsetListener(org.jumpmind.vaadin.ui.sqlexplorer.SqlRunner.ISqlRunnerListener listener) voidsetLogAtDebug(boolean logAtDebug) voidsetShowSqlOnResults(boolean showSqlOnResults) protected com.vaadin.flow.component.orderedlayout.ScrollerwrapTextInComponent(String text) protected com.vaadin.flow.component.orderedlayout.ScrollerwrapTextInComponent(String text, String style) Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Constructor Details
-
SqlRunner
-
SqlRunner
-
SqlRunner
public SqlRunner(String sqlText, boolean runAsScript, String user, IDb db, Settings settings, SqlExplorer explorer) -
SqlRunner
public SqlRunner(String sqlText, boolean runAsScript, String user, IDb db, Settings settings, SqlExplorer explorer, org.jumpmind.vaadin.ui.sqlexplorer.SqlRunner.ISqlRunnerListener listener) -
SqlRunner
public SqlRunner(String sqlText, boolean runAsScript, String user, IDb db, Settings settings, QueryPanel queryPanel, boolean isInQueryGeneralResults) -
SqlRunner
public SqlRunner(String sqlText, boolean runAsScript, String user, IDb db, Settings settings, SqlExplorer explorer, org.jumpmind.vaadin.ui.sqlexplorer.SqlRunner.ISqlRunnerListener listener, QueryPanel queryPanel, boolean isInQueryGeneralResults)
-
-
Method Details
-
getSqlRunners
-
setLogAtDebug
public void setLogAtDebug(boolean logAtDebug) -
setShowSqlOnResults
public void setShowSqlOnResults(boolean showSqlOnResults) -
commit
- Throws:
SQLException
-
rollback
-
getStartTime
-
getEndTime
-
run
public void run() -
buildErrorMessage
-
buildErrorMessage
-
getClass
- Throws:
SQLException
-
wrapTextInComponent
-
wrapTextInComponent
-
putResultsInArea
protected com.vaadin.flow.component.orderedlayout.Scroller putResultsInArea(ResultSet rs, int maxResultSize) throws SQLException - Throws:
SQLException
-
resultsAsText
- Throws:
SQLException
-
setListener
public void setListener(org.jumpmind.vaadin.ui.sqlexplorer.SqlRunner.ISqlRunnerListener listener) -
getConnection
-
setConnection
-
getUser
-
getSqlText
-
isAutoCommit
public boolean isAutoCommit() -
isRowsUpdated
public boolean isRowsUpdated() -
isRunAsScript
public boolean isRunAsScript() -
cancel
public void cancel()
-