/** Converts the value into the JDBC representation. * * <p>For example, a byte string is represented as a {@link ByteString}; * a long is represented as a {@link Long} (not just some {@link Number}). */ public Object toJdbc(Calendar calendar) { if (value == null) { return null; } return serialToJdbc(type, value, calendar); }
/** Converts the value into the JDBC representation. * * <p>For example, a byte string is represented as a {@link ByteString}; * a long is represented as a {@link Long} (not just some {@link Number}). */ public Object toJdbc(Calendar calendar) { if (value == null) { return null; } return serialToJdbc(type, componentType, value, calendar); }
/** Converts the value into the JDBC representation. * * <p>For example, a byte string is represented as a {@link ByteString}; * a long is represented as a {@link Long} (not just some {@link Number}). */ public Object toJdbc(Calendar calendar) { if (value == null) { return null; } return serialToJdbc(type, componentType, value, calendar); }
/** * Extracts the JDBC value from protobuf-TypedValue representation. * * @param protoValue Protobuf TypedValue * @param calendar Instance of a calendar * @return The JDBC representation of this TypedValue */ public static Object protoToJdbc(Common.TypedValue protoValue, Calendar calendar) { Object o = getSerialFromProto(Objects.requireNonNull(protoValue)); // Shortcircuit the null if (null == o) { return o; } return serialToJdbc(Rep.fromProto(protoValue.getType()), null, o, calendar); }
/** * Extracts the JDBC value from protobuf-TypedValue representation. * * @param protoValue Protobuf TypedValue * @param calendar Instance of a calendar * @return The JDBC representation of this TypedValue */ public static Object protoToJdbc(Common.TypedValue protoValue, Calendar calendar) { Object o = getSerialFromProto(Objects.requireNonNull(protoValue)); // Shortcircuit the null if (null == o) { return o; } return serialToJdbc(Rep.fromProto(protoValue.getType()), null, o, calendar); }
} else { copy.add(serialToJdbc(componentRep, null, o, calendar));
} else { copy.add(serialToJdbc(componentRep, null, o, calendar));