public ToDateFunction(List<Expression> children, StatementContext context) throws SQLException { super(children); String dateFormat = (String) ((LiteralExpression) children.get(1)).getValue(); String timeZoneId = (String) ((LiteralExpression) children.get(2)).getValue(); if (dateFormat == null) { dateFormat = context.getDateFormat(); } if (timeZoneId == null) { timeZoneId = context.getDateFormatTimeZone().getID(); } init(dateFormat, timeZoneId); }
@Override public FunctionExpression create(List<Expression> children, StatementContext context) throws SQLException { String dateFormat = (String) ((LiteralExpression) children.get(1)).getValue(); String timeZoneId = (String) ((LiteralExpression) children.get(2)).getValue(); if (dateFormat == null) { dateFormat = context.getTimestampFormat(); } if (timeZoneId == null) { timeZoneId = context.getDateFormatTimeZone().getID(); } return new ToTimestampFunction(children, dateFormat, timeZoneId); } }
@Override public FunctionExpression create(List<Expression> children, StatementContext context) throws SQLException { String dateFormat = (String) ((LiteralExpression) children.get(1)).getValue(); String timeZoneId = (String) ((LiteralExpression) children.get(2)).getValue(); if (dateFormat == null) { dateFormat = context.getDateFormat(); } if (timeZoneId == null) { timeZoneId = context.getDateFormatTimeZone().getID(); } return new ToDateFunction(children, dateFormat, timeZoneId); } }
@Override public FunctionExpression create(List<Expression> children, StatementContext context) throws SQLException { String dateFormat = (String) ((LiteralExpression) children.get(1)).getValue(); String timeZoneId = (String) ((LiteralExpression) children.get(2)).getValue(); if (dateFormat == null) { dateFormat = context.getTimeFormat(); } if (timeZoneId == null) { timeZoneId = context.getDateFormatTimeZone().getID(); } return new ToTimeFunction(children, dateFormat, timeZoneId); } }
@Override public FunctionExpression create(List<Expression> children, StatementContext context) throws SQLException { String dateFormat = (String) ((LiteralExpression) children.get(1)).getValue(); String timeZoneId = (String) ((LiteralExpression) children.get(2)).getValue(); if (dateFormat == null) { dateFormat = context.getTimestampFormat(); } if (timeZoneId == null) { timeZoneId = context.getDateFormatTimeZone().getID(); } return new ToTimestampFunction(children, dateFormat, timeZoneId); } }
@Override public FunctionExpression create(List<Expression> children, StatementContext context) throws SQLException { String dateFormat = (String) ((LiteralExpression) children.get(1)).getValue(); String timeZoneId = (String) ((LiteralExpression) children.get(2)).getValue(); if (dateFormat == null) { dateFormat = context.getDateFormat(); } if (timeZoneId == null) { timeZoneId = context.getDateFormatTimeZone().getID(); } return new ToDateFunction(children, dateFormat, timeZoneId); } }
public ToDateFunction(List<Expression> children, StatementContext context) throws SQLException { super(children); String dateFormat = (String) ((LiteralExpression) children.get(1)).getValue(); String timeZoneId = (String) ((LiteralExpression) children.get(2)).getValue(); if (dateFormat == null) { dateFormat = context.getDateFormat(); } if (timeZoneId == null) { timeZoneId = context.getDateFormatTimeZone().getID(); } init(dateFormat, timeZoneId); }
public ToDateFunction(List<Expression> children, StatementContext context) throws SQLException { super(children); String dateFormat = (String) ((LiteralExpression) children.get(1)).getValue(); String timeZoneId = (String) ((LiteralExpression) children.get(2)).getValue(); if (dateFormat == null) { dateFormat = context.getDateFormat(); } if (timeZoneId == null) { timeZoneId = context.getDateFormatTimeZone().getID(); } init(dateFormat, timeZoneId); }
@Override public FunctionExpression create(List<Expression> children, StatementContext context) throws SQLException { String dateFormat = (String) ((LiteralExpression) children.get(1)).getValue(); String timeZoneId = (String) ((LiteralExpression) children.get(2)).getValue(); if (dateFormat == null) { dateFormat = context.getDateFormat(); } if (timeZoneId == null) { timeZoneId = context.getDateFormatTimeZone().getID(); } return new ToDateFunction(children, dateFormat, timeZoneId); } }
@Override public FunctionExpression create(List<Expression> children, StatementContext context) throws SQLException { String dateFormat = (String) ((LiteralExpression) children.get(1)).getValue(); String timeZoneId = (String) ((LiteralExpression) children.get(2)).getValue(); if (dateFormat == null) { dateFormat = context.getTimestampFormat(); } if (timeZoneId == null) { timeZoneId = context.getDateFormatTimeZone().getID(); } return new ToTimestampFunction(children, dateFormat, timeZoneId); } }
@Override public FunctionExpression create(List<Expression> children, StatementContext context) throws SQLException { String dateFormat = (String) ((LiteralExpression) children.get(1)).getValue(); String timeZoneId = (String) ((LiteralExpression) children.get(2)).getValue(); if (dateFormat == null) { dateFormat = context.getTimeFormat(); } if (timeZoneId == null) { timeZoneId = context.getDateFormatTimeZone().getID(); } return new ToTimeFunction(children, dateFormat, timeZoneId); } }
@Override public FunctionExpression create(List<Expression> children, StatementContext context) throws SQLException { String dateFormat = (String) ((LiteralExpression) children.get(1)).getValue(); String timeZoneId = (String) ((LiteralExpression) children.get(2)).getValue(); if (dateFormat == null) { dateFormat = context.getTimeFormat(); } if (timeZoneId == null) { timeZoneId = context.getDateFormatTimeZone().getID(); } return new ToTimeFunction(children, dateFormat, timeZoneId); } }