Statistics
| Revision:

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 @ 43358

History | View | Annotate | Download (1.16 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 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
    public ResultSetEntry create(String sql, int fetchSize, FeatureAttributeDescriptor[] columns ) throws DataException;
29

    
30
    public ResultSetEntry create(String sql, List<Object> values, int fetchSize, FeatureAttributeDescriptor[] columns ) throws DataException;
31

    
32
    public int getOpenCount();
33
    
34
    public void closeAll();
35

    
36
    public void pack();    
37
}