public abstract class AbstractSqlAction<R extends AbstractSqlRequest> extends Object implements Runnable, Closeable
Created on 29/12/15.
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractSqlAction.OpenJdbcHelper |
| Modifier and Type | Field and Description |
|---|---|
protected com.google.common.collect.ImmutableSet<Closeable> |
closeables |
protected long |
endTime |
protected R |
request |
protected TopiaPersistenceContext |
sourcePersistenceContext |
protected long |
startTime |
protected Connection |
targetConnection |
protected static org.nuiton.util.TimeLog |
TIME_LOG |
protected Writer |
writer |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSqlAction(R request) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
after() |
protected void |
before() |
void |
close() |
void |
commit() |
protected abstract void |
execute() |
protected void |
executeSqlWork(TopiaSqlWork sqlWork) |
protected void |
fail(Exception e) |
protected static void |
flush(Writer writer) |
R |
getRequest() |
protected com.google.common.collect.ImmutableSet<String> |
getSchemaNames() |
protected AbstractTopiaPersistenceContext |
getSourcePersistenceContext() |
void |
run() |
protected boolean |
useOutputDb() |
protected boolean |
useOutputWriter() |
protected static final org.nuiton.util.TimeLog TIME_LOG
protected final R extends AbstractSqlRequest request
protected final com.google.common.collect.ImmutableSet<Closeable> closeables
protected TopiaPersistenceContext sourcePersistenceContext
protected Connection targetConnection
protected Writer writer
protected long startTime
protected long endTime
protected AbstractSqlAction(R request)
protected static void flush(Writer writer)
public R getRequest()
protected boolean useOutputWriter()
protected boolean useOutputDb()
protected abstract void execute()
throws IOException,
SQLException
IOExceptionSQLExceptionpublic void commit()
public final void close()
close in interface Closeableclose in interface AutoCloseableprotected final void before()
throws SQLException
SQLExceptionprotected void fail(Exception e)
protected final void after()
throws SQLException
SQLExceptionprotected void executeSqlWork(TopiaSqlWork sqlWork)
protected AbstractTopiaPersistenceContext getSourcePersistenceContext()
protected com.google.common.collect.ImmutableSet<String> getSchemaNames()
Copyright © 2004–2016 CodeLutin. All rights reserved.