in linkis-computation-governance/linkis-jdbc-driver/src/main/scala/org/apache/linkis/ujes/jdbc/UJESSQLDatabaseMetaData.scala [639:820]
override def getColumnPrivileges(
catalog: String,
schema: String,
table: String,
columnNamePattern: String
): ResultSet = null
override def getTablePrivileges(
catalog: String,
schemaPattern: String,
tableNamePattern: String
): ResultSet = null
override def getBestRowIdentifier(
catalog: String,
schema: String,
table: String,
scope: Int,
nullable: Boolean
): ResultSet = null
override def getVersionColumns(catalog: String, schema: String, table: String): ResultSet = null
override def getPrimaryKeys(catalog: String, schema: String, table: String): ResultSet = null
override def getImportedKeys(catalog: String, schema: String, table: String): ResultSet = null
override def getExportedKeys(catalog: String, schema: String, table: String): ResultSet = null
override def getCrossReference(
parentCatalog: String,
parentSchema: String,
parentTable: String,
foreignCatalog: String,
foreignSchema: String,
foreignTable: String
): ResultSet = null
override def getTypeInfo: ResultSet = null
override def getIndexInfo(
catalog: String,
schema: String,
table: String,
unique: Boolean,
approximate: Boolean
): ResultSet = null
override def supportsResultSetType(`type`: Int): Boolean = true
override def supportsResultSetConcurrency(`type`: Int, concurrency: Int): Boolean = false
override def ownUpdatesAreVisible(`type`: Int): Boolean = throw new LinkisSQLException(
LinkisSQLErrorCode.NOSUPPORT_METADATA,
"ownUpdatesAreVisible not supported"
)
override def ownDeletesAreVisible(`type`: Int): Boolean = throw new LinkisSQLException(
LinkisSQLErrorCode.NOSUPPORT_METADATA,
"ownDeletesAreVisible not supported"
)
override def ownInsertsAreVisible(`type`: Int): Boolean = throw new LinkisSQLException(
LinkisSQLErrorCode.NOSUPPORT_METADATA,
"ownInsertsAreVisible not supported"
)
override def othersUpdatesAreVisible(`type`: Int): Boolean = throw new LinkisSQLException(
LinkisSQLErrorCode.NOSUPPORT_METADATA,
"othersUpdatesAreVisible not supported"
)
override def othersDeletesAreVisible(`type`: Int): Boolean = throw new LinkisSQLException(
LinkisSQLErrorCode.NOSUPPORT_METADATA,
"othersDeletesAreVisible not supported"
)
override def othersInsertsAreVisible(`type`: Int): Boolean = throw new LinkisSQLException(
LinkisSQLErrorCode.NOSUPPORT_METADATA,
"othersInsertsAreVisible not supported"
)
override def updatesAreDetected(`type`: Int): Boolean = throw new LinkisSQLException(
LinkisSQLErrorCode.NOSUPPORT_METADATA,
"updatesAreDetected not supported"
)
override def deletesAreDetected(`type`: Int): Boolean = throw new LinkisSQLException(
LinkisSQLErrorCode.NOSUPPORT_METADATA,
"deletesAreDetected not supported"
)
override def insertsAreDetected(`type`: Int): Boolean = throw new LinkisSQLException(
LinkisSQLErrorCode.NOSUPPORT_METADATA,
"insertsAreDetected not supported"
)
override def supportsBatchUpdates(): Boolean = false
override def getUDTs(
catalog: String,
schemaPattern: String,
typeNamePattern: String,
types: Array[Int]
): ResultSet = null
override def getConnection: Connection = ujesSQLConnection
override def supportsSavepoints(): Boolean = false
override def supportsNamedParameters(): Boolean = false
override def supportsMultipleOpenResults(): Boolean = false
override def supportsGetGeneratedKeys(): Boolean = false
override def getSuperTypes(
catalog: String,
schemaPattern: String,
typeNamePattern: String
): ResultSet =
throw new LinkisSQLException(
LinkisSQLErrorCode.NOSUPPORT_METADATA,
"getSuperTypes not supported"
)
override def getSuperTables(
catalog: String,
schemaPattern: String,
tableNamePattern: String
): ResultSet =
throw new LinkisSQLException(
LinkisSQLErrorCode.NOSUPPORT_METADATA,
"getSuperTables not supported"
)
override def getAttributes(
catalog: String,
schemaPattern: String,
typeNamePattern: String,
attributeNamePattern: String
): ResultSet =
throw new LinkisSQLException(
LinkisSQLErrorCode.NOSUPPORT_METADATA,
"getAttributes not supported"
)
override def supportsResultSetHoldability(holdability: Int): Boolean = false
override def getResultSetHoldability: Int = throw new LinkisSQLException(
LinkisSQLErrorCode.NOSUPPORT_METADATA,
"getResultSetHoldability not supported"
)
override def getDatabaseMajorVersion: Int = 1
override def getDatabaseMinorVersion: Int = 1
override def getJDBCMajorVersion: Int = 3
override def getJDBCMinorVersion: Int = 0
override def getSQLStateType: Int = 2
override def locatorsUpdateCopy(): Boolean = throw new LinkisSQLException(
LinkisSQLErrorCode.NOSUPPORT_METADATA,
"locatorsUpdateCopy not supported"
)
override def supportsStatementPooling(): Boolean = false
override def getRowIdLifetime: RowIdLifetime = throw new LinkisSQLException(
LinkisSQLErrorCode.NOSUPPORT_METADATA,
"getRowIdLifetime not supported"
)
override def getSchemas(catalog: String, schemaPattern: String): ResultSet = {
logger.info("get schemas for linkis")
val resultSet = getCatalogs
logger.info(s"schemas is ${resultSet}")
resultSet
}