Class ModelEntity
java.lang.Object
org.apache.polaris.persistence.relational.jdbc.models.ModelEntity
- All Implemented Interfaces:
Converter<org.apache.polaris.core.entity.PolarisBaseEntity>
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ModelEntity.Builderbuilder()static ModelEntityfromEntity(org.apache.polaris.core.entity.PolarisBaseEntity entity) org.apache.polaris.core.entity.PolarisBaseEntityConverts a ResultSet to model.longlonglongintintlonggetId()longgetName()longlongintlongintstatic org.apache.polaris.core.entity.PolarisBaseEntitytoEntity(ModelEntity 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
-
ModelEntity
public ModelEntity()
-
-
Method Details
-
getId
public long getId() -
getParentId
public long getParentId() -
getTypeCode
public int getTypeCode() -
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
-
getInternalProperties
-
getGrantRecordsVersion
public int getGrantRecordsVersion() -
getLocationWithoutScheme
-
builder
-
fromResultSet
public org.apache.polaris.core.entity.PolarisBaseEntity fromResultSet(ResultSet r) throws SQLException Description copied from interface:ConverterConverts a ResultSet to model.- Specified by:
fromResultSetin interfaceConverter<org.apache.polaris.core.entity.PolarisBaseEntity>- Parameters:
r- : 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. -
fromEntity
-
toEntity
-