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 @ 44632
History | View | Annotate | Download (1.25 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 | 44376 | jjdelcerro | public String[] getExtraValueNames(); |
20 | 43020 | jjdelcerro | public Object getObject(int columnIndex) throws SQLException; |
21 | public byte[] getBytes(int columnIndex) throws SQLException; |
||
22 | public boolean next() throws SQLException; |
||
23 | } |
||
24 | |||
25 | public void setTimeToZombie(long mlSeconds); |
||
26 | |||
27 | public long getTimeToZombie(); |
||
28 | |||
29 | 44376 | jjdelcerro | public ResultSetEntry create(String sql, int fetchSize, FeatureAttributeDescriptor[] columns, String[] extraValueNames ) throws DataException; |
30 | 43020 | jjdelcerro | |
31 | 44376 | jjdelcerro | public ResultSetEntry create(String sql, List<Object> values, int fetchSize, FeatureAttributeDescriptor[] columns, String[] extraValueNames) throws DataException; |
32 | 43020 | jjdelcerro | |
33 | public int getOpenCount(); |
||
34 | |||
35 | public void closeAll(); |
||
36 | |||
37 | public void pack(); |
||
38 | } |