public static CursorFactory fromProto(Common.CursorFactory proto) { // Reconstruct CursorFactory Class<?> clz = null; if (proto.hasField(CLASS_NAME_DESCRIPTOR)) { try { clz = Class.forName(proto.getClassName()); } catch (ClassNotFoundException e) { throw new RuntimeException(e); } } return CursorFactory.create(Style.fromProto(proto.getStyle()), clz, proto.getFieldNamesList()); }
public static CursorFactory fromProto(Common.CursorFactory proto) { // Reconstruct CursorFactory Class<?> clz = null; if (proto.hasField(CLASS_NAME_DESCRIPTOR)) { try { clz = Class.forName(proto.getClassName()); } catch (ClassNotFoundException e) { throw new RuntimeException(e); } } return CursorFactory.create(Style.fromProto(proto.getStyle()), clz, proto.getFieldNamesList()); }
public static CursorFactory fromProto(Common.CursorFactory proto) { // Reconstruct CursorFactory Class<?> clz = null; FieldDescriptor clzFieldDesc = proto.getDescriptorForType() .findFieldByNumber(Common.CursorFactory.CLASS_NAME_FIELD_NUMBER); if (proto.hasField(clzFieldDesc)) { try { clz = Class.forName(proto.getClassName()); } catch (ClassNotFoundException e) { throw new RuntimeException(e); } } return CursorFactory.create(Style.fromProto(proto.getStyle()), clz, proto.getFieldNamesList()); }
new AvaticaParameter(false, 10, 0, Types.VARCHAR, "VARCHAR", String.class.getName(), "str")); Meta.CursorFactory cursorFactory = Meta.CursorFactory.create(Style.LIST, Object.class, Arrays.asList("str", "count", "counts"));
new AvaticaParameter(false, 10, 0, Types.VARCHAR, "VARCHAR", String.class.getName(), "str")); Meta.CursorFactory cursorFactory = Meta.CursorFactory.create(Style.LIST, Object.class, Arrays.asList("str", "count", "counts"));
new AvaticaParameter(false, 10, 0, Types.VARCHAR, "VARCHAR", String.class.getName(), "str")); Meta.CursorFactory cursorFactory = Meta.CursorFactory.create(Style.LIST, Object.class, Arrays.asList("str", "count", "counts"));
Meta.CursorFactory cursorFactory = Meta.CursorFactory.create(Style.LIST, Object.class, Collections.<String>emptyList()); Signature signature = Signature.create(columns, "sql", params, cursorFactory,
Meta.CursorFactory cursorFactory = Meta.CursorFactory.create(Style.LIST, Object.class, Collections.<String>emptyList()); Signature signature = Signature.create(columns, "sql", params, cursorFactory,