Target - Result - public abstract class ValueWriter<Target,Result> extends AbstractPropertyWriter<Target,Result>
AbstractPropertyWriter.modeAbstractRepositoryWriter.OP| Modifier and Type | Field and Description |
|---|---|
static int |
n_error |
static int |
n_idchemical |
static int |
n_idproperty |
static int |
n_idstructure |
static int |
n_text |
static int |
n_value |
static int |
n_value_num |
static String |
onduplicate_number |
protected PreparedStatement |
ps_descriptorvalue_number |
protected PreparedStatement |
ps_descriptorvalue_string |
protected PreparedStatement |
ps_insertstring |
protected IStructureRecord |
structure |
annotationsWriter, dataset, propertyWriter, readProperty, selectField, templateDefWriterexec, operation, queryexec| Constructor and Description |
|---|
ValueWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
descriptorEntry(Target target,
Property property,
int propertyIndex,
int idtuple) |
IStructureRecord |
getStructure() |
protected int |
getTuple(SourceDataset dataset) |
protected abstract Object |
getValue(Target target,
Property propertyName,
int index) |
protected boolean |
insertValue(double value,
Property property,
int idtuple,
AbstractPropertyWriter.mode error) |
protected boolean |
insertValue(String value,
Property property,
int idtuple,
AbstractPropertyWriter.mode error) |
protected boolean |
insertValueNaN(Property property,
int idtuple,
AbstractPropertyWriter.mode error) |
void |
setStructure(IStructureRecord structure) |
getComments, getDataset, getPropertyNames, propertyEntry, setDataset, transform, write, writecreate, delete, getOperation, open, prepareStatement, process, read, setConnection, setOperation, transaction, updategetConnection, isCloseConnection, isEnabled, setCloseConnectionaddPropertyChangeListener, addPropertyChangeListener, getID, removePropertyChangeListener, removePropertyChangeListener, setEnabled, toStringpublic static final int n_idproperty
public static final int n_idchemical
public static final int n_idstructure
public static final int n_error
public static final int n_value_num
public static final int n_text
public static final int n_value
public static final String onduplicate_number
protected PreparedStatement ps_descriptorvalue_string
protected PreparedStatement ps_descriptorvalue_number
protected PreparedStatement ps_insertstring
protected IStructureRecord structure
public IStructureRecord getStructure()
public void setStructure(IStructureRecord structure)
protected int getTuple(SourceDataset dataset)
getTuple in class AbstractPropertyWriter<Target,Result>protected boolean insertValue(String value, Property property, int idtuple, AbstractPropertyWriter.mode error) throws SQLException
SQLExceptionprotected boolean insertValue(double value,
Property property,
int idtuple,
AbstractPropertyWriter.mode error)
throws SQLException
SQLExceptionprotected boolean insertValueNaN(Property property, int idtuple, AbstractPropertyWriter.mode error) throws SQLException
SQLExceptionprotected void descriptorEntry(Target target, Property property, int propertyIndex, int idtuple) throws SQLException
descriptorEntry in class AbstractPropertyWriter<Target,Result>SQLExceptionCopyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.