Class CustomElementsFactory

java.lang.Object
com.denodo.common.custom.elements.CustomElementsFactory

@Deprecated public final class CustomElementsFactory extends Object
Deprecated.
Use CustomElementsUtil instead.
This class allows the user to create instances of Custom types and values like CustomArrayType, CustomArrayValue, CustomRecordType and CustomRecordValue.
Since:
4.6
  • Constructor Details

    • CustomElementsFactory

      public CustomElementsFactory()
      Deprecated.
  • Method Details

    • createCustomArrayType

      public CustomArrayType createCustomArrayType(String arrayName, CustomRecordType arrayType)
      Deprecated.
      Factory method to instantiate a CustomArrayType.
      Parameters:
      arrayName - Name of the type.
      arrayType - Type that this array will represent a list of.
      Returns:
      The created type.
    • createCustomArrayValue

      public CustomArrayValue createCustomArrayValue(List<CustomRecordValue> values)
      Deprecated.
      Factory method to instantiate a CustomArrayValue.
      Parameters:
      values - List of records stored in the array.
      Returns:
      The created value.
    • createCustomRecordType

      public CustomRecordType createCustomRecordType(String recordName, LinkedHashMap<String,Object> properties)
      Deprecated.
      Factory method to instantiate a CustomRecordValue.
      Parameters:
      recordName - Name of the type.
      properties - Fields for the new record. The map key stores the field name and the Object is the field type.
      Returns:
      The created type.
    • createCustomRecordArray

      public CustomRecordValue createCustomRecordArray(LinkedHashMap<String,Object> properties)
      Deprecated.
      Factory method to instantiate a CustomRecordValue.
      Parameters:
      properties - The field values for the new record. The map key stores the field name and the object is the field value.
      Returns:
      The created value