Interface Transform<SourceType,TargetType>

Type Parameters:
SourceType - source type
TargetType - target type
All Known Subinterfaces:
DBToJsonMappingTable, JsonToDBGraph

public interface Transform<SourceType,TargetType>
Interface for transforming JSON coordinates (JSON path or JSON attribute) to DB coordinates (column and table name) and back
  • Method Summary

    Modifier and Type
    Method
    Description
    Conversion from attributeName to columnName and back
    transform(SourceType sourceObject)
    Get jsonPath by DB table and column and back
  • Method Details

    • transform

      TargetType transform(SourceType sourceObject) throws Exception
      Get jsonPath by DB table and column and back
      Parameters:
      sourceObject - jsonPath (or DB table and column)
      Returns:
      DB table and column (or jsonPath)
      Throws:
      Exception - there is no such object
    • convertColumn

      String convertColumn(String value)
      Conversion from attributeName to columnName and back
      Parameters:
      value - attribute (or column) name
      Returns:
      column (or attribute) name