Class MetaCompositeType
java.lang.Object
org.pgcodekeeper.core.schema.meta.MetaStatement
org.pgcodekeeper.core.schema.meta.MetaCompositeType
- All Implemented Interfaces:
Serializable,IStatement
Represents a PostgreSQL composite type metadata object.
Stores information about composite type attributes including their names and types.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMetaCompositeType(PgObjLocation object) Creates a new composite type metadata object. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds an attribute to this composite type.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.schema.meta.MetaStatement
getBareName, getComment, getDatabase, getFilePath, getGenericColumn, getLineNumber, getName, getObject, getObjLength, getOffset, getParent, getQualifiedName, getStatementType, setComment
-
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.- 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.- Parameters:
attrName- the attribute name- Returns:
- the attribute type, or null if not found
-