public DateFunction(final ConstantType constantType) {
super(FunctionType.DATECONSTANT, null);
this.constantType = constantType;
switch (this.getConstantType()) {
case NOW:
this.dateValue = new DateLiteral(DateLiteral.getNow());
break;
case MINDATE:
case MAXDATE:
this.dateValue = new DateLiteral(constantType.getValue());
break;
}
}