svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.dal / org.gvsig.fmap.dal.db / org.gvsig.fmap.dal.db.jdbc / src / main / java / org / gvsig / fmap / dal / store / jdbc2 / ResulSetControler.java @ 44058
History | View | Annotate | Download (1.16 KB)
1 | 43020 | jjdelcerro | |
---|---|---|---|
2 | package org.gvsig.fmap.dal.store.jdbc2; |
||
3 | |||
4 | import java.sql.ResultSet; |
||
5 | import java.sql.SQLException; |
||
6 | import java.util.List; |
||
7 | import org.gvsig.fmap.dal.exception.DataException; |
||
8 | 43358 | jjdelcerro | import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor; |
9 | 43020 | jjdelcerro | |
10 | |||
11 | public interface ResulSetControler extends AutoCloseable { |
||
12 | |||
13 | public interface ResultSetEntry extends AutoCloseable { |
||
14 | public ResultSet get(); |
||
15 | public int getID(); |
||
16 | public boolean isZombie(); |
||
17 | public String getSQL(); |
||
18 | 43358 | jjdelcerro | public FeatureAttributeDescriptor[] getColumns(); |
19 | 43020 | jjdelcerro | public Object getObject(int columnIndex) throws SQLException; |
20 | public byte[] getBytes(int columnIndex) throws SQLException; |
||
21 | public boolean next() throws SQLException; |
||
22 | } |
||
23 | |||
24 | public void setTimeToZombie(long mlSeconds); |
||
25 | |||
26 | public long getTimeToZombie(); |
||
27 | |||
28 | 43358 | jjdelcerro | public ResultSetEntry create(String sql, int fetchSize, FeatureAttributeDescriptor[] columns ) throws DataException; |
29 | 43020 | jjdelcerro | |
30 | 43358 | jjdelcerro | public ResultSetEntry create(String sql, List<Object> values, int fetchSize, FeatureAttributeDescriptor[] columns ) throws DataException; |
31 | 43020 | jjdelcerro | |
32 | public int getOpenCount(); |
||
33 | |||
34 | public void closeAll(); |
||
35 | |||
36 | public void pack(); |
||
37 | } |