public class ValueWriterNew extends AbstractRepositoryWriter<IStructureRecord,IStructureRecord>
AbstractRepositoryWriter.OP
Modifier and Type | Field and Description |
---|---|
protected SourceDataset |
dataset |
protected RetieveFeatures |
features
Looks for all
Property , assigned to this structure and retrieves IDs from properties table. |
protected PreparedStatementBatchExecutor |
pnum_batchExecutor |
protected PreparedStatementBatchExecutor |
property_batchExecutor
Prepared statement for writing
Property objects |
protected PreparedStatementBatchExecutor |
pstring_batchExecutor
Prepared statements for writing string and numeric values into property_values table
|
protected UpdateStructurePropertyIDNumber |
qNumber
Prepared statements for writing string and numeric values into property_values table
|
protected CreateProperty |
qProperty |
protected UpdateStructurePropertyIDString |
qString |
protected PreparedStatementBatchExecutor |
tuples_batchExecutor
Tuples
|
exec, operation, queryexec
Constructor and Description |
---|
ValueWriterNew() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
SourceDataset |
getDataset() |
protected void |
prepareBatchProperties(IStructureRecord record,
Connection connection) |
protected void |
prepareBatchValues(IStructureRecord record,
Connection connection) |
protected void |
prepareStatementValues(IStructureRecord record,
Property property) |
protected void |
retrieveProperties(IStructureRecord record) |
void |
setConnection(Connection connection) |
void |
setDataset(SourceDataset dataset) |
IStructureRecord |
write(IStructureRecord recordToStore) |
create, delete, getOperation, open, prepareStatement, process, read, setOperation, transaction, update
getConnection, isCloseConnection, isEnabled, setCloseConnection
addPropertyChangeListener, addPropertyChangeListener, getID, removePropertyChangeListener, removePropertyChangeListener, setEnabled, toString
protected SourceDataset dataset
protected PreparedStatementBatchExecutor tuples_batchExecutor
protected PreparedStatementBatchExecutor property_batchExecutor
Property
objectsprotected CreateProperty qProperty
protected PreparedStatementBatchExecutor pstring_batchExecutor
protected PreparedStatementBatchExecutor pnum_batchExecutor
protected UpdateStructurePropertyIDNumber qNumber
protected UpdateStructurePropertyIDString qString
protected RetieveFeatures features
Property
, assigned to this structure and retrieves IDs from properties table.public SourceDataset getDataset()
public void setDataset(SourceDataset dataset)
public IStructureRecord write(IStructureRecord recordToStore) throws SQLException, OperationNotSupportedException, net.idea.modbcum.i.exceptions.AmbitException
write
in class AbstractRepositoryWriter<IStructureRecord,IStructureRecord>
SQLException
OperationNotSupportedException
net.idea.modbcum.i.exceptions.AmbitException
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 prepareBatchProperties(IStructureRecord record, Connection connection) throws Exception
Exception
protected void prepareBatchValues(IStructureRecord record, Connection connection) throws Exception
Exception
protected void prepareStatementValues(IStructureRecord record, Property property) throws Exception
Exception
protected void retrieveProperties(IStructureRecord record) throws Exception
Exception
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
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.