Class MetaCompositeType

java.lang.Object
org.pgcodekeeper.core.schema.meta.MetaStatement
org.pgcodekeeper.core.schema.meta.MetaCompositeType
All Implemented Interfaces:
Serializable, IStatement

public final class MetaCompositeType extends MetaStatement
Represents a PostgreSQL composite type metadata object. Stores information about composite type attributes including their names and types.
See Also:
  • Constructor Details

    • MetaCompositeType

      public MetaCompositeType(PgObjLocation object)
      Creates a new composite type metadata object.
      Parameters:
      object - the object location information
  • Method Details

    • getSchemaName

      public String getSchemaName()
      Returns the schema name of this composite type.
      Returns:
      the schema name
    • addAttr

      public void addAttr(String name, String type)
      Adds an attribute to this composite type.
      Parameters:
      name - the attribute name
      type - the attribute type
    • getAttrType

      public String getAttrType(String attrName)
      Returns the type of the specified attribute.
      Parameters:
      attrName - the attribute name
      Returns:
      the attribute type, or null if not found