Target
- public class RepositoryReader<Target> extends net.idea.modbcum.p.AbstractDBProcessor<Target,StructureRecord>
Modifier and Type | Field and Description |
---|---|
protected PreparedStatement |
ps_structurebyid |
protected PreparedStatement |
ps_structures |
protected static String |
read_structurebyid |
protected static String |
read_structures |
protected ResultSet |
rs |
Constructor and Description |
---|
RepositoryReader() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
String |
getStructure(int idstructure) |
boolean |
hasNext() |
StructureRecord |
next() |
void |
open() |
protected void |
prepareStatement(Connection connection) |
StructureRecord |
process(Target target) |
void |
setConnection(Connection connection) |
getConnection, isCloseConnection, isEnabled, setCloseConnection
addPropertyChangeListener, addPropertyChangeListener, getID, removePropertyChangeListener, removePropertyChangeListener, setEnabled, toString
protected static final String read_structures
protected static final String read_structurebyid
protected PreparedStatement ps_structures
protected PreparedStatement ps_structurebyid
protected ResultSet rs
public void setConnection(Connection connection) throws net.idea.modbcum.i.exceptions.DbAmbitException
setConnection
in interface net.idea.modbcum.i.IDBProcessor<Target,StructureRecord>
setConnection
in class net.idea.modbcum.p.AbstractDBProcessor<Target,StructureRecord>
net.idea.modbcum.i.exceptions.DbAmbitException
public void open() throws net.idea.modbcum.i.exceptions.DbAmbitException
open
in interface net.idea.modbcum.i.processors.IProcessor<Target,StructureRecord>
open
in class net.idea.modbcum.p.DefaultAmbitProcessor<Target,StructureRecord>
net.idea.modbcum.i.exceptions.DbAmbitException
public boolean hasNext() throws SQLException
SQLException
public StructureRecord next() throws SQLException
SQLException
public String getStructure(int idstructure) throws SQLException
SQLException
protected void prepareStatement(Connection connection) throws SQLException
SQLException
public void close() throws SQLException
close
in interface net.idea.modbcum.i.processors.IProcessor<Target,StructureRecord>
close
in class net.idea.modbcum.p.AbstractDBProcessor<Target,StructureRecord>
SQLException
public StructureRecord process(Target target) throws net.idea.modbcum.i.exceptions.AmbitException
net.idea.modbcum.i.exceptions.AmbitException
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.