Package tech.ydb.yoj.databind.schema
Class Schema.JavaField
java.lang.Object
tech.ydb.yoj.databind.schema.Schema.JavaField
-
Method Summary
Modifier and TypeMethodDescriptionvoidcollectValueTo(Object v, Map<String, Object> res) booleanflatten()<T> @NonNull Schema.JavaFieldforSchema(@NonNull Schema<T> dstSchema, @NonNull UnaryOperator<String> pathTransformer) <J,C extends Comparable<? super C>>
CustomValueTypeInfo<J,C> Returns the DB column type name (which is strongly DB-specific).Returns the DB column type presentation qualifier name.getRawSubPath(int start) Class<?>getType()inthashCode()booleanisFlat()booleanisSimple()voidDeprecated.toString()
-
Method Details
-
getDbType
Returns the DB column type name (which is strongly DB-specific).If the
Columnannotation is present, the fielddbTypemay be used to specify the DB column type.- Returns:
- the DB column type for data binding if specified,
nullotherwise - See Also:
-
getDbTypeQualifier
Returns the DB column type presentation qualifier name.- Returns:
- the DB column type presentation qualifier for data binding if specified,
nullotherwise - See Also:
-
getType
-
getRawType
-
setName
Deprecated. -
getRawPath
-
getRawSubPath
-
getChildren
-
flatten
-
flattenWithValue
-
collectValueTo
-
isSimple
public boolean isSimple()- Returns:
trueif this is a simple (not composite) value;falseotherwise
-
isFlat
public boolean isFlat()- Returns:
trueif this field maps to a single database field, even if it is technically a composite value;
falseotherwise- See Also:
-
getFlatFieldType
- Returns:
- Java type of the lowest-level simple field, if this field
is flat - Throws:
IllegalStateException- field is not flat- See Also:
-
toFlatField
- Returns:
- single lowest-level simple field, if this field
is flat - Throws:
IllegalStateException- field is not flat- See Also:
-
getCustomValueTypeInfo
@Nullable public <J,C extends Comparable<? super C>> CustomValueTypeInfo<J,C> getCustomValueTypeInfo()- Returns:
- information about custom value type for the schema field or its
classThe@CustomValueTypeexperimental annotation specifies custom value conversion logic between Java field values and database column values.
-
toString
-
equals
-
hashCode
public int hashCode() -
forSchema
@NonNull public <T> @NonNull Schema.JavaField forSchema(@NonNull @NonNull Schema<T> dstSchema, @NonNull @NonNull UnaryOperator<String> pathTransformer)
-