FieldUtils

Overview

A static helper class to operate with Data Abstract schema types and types of Java.

Location

Class Methods


canConvertTypeToDataType

Checks whether the given Java type can be converted to Data Abstract schema's type.

 

class method canConvertTypeToDataType(aType: Class; IsAutoIncrement: Boolean): Boolean

 

static Boolean canConvertTypeToDataType(Class aType, Boolean IsAutoIncrement)

Parameters:

  • aType: A Java type to convert.
  • IsAutoIncrement: Defines whether or not returned schema DataType should be autoincremental.

dataTypeToType

Returns correspondent Java type for the given schema's DataType.

 

class method dataTypeToType(aDataType: DataType): Class

 

static Class dataTypeToType(DataType aDataType)

Parameters:

  • aDataType: The given schema's DataType to convert.

tryConvertTypeToDataType

Tries to convert the given Java type to Data Abstract schema's type. Returns true if conversion was successful.

 

class method tryConvertTypeToDataType(aType: Class; IsAutoIncrement: Boolean; aDataType: ReferenceType<DataType>): Boolean

 

static Boolean tryConvertTypeToDataType(Class aType, Boolean IsAutoIncrement, ReferenceType<DataType> aDataType)

Parameters:

  • aType: A Java type to convert.
  • IsAutoIncrement: Defines whether or not returned schema DataType should be autoincremental.
  • aDataType: A refference parameter that might contain DataType on successful conversion.

typeToDataType

Converts Java type to Data Abstract schema's DataType. Throws Exception if failed to convert.

 

class method typeToDataType(aType: Class; IsAutoIncrement: Boolean): DataType

 

static DataType typeToDataType(Class aType, Boolean IsAutoIncrement)

Parameters:

  • aType: A java type to convert.
  • IsAutoIncrement: If a result type should be autoincremental.