Class InspectedField
java.lang.Object
org.apache.ignite.migrationtools.types.InspectedField
Holds information about how a field should be persisted.
-
Method Summary
Modifier and TypeMethodDescriptionboolean@Nullable Stringstatic InspectedFieldforNamed(String fieldName, String typeName, InspectedFieldType fieldType, boolean nullable, boolean hasAnnotation) Factory method for named fields (non-primitive and non-array).static InspectedFieldforUnnamed(String typeName, InspectedFieldType fieldType) Factory method for primitive and array fields.booleaninthashCode()booleannullable()toString()typeName()
-
Method Details
-
forUnnamed
Factory method for primitive and array fields.- Parameters:
typeName- Type name.fieldType- Field type.- Returns:
- The new InspectedField instance.
-
forNamed
public static InspectedField forNamed(String fieldName, String typeName, InspectedFieldType fieldType, boolean nullable, boolean hasAnnotation) Factory method for named fields (non-primitive and non-array).- Parameters:
fieldName- Name of the field. May be null for Primitive and Array fields.typeName- Name of the field class, usually fromClass.getName()fieldType- Field type.nullable- Whether the field is nullable or not.hasAnnotation- Whether the field was annotated with a 'QuerySqlField'.- Returns:
- The new InspectedField instance.
-
fieldName
-
typeName
-
fieldType
-
nullable
public boolean nullable() -
hasAnnotation
public boolean hasAnnotation() -
equals
-
hashCode
public int hashCode() -
toString
-