1 | Type expectedType = null;↵ | | |
|
2 | // we have something like : "lhs [op] ?"↵ | | |
|
3 | if ( isDateTimeType( lhType )↵ | | 1 | if ( owner.hasDom4jRepresentation() ) {↵
|
4 | ) {↵ | | 2 | if ( tuplizerClassName == null ) {
↵
|
5 | // more specifically : "datetime [op] ?"↵ | | 3 | ↵
|
6 | // 1) if the operator is MINUS, we really cannot determine↵ | | |
|
7 | // the expected type as either another datetime or↵ | | |
|
8 | // numeric would be valid↵ | | |
|
9 | // 2) if the operator is PLUS, the param needs to be of↵ | | |
|
10 | // some numeric type↵ | | |
|
11 | if ( getType() == HqlSqlTokenTypes.PLUS ) {↵ | | |
|
12 | expectedType = Hibernate.DOUBLE;↵ | | 4 | dom4jTuplizer = componentTuplizerFactory.constructDefaultTuplizer( EntityMode.DOM4J, component );↵
|
| | | 5 | }↵
|
| | | 6 | else {↵
|
| | | 7 | dom4jTuplizer = componentTuplizerFactory.constructTuplizer( tuplizerClassName, component );
↵
|
13 | }↵ | | 8 | }
↵
|
14 | }↵ | | 9 | ↵
|
15 | ↵ | | 10 | }↵
|
16 | else {↵ | | 11 | else {
↵
|
17 | expectedType = lhType;↵ | | 12 | ↵
|
18 | }↵ | | |
|
19 | ( ( ExpectedTypeAwareNode ) rhs ).setExpectedType( expectedType ); | | 13 | dom4jTuplizer = null;↵
|
| | | 14 | }
|