Package org.h2.schema

Class UserAggregate

  • All Implemented Interfaces:
    HasSQL

    public final class UserAggregate
    extends UserDefinedFunction
    Represents a user-defined aggregate function.
    • Field Detail

      • javaClass

        private java.lang.Class<?> javaClass
    • Constructor Detail

      • UserAggregate

        public UserAggregate​(Schema schema,
                             int id,
                             java.lang.String name,
                             java.lang.String className,
                             boolean force)
    • Method Detail

      • getInstance

        public Aggregate getInstance()
      • getDropSQL

        public java.lang.String getDropSQL()
        Description copied from class: DbObject
        Construct a DROP ... SQL statement for this object.
        Overrides:
        getDropSQL in class DbObject
        Returns:
        the SQL statement
      • getCreateSQL

        public java.lang.String getCreateSQL()
        Description copied from class: DbObject
        Construct the CREATE ... SQL statement for this object.
        Specified by:
        getCreateSQL in class DbObject
        Returns:
        the SQL statement
      • getType

        public int getType()
        Description copied from class: DbObject
        Get the object type.
        Specified by:
        getType in class DbObject
        Returns:
        the object type
      • removeChildrenAndResources

        public void removeChildrenAndResources​(SessionLocal session)
        Description copied from class: DbObject
        Delete all dependent children objects and resources of this object.
        Specified by:
        removeChildrenAndResources in class DbObject
        Parameters:
        session - the session