Class RecordToDBFields

java.lang.Object
org.gcube.accounting.utility.postgresql.RecordToDBFields

public class RecordToDBFields extends Object
  • Field Details

    • clz

      protected final Class<? extends org.gcube.documentstore.records.Record> clz
    • typeName

      protected final String typeName
    • tableName

      protected final String tableName
    • tableFieldToRecordField

      protected final Map<String,String> tableFieldToRecordField
    • recordFieldToTableField

      protected final Map<String,String> recordFieldToTableField
  • Constructor Details

    • RecordToDBFields

      protected RecordToDBFields(String typeName, Class<? extends org.gcube.documentstore.records.Record> clz) throws Exception
      Throws:
      Exception
  • Method Details

    • getKey

      public static String getKey(String fieldName)
    • mapFields

      protected void mapFields() throws Exception
      Throws:
      Exception
    • getTableField

      public String getTableField(String recordField)
    • getRecordField

      public String getRecordField(String tableField)
    • getTypeName

      public String getTypeName()
    • getTableName

      public String getTableName()