| Modifier and Type | Class and Description |
|---|---|
static class |
QueryExecutor.Concurrency |
static class |
QueryExecutor.DataTableCreated |
static class |
QueryExecutor.ErrorCatched |
static class |
QueryExecutor.FetchFinished |
static class |
QueryExecutor.FetchStarted |
static class |
QueryExecutor.Finished |
static class |
QueryExecutor.Holdability |
static class |
QueryExecutor.QueryExecutorEvent |
static interface |
QueryExecutor.QueryExecutorListener |
static class |
QueryExecutor.ResultSetAccepted |
static class |
QueryExecutor.ResultSetType |
static class |
QueryExecutor.Started |
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
protected boolean |
closeResultSet |
protected boolean |
closeStatement |
protected QueryExecutor.Concurrency |
concurrency |
protected Connection |
connection |
protected QueryExecutor.Holdability |
holdability |
protected ListenersHelper<QueryExecutor.QueryExecutorListener,QueryExecutor.QueryExecutorEvent> |
listeners |
protected Reciver<SQLWarning> |
messageConsumer |
protected MessageReader |
messageReader |
protected PropertyChangeSupport |
psupport |
protected String |
query |
protected QueryExecutor.ResultSetType |
resultSetType |
protected Statement |
statement |
protected Reciver<Integer> |
updateCountConsumer |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
QueryExecutor(Connection conn,
String query) |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldprotected final PropertyChangeSupport psupport
protected final ListenersHelper<QueryExecutor.QueryExecutorListener,QueryExecutor.QueryExecutorEvent> listeners
protected Connection connection
protected String query
protected Statement statement
protected boolean closeStatement
protected boolean closeResultSet
protected QueryExecutor.ResultSetType resultSetType
protected QueryExecutor.Concurrency concurrency
protected QueryExecutor.Holdability holdability
protected Reciver<SQLWarning> messageConsumer
protected MessageReader messageReader
public QueryExecutor(Connection conn, String query)
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public PropertyChangeListener[] getPropertyChangeListeners()
public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
public void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
public PropertyChangeListener[] getPropertyChangeListeners(String propertyName)
public void firePropertyChange(String propertyName, Object oldValue, Object newValue)
public boolean hasListeners(String propertyName)
public boolean hasQueryExecutorListener(QueryExecutor.QueryExecutorListener listener)
public Set<QueryExecutor.QueryExecutorListener> getQueryExecutorListeners()
public Closeable addQueryExecutorListener(QueryExecutor.QueryExecutorListener listener)
public Closeable addQueryExecutorListener(QueryExecutor.QueryExecutorListener listener, boolean weakLink)
public void removeQueryExecutorListener(QueryExecutor.QueryExecutorListener listener)
public void fireQueryExecutorEvent(QueryExecutor.QueryExecutorEvent event)
public Connection getConnection()
public void setConnection(Connection connection)
public String getQuery()
public void setQuery(String query)
public Statement getStatement()
public void setStatement(Statement statement)
public boolean isCloseStatement()
public void setCloseStatement(boolean closeStatement)
public boolean isCloseResultSet()
public void setCloseResultSet(boolean closeResultSet)
public QueryExecutor.ResultSetType getResultSetType()
public void setResultSetType(QueryExecutor.ResultSetType resultSetType)
public QueryExecutor.Concurrency getConcurrency()
public void setConcurrency(QueryExecutor.Concurrency concurrency)
public QueryExecutor.Holdability getHoldability()
public void setHoldability(QueryExecutor.Holdability holdability)
protected ResultSetFetcher createFetcher()
public Reciver<SQLWarning> getMessageConsumer()
public void setMessageConsumer(Reciver<SQLWarning> messageConsumer)
public MessageReader getMessageReader()
protected void setMessageReader(MessageReader messageReader)
public void terminate(boolean withReader,
long timeout,
long sleep)
Нельзя вызывать только в самом же треде.
withReader - true - Остановить также MessageReadertimeout - макс. время (мс) за которое должна произойти остановкаsleep - время (мс) паузы, при значении < 0 - передает управление другому потоку Thread.yield()public void terminate(long timeout,
long sleep)
Нельзя вызывать только в самом же треде.
timeout - макс. время (мс) за которое должна произойти остановкаsleep - время (мс) паузы, при значении < 0 - передает управление другому потоку Thread.yield()Copyright © 2018. All rights reserved.