Interface YqlType

All Known Implementing Classes:
YqlCompositeType.YqlDict, YqlCompositeType.YqlList, YqlCompositeType.YqlTuple, YqlCompositeType.YqlVoid, YqlPrimitiveType

public interface YqlType
  • Method Summary

    Modifier and Type
    Method
    Description
    fromYql(tech.ydb.proto.ValueProtos.Value value)
     
    tech.ydb.proto.ValueProtos.Type.Builder
     
     
    static @NonNull YqlPrimitiveType
    of(Type javaType)
    Deprecated, for removal: This API element is subject to removal in a future version.
    This method will be removed in YOJ 3.0.0.
    static @NonNull YqlPrimitiveType
    Returns the Yql type of the column.
    tech.ydb.proto.ValueProtos.Value.Builder
    toYql(Object value)
     
  • Method Details

    • getYqlTypeBuilder

      tech.ydb.proto.ValueProtos.Type.Builder getYqlTypeBuilder()
    • of

      @NonNull @Deprecated(forRemoval=true) static @NonNull YqlPrimitiveType of(Type javaType)
      Deprecated, for removal: This API element is subject to removal in a future version.
      This method will be removed in YOJ 3.0.0. Nothing in YOJ calls YqlType.of(Type) any more.

      Please use YqlType.of(JavaField) because it correcly respects the customizations specified in the @Column annotation.

    • of

      @NonNull static @NonNull YqlPrimitiveType of(Schema.JavaField column)
      Returns the Yql type of the column.

      If the Column annotation is specified for the column field, the annotation field dbType may be used to specify the column type.

      Returns:
      the Yql type of the column
    • getYqlTypeName

      String getYqlTypeName()
    • toYql

      tech.ydb.proto.ValueProtos.Value.Builder toYql(Object value)
    • fromYql

      Object fromYql(tech.ydb.proto.ValueProtos.Value value)