Interface ISchema
- All Superinterfaces:
IStatement,IStatementContainer
Interface representing a database schema containing tables, views, functions, and other objects.
Extends statement container functionality with schema-specific operations.
-
Method Summary
Modifier and TypeMethodDescriptiongetRelation(String name) Gets a relation by name.Gets all relations (tables, views, sequences) in this schema.getStatementContainer(String name) Gets a statement container by name.default DbObjTypeGets the type of this database object.Methods inherited from interface org.pgcodekeeper.core.database.api.schema.IStatement
addDependency, appendAlterSQL, appendOwnerSQL, canDrop, canDropBeforeCreate, clearPrivileges, compare, deepCopy, formatSql, getAuthor, getBareName, getChildren, getComment, getCreationSQL, getDatabase, getDependencies, getDescendants, getDropSQL, getLibName, getLocation, getName, getOwner, getParent, getPrivileges, getQualifiedName, getQuotedName, getQuoter, getRenameCommand, getSeparator, getSQL, getTwin, getTypeName, hasChildren, isLib, isOwned, quote, setComment, setLibName, setLocation, setOwner, shallowCopy, toObjectReferenceMethods inherited from interface org.pgcodekeeper.core.database.api.schema.IStatementContainer
addChild, getChild, getChildrenByType
-
Method Details
-
getRelations
Gets all relations (tables, views, sequences) in this schema.- Returns:
- a stream of relations
-
getRelation
Gets a relation by name.- Parameters:
name- the relation name- Returns:
- the relation with the given name, or null if not found
-
getStatementType
Description copied from interface:IStatementGets the type of this database object.- Specified by:
getStatementTypein interfaceIStatement- Returns:
- the database object type
-
getStatementContainer
Gets a statement container by name.- Parameters:
name- the name of the container to find- Returns:
- the statement container with the given name, or null if not found
-