Class DropDatabase


  • public class DropDatabase
    extends DefineCommand
    This class represents the statement DROP ALL OBJECTS
    • Field Detail

      • dropAllObjects

        private boolean dropAllObjects
      • deleteFiles

        private boolean deleteFiles
    • Constructor Detail

      • DropDatabase

        public DropDatabase​(SessionLocal session)
    • Method Detail

      • update

        public long update()
        Description copied from class: Prepared
        Execute the statement.
        Overrides:
        update in class Prepared
        Returns:
        the update count
      • dropAllObjects

        private void dropAllObjects()
      • addAll

        private static void addAll​(java.util.Collection<Schema> schemas,
                                   int type,
                                   java.util.ArrayList<SchemaObject> list)
      • setDropAllObjects

        public void setDropAllObjects​(boolean b)
      • setDeleteFiles

        public void setDeleteFiles​(boolean b)
      • getType

        public int getType()
        Description copied from class: Prepared
        Get the command type as defined in CommandInterface
        Specified by:
        getType in class Prepared
        Returns:
        the statement type