public abstract class AbstractRepositoryWriter<Target,Result>
extends net.idea.modbcum.p.AbstractDBProcessor<Target,Result>
Modifier and Type | Class and Description |
---|---|
static class |
AbstractRepositoryWriter.OP |
Modifier and Type | Field and Description |
---|---|
protected UpdateExecutor<net.idea.modbcum.i.query.IQueryUpdate> |
exec |
protected AbstractRepositoryWriter.OP |
operation |
protected QueryExecutor<net.idea.modbcum.i.IQueryObject> |
queryexec |
Constructor and Description |
---|
AbstractRepositoryWriter() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Result |
create(Target arg0) |
Result |
delete(Target arg0) |
AbstractRepositoryWriter.OP |
getOperation() |
void |
open() |
protected void |
prepareStatement(Connection connection) |
Result |
process(Target target) |
Result |
read(Target arg0) |
void |
setConnection(Connection connection) |
void |
setOperation(AbstractRepositoryWriter.OP operation) |
Result |
transaction(Target target) |
Result |
update(Target arg0) |
Result |
write(Target arg0) |
getConnection, isCloseConnection, isEnabled, setCloseConnection
addPropertyChangeListener, addPropertyChangeListener, getID, removePropertyChangeListener, removePropertyChangeListener, setEnabled, toString
protected AbstractRepositoryWriter.OP operation
protected UpdateExecutor<net.idea.modbcum.i.query.IQueryUpdate> exec
protected QueryExecutor<net.idea.modbcum.i.IQueryObject> queryexec
public void close() throws Exception
public AbstractRepositoryWriter.OP getOperation()
public void setOperation(AbstractRepositoryWriter.OP operation)
public void setConnection(Connection connection) throws net.idea.modbcum.i.exceptions.DbAmbitException
public void open() throws net.idea.modbcum.i.exceptions.DbAmbitException
protected void prepareStatement(Connection connection) throws SQLException
SQLException
public Result transaction(Target target) throws SQLException, net.idea.modbcum.i.exceptions.AmbitException
SQLException
net.idea.modbcum.i.exceptions.AmbitException
public Result write(Target arg0) throws SQLException, OperationNotSupportedException, net.idea.modbcum.i.exceptions.AmbitException
SQLException
OperationNotSupportedException
net.idea.modbcum.i.exceptions.AmbitException
public Result create(Target arg0) throws SQLException, OperationNotSupportedException, net.idea.modbcum.i.exceptions.AmbitException
SQLException
OperationNotSupportedException
net.idea.modbcum.i.exceptions.AmbitException
public Result delete(Target arg0) throws SQLException, OperationNotSupportedException, net.idea.modbcum.i.exceptions.AmbitException
SQLException
OperationNotSupportedException
net.idea.modbcum.i.exceptions.AmbitException
public Result read(Target arg0) throws SQLException, OperationNotSupportedException, net.idea.modbcum.i.exceptions.AmbitException
SQLException
OperationNotSupportedException
net.idea.modbcum.i.exceptions.AmbitException
public Result update(Target arg0) throws SQLException, OperationNotSupportedException, net.idea.modbcum.i.exceptions.AmbitException
SQLException
OperationNotSupportedException
net.idea.modbcum.i.exceptions.AmbitException
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.