Interface ISearchPath
- All Superinterfaces:
IStatement
- All Known Subinterfaces:
IColumn,ICompositeType,IConstraint,IConstraintFk,IConstraintPk,IForeignTable,IFunction,IIndex,IOperator,IPartitionTable,IRelation,IRule,ISequence,ISubElement,ITable,ITrigger,IType,IView,MsSourceStatement
- All Known Implementing Classes:
ChColumn,ChConstraint,ChDictionary,ChIndex,ChTable,ChTableLog,ChView,GpExternalTable,GpPartitionTable,MetaCompositeType,MetaConstraint,MetaFunction,MetaOperator,MetaRelation,MsAbstractClrFunction,MsAbstractCommonFunction,MsAbstractFunction,MsAbstractStatementContainer,MsClrFunction,MsClrProcedure,MsColumn,MsConstraint,MsConstraintCheck,MsConstraintFk,MsConstraintPk,MsFunction,MsIndex,MsProcedure,MsSequence,MsStatistics,MsTable,MsTrigger,MsType,MsView,PgAbstractForeignTable,PgAbstractFunction,PgAbstractRegularTable,PgAbstractStatementContainer,PgAbstractTable,PgAbstractType,PgAbstractView,PgAggregate,PgBaseType,PgCollation,PgColumn,PgCompositeType,PgConstraint,PgConstraintCheck,PgConstraintExclude,PgConstraintFk,PgConstraintNotNull,PgConstraintPk,PgDomain,PgEnumType,PgFtsConfiguration,PgFtsDictionary,PgFtsParser,PgFtsTemplate,PgFunction,PgIndex,PgMaterializedView,PgOperator,PgPartitionForeignTable,PgPartitionTable,PgPolicy,PgProcedure,PgRangeType,PgRule,PgSequence,PgShellType,PgSimpleForeignTable,PgSimpleTable,PgStatistics,PgTrigger,PgTypedTable,PgView
Interface for database objects that are contained within a schema and can be found via search path.
Provides methods for accessing the containing schema and database.
-
Method Summary
Modifier and TypeMethodDescriptiondefault ISchemaGets the schema that contains this object.default IDatabaseGets the database that contains this object.default StringGets the name of the schema that contains this object.default ObjectReferenceMethods inherited from interface org.pgcodekeeper.core.database.api.schema.IStatement
addDependency, appendAlterSQL, appendOwnerSQL, canDrop, canDropBeforeCreate, clearPrivileges, compare, deepCopy, formatSql, getAuthor, getBareName, getChildren, getComment, getCreationSQL, getDependencies, getDescendants, getDropSQL, getLibName, getLocation, getName, getOwner, getParent, getPrivileges, getQualifiedName, getQuotedName, getQuoter, getRenameCommand, getSeparator, getSQL, getStatementType, getTwin, getTypeName, hasChildren, isLib, isOwned, quote, setComment, setLibName, setLocation, setOwner, shallowCopy
-
Method Details
-
getContainingSchema
Gets the schema that contains this object.- Returns:
- the containing schema
-
getSchemaName
Gets the name of the schema that contains this object.- Returns:
- the schema name
-
getDatabase
Gets the database that contains this object.- Specified by:
getDatabasein interfaceIStatement- Returns:
- the containing database
-
toObjectReference
- Specified by:
toObjectReferencein interfaceIStatement
-