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 @ 44376
History | View | Annotate | Download (1.25 KB)
1 |
|
---|---|
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 |
import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor; |
9 |
|
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 |
public FeatureAttributeDescriptor[] getColumns(); |
19 |
public String[] getExtraValueNames(); |
20 |
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 |
public ResultSetEntry create(String sql, int fetchSize, FeatureAttributeDescriptor[] columns, String[] extraValueNames ) throws DataException; |
30 |
|
31 |
public ResultSetEntry create(String sql, List<Object> values, int fetchSize, FeatureAttributeDescriptor[] columns, String[] extraValueNames) throws DataException; |
32 |
|
33 |
public int getOpenCount(); |
34 |
|
35 |
public void closeAll(); |
36 |
|
37 |
public void pack(); |
38 |
} |