Class MetaCompositeType
java.lang.Object
org.pgcodekeeper.core.database.base.schema.meta.MetaStatement
org.pgcodekeeper.core.database.base.schema.meta.MetaCompositeType
- All Implemented Interfaces:
Serializable,ICompositeType,ISearchPath,IStatement,IType
Represents composite type metadata object.
Stores information about composite type attributes including their names and types.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMetaCompositeType(ObjectLocation object) Creates a new composite type metadata object. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds an attribute to this composite type.getAttrs()Returns list of all attributes.getAttrType(String attrName) Returns the type of the specified attribute.Returns the schema name of this composite type.Methods inherited from class org.pgcodekeeper.core.database.base.schema.meta.MetaStatement
addDependency, appendAlterSQL, appendOwnerSQL, canDrop, canDropBeforeCreate, clearPrivileges, compare, deepCopy, formatSql, getAuthor, getBareName, getChildren, getComment, getCreationSQL, getDatabase, getDependencies, getDescendants, getDropSQL, getFilePath, getLibName, getLineNumber, getLocation, getName, getObject, getObjectReference, getObjLength, getOffset, getOwner, getParent, getPrivileges, getQualifiedName, getQuoter, getRenameCommand, getSeparator, getSQL, getStatementType, getTwin, hasChildren, isLib, setComment, setLibName, setLocation, setOwner, shallowCopyMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.pgcodekeeper.core.database.api.schema.ISearchPath
getContainingSchema, getDatabase, toObjectReferenceMethods 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, getTwin, getTypeName, hasChildren, isLib, isOwned, quote, setComment, setLibName, setLocation, setOwner, shallowCopyMethods inherited from interface org.pgcodekeeper.core.database.api.schema.IType
getStatementType
-
Constructor Details
-
MetaCompositeType
Creates a new composite type metadata object.- Parameters:
object- the object location information
-
-
Method Details
-
getSchemaName
Returns the schema name of this composite type.- Specified by:
getSchemaNamein interfaceISearchPath- Returns:
- the schema name
-
addAttr
Adds an attribute to this composite type.- Parameters:
name- the attribute nametype- the attribute type
-
getAttrType
Returns the type of the specified attribute.- Specified by:
getAttrTypein interfaceICompositeType- Parameters:
attrName- the attribute name- Returns:
- the attribute type, or null if not found
-
getAttrs
Description copied from interface:ICompositeTypeReturns list of all attributes.- Specified by:
getAttrsin interfaceICompositeType- Returns:
- list of attributes
-