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, setCloseConnectionaddPropertyChangeListener, addPropertyChangeListener, getID, removePropertyChangeListener, removePropertyChangeListener, setEnabled, toStringprotected 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.DbAmbitExceptionpublic 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.DbAmbitExceptionpublic boolean hasNext()
throws SQLException
SQLExceptionpublic StructureRecord next() throws SQLException
SQLExceptionpublic String getStructure(int idstructure) throws SQLException
SQLExceptionprotected void prepareStatement(Connection connection) throws SQLException
SQLExceptionpublic 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>SQLExceptionpublic StructureRecord process(Target target) throws net.idea.modbcum.i.exceptions.AmbitException
net.idea.modbcum.i.exceptions.AmbitExceptionCopyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.