Skip navigation links
org.axiondb.engine.commands

Class AlterTableCommand

    • Constructor Detail

      • AlterTableCommand

        public AlterTableCommand(java.lang.String theTableName,
                                 boolean cascade)
    • Method Detail

      • addChildCommand

        public void addChildCommand(AxionCommand cmd)
      • addColumn

        public void addColumn(java.lang.String name,
                              java.lang.String type,
                              java.lang.String precision,
                              java.lang.String scale,
                              Selectable defaultValue,
                              java.lang.String generated)
      • alterColumn

        public void alterColumn(java.lang.String name,
                                java.lang.String newName,
                                Selectable newDefault,
                                java.lang.Boolean dropDefault)
      • dropColumn

        public void dropColumn(java.lang.String colName)
      • execute

        public boolean execute(Database db)
                        throws AxionException
        Description copied from interface: AxionCommand
        Executes an SQL statement that may return multiple results.
        Returns:
        true if one or more ResultSets were generated, false otherwise
        Throws:
        AxionException
        See Also:
        Statement.execute(java.lang.String), PreparedStatement.execute()
      • executeUpdate

        public int executeUpdate(Database db)
                          throws AxionException
        Description copied from interface: AxionCommand
        Executes an SQL that may add, delete or modify zero or more rows within the database, such as an INSERT, UPDATE or DELETE statement. In addition, SQL statements that return nothing, such as SQL DDL statements, can be executed via this method.
        Returns:
        the number of rows modified
        Throws:
        AxionException
        See Also:
        Statement.executeUpdate(java.lang.String), PreparedStatement.executeUpdate()
      • setRenameTo

        public void setRenameTo(java.lang.String newName)