Statistics
| Revision:

svn-gvsig-desktop / tags / v1_1_Build_1008 / libraries / libGDBMS / src / main / java / com / hardcode / gdbms / engine / instruction / LValueElementAdapter.java @ 12520

History | View | Annotate | Download (542 Bytes)

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

    
3
import com.hardcode.gdbms.engine.values.Value;
4
import com.hardcode.gdbms.engine.values.ValueFactory;
5

    
6
/**
7
 * @author Fernando Gonz?lez Cort?s
8
 */
9
public class LValueElementAdapter extends Adapter {
10

    
11
    public Value evaluate(long rowIndex) throws EvaluationException {
12
        if (getEntity().first_token.image.toLowerCase().equals("null")){
13
            return ValueFactory.createNullValue();
14
        }else{
15
            return ((Expression)getChilds()[0]).evaluate(rowIndex);
16
        }
17
    }
18
}