Interface IPgJdbcReader
- All Known Implementing Classes:
PgAbstractJdbcReader,PgAbstractSearchPathJdbcReader,PgCastsReader,PgCollationsReader,PgConstraintsReader,PgEventTriggersReader,PgExtensionsReader,PgForeignDataWrappersReader,PgFtsConfigurationsReader,PgFtsDictionariesReader,PgFtsParsersReader,PgFtsTemplatesReader,PgFunctionsReader,PgIndicesReader,PgOperatorsReader,PgPoliciesReader,PgRulesReader,PgSchemasReader,PgSequencesReader,PgServersReader,PgStatisticsReader,PgTablesReader,PgTriggersReader,PgTypesReader,PgUserMappingsReader,PgViewsReader
public interface IPgJdbcReader
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final QueryBuilderstatic final Stringstatic final String -
Method Summary
Modifier and TypeMethodDescriptiondefault voidaddDescriptionPart(QueryBuilder builder) default voidaddDescriptionPart(QueryBuilder builder, boolean checkColumn) default voidaddExtensionDepsCte(QueryBuilder builder) default voidappendExtension(QueryBuilder builder, String extensionSchema) static voidcheckObjectValidity(Object object, DbObjType type, String name) Checks validity of database objects that may be concurrently modified.static voidcheckTypeValidity(String type) Checks type validity for concurrent modifications.Override for postgres.default QueryBuilderdefault <T extends AbstractStatement>
voidsetFunctionWithDep(BiConsumer<T, String> setter, T statement, String function, String signature) Sets a function reference on a statement and adds appropriate dependencies.
-
Field Details
-
EXTENSION_JOIN
- See Also:
-
PG_CATALOG
- See Also:
-
EXTENSION_DEPS_CTE_BUILDER
-
DESCRIPTION_JOIN
- See Also:
-
-
Method Details
-
setFunctionWithDep
default <T extends AbstractStatement> void setFunctionWithDep(BiConsumer<T, String> setter, T statement, String function, String signature) Sets a function reference on a statement and adds appropriate dependencies. Parses the function name to extract schema information and adds schema and function dependencies.- Type Parameters:
T- the statement type- Parameters:
setter- the setter to apply the function valuestatement- the statement to add dependencies tofunction- the function name (possibly schema-qualified)signature- the function signature, or null if not applicable
-
checkTypeValidity
Checks type validity for concurrent modifications. Validates that the type is not null or unknown (???) which can occur when functions process metadata of concurrently modified objects.- Parameters:
type- the type string to validate- Throws:
ConcurrentModificationException- if the type is invalid
-
checkObjectValidity
Checks validity of database objects that may be concurrently modified. Functions that accept OID/object name and return metadata are considered unsafe as they can return null if the object was deleted outside the transaction block.- Parameters:
object- the object to check for validitytype- the database object typename- the object name- Throws:
ConcurrentModificationException- if the object is null (was deleted)
-
appendExtension
-
getExtensionCte
-
addDescriptionPart
-
addDescriptionPart
-
addExtensionDepsCte
-
getClassId
String getClassId()Override for postgres.- Returns:
- object class's catalog name
-
getFormattedClassId
String getFormattedClassId()
-