Statistics
| Revision:

svn-gvsig-desktop / trunk / libraries / libGDBMS / src / com / hardcode / gdbms / engine / data / FieldNameAccess.java @ 466

History | View | Annotate | Download (774 Bytes)

1
package com.hardcode.gdbms.engine.data;
2

    
3
import com.hardcode.gdbms.engine.instruction.FieldNotFoundException;
4

    
5

    
6
/**
7
 * Proporciona acceso a los campos por nombre
8
 *
9
 * @author Fernando Gonz?lez Cort?s
10
 */
11
public interface FieldNameAccess {
12
    /**
13
     * Obtiene el indice de un campo a partir de su nombre o -1 si no existe un
14
     * campo con ese nombre
15
     *
16
     * @param fieldName Nombre del campo
17
     *
18
     * @return Indice del campo con el nombre dado
19
     *
20
     * @throws DriverException Si se produce un error accediendo a los datos
21
     * @throws FieldNotFoundException Si no existe un campo con el nombre que
22
     *         se pasa como par?metro
23
     */
24
    int getFieldIndexByName(String fieldName)
25
        throws DriverException, FieldNotFoundException;
26
}