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

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

  • Constructor Details

    • ModelEntity

      public ModelEntity()
  • Method Details

    • getId

      public long getId()
    • getParentId

      public long getParentId()
    • getTypeCode

      public int getTypeCode()
    • getName

      public String getName()
    • getEntityVersion

      public int getEntityVersion()
    • getCatalogId

      public long getCatalogId()
    • getSubTypeCode

      public int getSubTypeCode()
    • getCreateTimestamp

      public long getCreateTimestamp()
    • getDropTimestamp

      public long getDropTimestamp()
    • getPurgeTimestamp

      public long getPurgeTimestamp()
    • getToPurgeTimestamp

      public long getToPurgeTimestamp()
    • getLastUpdateTimestamp

      public long getLastUpdateTimestamp()
    • getProperties

      public String getProperties()
    • getInternalProperties

      public String getInternalProperties()
    • getGrantRecordsVersion

      public int getGrantRecordsVersion()
    • getLocationWithoutScheme

      public String getLocationWithoutScheme()
    • builder

      public static ModelEntity.Builder builder()
    • fromResultSet

      public org.apache.polaris.core.entity.PolarisBaseEntity fromResultSet(ResultSet r) throws SQLException
      Description copied from interface: Converter
      Converts a ResultSet to model.
      Specified by:
      fromResultSet in interface Converter<org.apache.polaris.core.entity.PolarisBaseEntity>
      Parameters:
      r - : 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.PolarisBaseEntity>
    • fromEntity

      public static ModelEntity fromEntity(org.apache.polaris.core.entity.PolarisBaseEntity entity)
    • toEntity

      public static org.apache.polaris.core.entity.PolarisBaseEntity toEntity(ModelEntity model)