svn-gvsig-desktop / tags / v1_0_2_Build_910 / libraries / libGDBMS / src / main / java / com / hardcode / gdbms / engine / values / NullValue.java @ 11275
History | View | Annotate | Download (1.95 KB)
1 |
package com.hardcode.gdbms.engine.values; |
---|---|
2 |
|
3 |
import java.io.Serializable; |
4 |
import java.sql.Types; |
5 |
|
6 |
import com.hardcode.gdbms.engine.instruction.IncompatibleTypesException; |
7 |
|
8 |
|
9 |
/**
|
10 |
* DOCUMENT ME!
|
11 |
*
|
12 |
* @author Fernando Gonz?lez Cort?s
|
13 |
*/
|
14 |
public class NullValue extends AbstractValue implements Serializable { |
15 |
/**
|
16 |
* DOCUMENT ME!
|
17 |
*
|
18 |
* @return DOCUMENT ME!
|
19 |
*/
|
20 |
public String toString() { |
21 |
return ""; |
22 |
} |
23 |
|
24 |
/**
|
25 |
* @see com.hardcode.gdbms.engine.values.Value#doHashCode()
|
26 |
*/
|
27 |
public int doHashCode() { |
28 |
return 0; |
29 |
} |
30 |
|
31 |
public Value and(Value value) throws IncompatibleTypesException { |
32 |
return ValueFactory.createValue(false); |
33 |
} |
34 |
public Value equals(Value value) throws IncompatibleTypesException { |
35 |
return ValueFactory.createValue(false); |
36 |
} |
37 |
public Value greater(Value value) throws IncompatibleTypesException { |
38 |
return ValueFactory.createValue(false); |
39 |
} |
40 |
public Value greaterEqual(Value value) throws IncompatibleTypesException { |
41 |
return ValueFactory.createValue(false); |
42 |
} |
43 |
public Value less(Value value) throws IncompatibleTypesException { |
44 |
return ValueFactory.createValue(false); |
45 |
} |
46 |
public Value lessEqual(Value value) throws IncompatibleTypesException { |
47 |
return ValueFactory.createValue(false); |
48 |
} |
49 |
public Value like(Value value) throws IncompatibleTypesException { |
50 |
return ValueFactory.createValue(false); |
51 |
} |
52 |
public Value notEquals(Value value) throws IncompatibleTypesException { |
53 |
return ValueFactory.createValue(false); |
54 |
} |
55 |
public Value or(Value value) throws IncompatibleTypesException { |
56 |
return ValueFactory.createValue(false); |
57 |
} |
58 |
/**
|
59 |
* @see com.hardcode.gdbms.engine.values.Value#getStringValue(com.hardcode.gdbms.engine.data.driver.ValueWriter)
|
60 |
*/
|
61 |
public String getStringValue(ValueWriter writer) { |
62 |
return writer.getNullStatementString();
|
63 |
} |
64 |
|
65 |
/**
|
66 |
* @see com.hardcode.gdbms.engine.values.Value#getSQLType()
|
67 |
*/
|
68 |
public int getSQLType() { |
69 |
return Types.NULL; |
70 |
} |
71 |
|
72 |
public int getWidth() { |
73 |
return 0; |
74 |
} |
75 |
} |