public class DbStructureWriter extends AbstractRepositoryWriter<IStructureRecord,IStructureRecord>
AbstractRepositoryWriter.OP
Modifier and Type | Field and Description |
---|---|
protected CreateStructure |
createStructure |
protected SourceDataset |
dataset |
protected DatasetAddStructure |
datasetAddStruc |
protected PropertyValuesWriter |
propertyWriter |
protected ReadDataset |
readDatasetQuery |
protected UpdateStructure |
updateStructure |
exec, operation, queryexec
Constructor and Description |
---|
DbStructureWriter(SourceDataset dataset) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
SourceDataset |
getDataset() |
void |
open() |
void |
setConnection(Connection connection) |
void |
setDataset(SourceDataset dataset) |
IStructureRecord |
update(IStructureRecord structure) |
IStructureRecord |
write(IStructureRecord structure) |
protected void |
writeDataset(IStructureRecord structure) |
void |
writeProperties(IStructureRecord structure) |
List<IStructureRecord> |
writeStructure(IStructureRecord structure,
boolean update) |
create, delete, getOperation, prepareStatement, process, read, setOperation, transaction
getConnection, isCloseConnection, isEnabled, setCloseConnection
addPropertyChangeListener, addPropertyChangeListener, getID, removePropertyChangeListener, removePropertyChangeListener, setEnabled, toString
protected DatasetAddStructure datasetAddStruc
protected CreateStructure createStructure
protected UpdateStructure updateStructure
protected PropertyValuesWriter propertyWriter
protected SourceDataset dataset
protected ReadDataset readDatasetQuery
public DbStructureWriter(SourceDataset dataset)
public void open() throws net.idea.modbcum.i.exceptions.DbAmbitException
open
in interface net.idea.modbcum.i.processors.IProcessor<IStructureRecord,IStructureRecord>
open
in class AbstractRepositoryWriter<IStructureRecord,IStructureRecord>
net.idea.modbcum.i.exceptions.DbAmbitException
public void setConnection(Connection connection) throws net.idea.modbcum.i.exceptions.DbAmbitException
setConnection
in interface net.idea.modbcum.i.IDBProcessor<IStructureRecord,IStructureRecord>
setConnection
in class AbstractRepositoryWriter<IStructureRecord,IStructureRecord>
net.idea.modbcum.i.exceptions.DbAmbitException
public SourceDataset getDataset()
public void setDataset(SourceDataset dataset)
public IStructureRecord write(IStructureRecord structure) throws SQLException, net.idea.modbcum.i.exceptions.AmbitException, OperationNotSupportedException
write
in class AbstractRepositoryWriter<IStructureRecord,IStructureRecord>
SQLException
net.idea.modbcum.i.exceptions.AmbitException
OperationNotSupportedException
public IStructureRecord update(IStructureRecord structure) throws SQLException, OperationNotSupportedException, net.idea.modbcum.i.exceptions.AmbitException
update
in class AbstractRepositoryWriter<IStructureRecord,IStructureRecord>
SQLException
OperationNotSupportedException
net.idea.modbcum.i.exceptions.AmbitException
public List<IStructureRecord> writeStructure(IStructureRecord structure, boolean update) throws SQLException, net.idea.modbcum.i.exceptions.AmbitException, OperationNotSupportedException
SQLException
net.idea.modbcum.i.exceptions.AmbitException
OperationNotSupportedException
public void close() throws Exception
close
in interface net.idea.modbcum.i.processors.IProcessor<IStructureRecord,IStructureRecord>
close
in class AbstractRepositoryWriter<IStructureRecord,IStructureRecord>
Exception
protected void writeDataset(IStructureRecord structure) throws SQLException, net.idea.modbcum.i.exceptions.AmbitException, OperationNotSupportedException
SQLException
net.idea.modbcum.i.exceptions.AmbitException
OperationNotSupportedException
public void writeProperties(IStructureRecord structure) throws SQLException, net.idea.modbcum.i.exceptions.AmbitException
SQLException
net.idea.modbcum.i.exceptions.AmbitException
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.