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

History | View | Annotate | Download (987 Bytes)

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
9
10
public interface ResulSetControler extends AutoCloseable {
11
12
    public interface ResultSetEntry extends AutoCloseable {
13
        public ResultSet get();
14
        public int getID();
15
        public boolean isZombie();
16
        public String getSQL();
17
        public Object getObject(int columnIndex) throws SQLException;
18
        public byte[] getBytes(int columnIndex) throws SQLException;
19
        public boolean next() throws SQLException;
20
    }
21
22
    public void setTimeToZombie(long mlSeconds);
23
24
    public long getTimeToZombie();
25
26
    public ResultSetEntry create(String sql, int fetchSize) throws DataException;
27
28
    public ResultSetEntry create(String sql, List<Object> values, int fetchSize) throws DataException;
29
30
    public int getOpenCount();
31
32
    public void closeAll();
33
34
    public void pack();
35
}