Class ModelGrantRecord
java.lang.Object
org.apache.polaris.persistence.relational.jdbc.models.ModelGrantRecord
- All Implemented Interfaces:
Converter<org.apache.polaris.core.entity.PolarisGrantRecord>
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ModelGrantRecord.Builderbuilder()static ModelGrantRecordfromGrantRecord(org.apache.polaris.core.entity.PolarisGrantRecord record) org.apache.polaris.core.entity.PolarisGrantRecordConverts a ResultSet to model.longlongintlonglongstatic org.apache.polaris.core.entity.PolarisGrantRecordtoGrantRecord(ModelGrantRecord model) toMap(DatabaseType databaseType) Convert a model into a Map with keys as snake case names, where as values as values of member of model obj.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.polaris.persistence.relational.jdbc.models.Converter
toJsonbPGobject
-
Field Details
-
TABLE_NAME
- See Also:
-
ALL_COLUMNS
-
-
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
-
fromResultSet
public org.apache.polaris.core.entity.PolarisGrantRecord fromResultSet(ResultSet rs) throws SQLException Description copied from interface:ConverterConverts a ResultSet to model.- Specified by:
fromResultSetin interfaceConverter<org.apache.polaris.core.entity.PolarisGrantRecord>- Parameters:
rs- : ResultSet from JDBC.- Returns:
- the corresponding business entity
- Throws:
SQLException- : Exception while fetching from ResultSet.
-
toMap
Description copied from interface:ConverterConvert a model into a Map with keys as snake case names, where as values as values of member of model obj. -
fromGrantRecord
public static ModelGrantRecord fromGrantRecord(org.apache.polaris.core.entity.PolarisGrantRecord record) -
toGrantRecord
public static org.apache.polaris.core.entity.PolarisGrantRecord toGrantRecord(ModelGrantRecord model)
-