java.lang.Object
org.apache.polaris.persistence.relational.jdbc.models.ModelGrantRecord
All Implemented Interfaces:
Converter<org.apache.polaris.core.entity.PolarisGrantRecord>

public class ModelGrantRecord extends Object implements Converter<org.apache.polaris.core.entity.PolarisGrantRecord>
  • Field Details

  • Constructor Details

    • ModelGrantRecord

      public ModelGrantRecord()
  • Method Details

    • getSecurableCatalogId

      public long getSecurableCatalogId()
    • getSecurableId

      public long getSecurableId()
    • getGranteeCatalogId

      public long getGranteeCatalogId()
    • getGranteeId

      public long getGranteeId()
    • getPrivilegeCode

      public int getPrivilegeCode()
    • builder

      public static ModelGrantRecord.Builder builder()
    • fromResultSet

      public org.apache.polaris.core.entity.PolarisGrantRecord fromResultSet(ResultSet rs) throws SQLException
      Description copied from interface: Converter
      Converts a ResultSet to model.
      Specified by:
      fromResultSet in interface Converter<org.apache.polaris.core.entity.PolarisGrantRecord>
      Parameters:
      rs - : ResultSet from JDBC.
      Returns:
      the corresponding business entity
      Throws:
      SQLException - : Exception while fetching from ResultSet.
    • toMap

      public Map<String,Object> toMap(DatabaseType databaseType)
      Description copied from interface: Converter
      Convert a model into a Map with keys as snake case names, where as values as values of member of model obj.
      Specified by:
      toMap in interface Converter<org.apache.polaris.core.entity.PolarisGrantRecord>
    • fromGrantRecord

      public static ModelGrantRecord fromGrantRecord(org.apache.polaris.core.entity.PolarisGrantRecord record)
    • toGrantRecord

      public static org.apache.polaris.core.entity.PolarisGrantRecord toGrantRecord(ModelGrantRecord model)