@Override public void setTime(int parameterIndex, Time value) throws SQLException { Calendar c = Calendar.getInstance(TimeZone.getTimeZone("UTC")); c.setTimeInMillis(value.getTime()); this.setParameter(parameterIndex, NodeFactoryExtra.timeToNode(c)); }
@Override public void setTime(int parameterIndex, Time value) throws SQLException { Calendar c = Calendar.getInstance(TimeZone.getTimeZone("UTC")); c.setTimeInMillis(value.getTime()); this.setParameter(parameterIndex, NodeFactoryExtra.timeToNode(c)); }
Calendar c = Calendar.getInstance(); c.setTimeInMillis(((Time) value).getTime()); this.setParameter(parameterIndex, NodeFactoryExtra.timeToNode(c)); } else if (value instanceof Calendar) { this.setParameter(parameterIndex, NodeFactoryExtra.dateTimeToNode((Calendar) value));
Calendar c = Calendar.getInstance(); c.setTimeInMillis(((Time) value).getTime()); this.setParameter(parameterIndex, NodeFactoryExtra.timeToNode(c)); } else if (value instanceof Calendar) { this.setParameter(parameterIndex, NodeFactoryExtra.dateTimeToNode((Calendar) value));
Calendar c = Calendar.getInstance(); c.setTimeInMillis(((Time) value).getTime()); this.setParameter(parameterIndex, NodeFactoryExtra.timeToNode(c)); } else if (value instanceof Calendar) { this.setParameter(parameterIndex, NodeFactoryExtra.dateTimeToNode((Calendar) value)); Calendar c = Calendar.getInstance(); c.setTimeInMillis(((Time)value).getTime()); this.setParameter(parameterIndex, NodeFactoryExtra.timeToNode(c)); } else if (value instanceof Calendar) { this.setParameter(parameterIndex, NodeFactoryExtra.dateTimeToNode((Calendar)value)); Calendar c = Calendar.getInstance(); c.setTimeInMillis(((Time)value).getTime()); this.setParameter(parameterIndex, NodeFactoryExtra.timeToNode(c)); } else if (value instanceof Node) { Calendar c = Calendar.getInstance(); c.setTimeInMillis(JdbcNodeUtils.toDate((Node)value).getTime()); this.setParameter(parameterIndex, NodeFactoryExtra.timeToNode(c)); } else if (value instanceof Date) { Calendar c = Calendar.getInstance(); c.setTimeInMillis(((Date)value).getTime()); this.setParameter(parameterIndex, NodeFactoryExtra.timeToNode(c)); } else if (value instanceof Calendar) { this.setParameter(parameterIndex, NodeFactoryExtra.timeToNode((Calendar)value)); } else { throw new SQLException("The given value is not marshallable to the desired type");
Calendar c = Calendar.getInstance(); c.setTimeInMillis(((Time) value).getTime()); this.setParameter(parameterIndex, NodeFactoryExtra.timeToNode(c)); } else if (value instanceof Calendar) { this.setParameter(parameterIndex, NodeFactoryExtra.dateTimeToNode((Calendar) value)); Calendar c = Calendar.getInstance(); c.setTimeInMillis(((Time)value).getTime()); this.setParameter(parameterIndex, NodeFactoryExtra.timeToNode(c)); } else if (value instanceof Calendar) { this.setParameter(parameterIndex, NodeFactoryExtra.dateTimeToNode((Calendar)value)); Calendar c = Calendar.getInstance(); c.setTimeInMillis(((Time)value).getTime()); this.setParameter(parameterIndex, NodeFactoryExtra.timeToNode(c)); } else if (value instanceof Node) { Calendar c = Calendar.getInstance(); c.setTimeInMillis(JdbcNodeUtils.toDate((Node)value).getTime()); this.setParameter(parameterIndex, NodeFactoryExtra.timeToNode(c)); } else if (value instanceof Date) { Calendar c = Calendar.getInstance(); c.setTimeInMillis(((Date)value).getTime()); this.setParameter(parameterIndex, NodeFactoryExtra.timeToNode(c)); } else if (value instanceof Calendar) { this.setParameter(parameterIndex, NodeFactoryExtra.timeToNode((Calendar)value)); } else { throw new SQLException("The given value is not marshallable to the desired type");
Literal objDate = m.createTypedLiteral(NodeFactoryExtra.dateToNode(Calendar.getInstance()).getLiteralLexicalForm(), XSDDatatype.XSDdate); Literal objTime = m.createTypedLiteral(NodeFactoryExtra.timeToNode(Calendar.getInstance()).getLiteralLexicalForm(), XSDDatatype.XSDtime); Literal objChar = m.createTypedLiteral('a');