Class ExtendedCommand.RestoreCommand

    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String srcFile  
      java.lang.String targetDB  
    • Constructor Summary

      Constructors 
      Constructor Description
      RestoreCommand​(java.lang.String targetDB, java.lang.String srcFile)
      Constructs a RestoreCommand instance that restores the database from a given source file.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute​(totalcross.db.sqlite.DB db)  
      static ExtendedCommand.RestoreCommand parse​(java.lang.String sql)
      Parses SQLite database restore command and creates a RestoreCommand object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • targetDB

        public final java.lang.String targetDB
      • srcFile

        public final java.lang.String srcFile
    • Constructor Detail

      • RestoreCommand

        public RestoreCommand​(java.lang.String targetDB,
                              java.lang.String srcFile)
        Constructs a RestoreCommand instance that restores the database from a given source file.
        Parameters:
        targetDB - Target database name
        srcFile - Source file name
    • Method Detail

      • parse

        public static ExtendedCommand.RestoreCommand parse​(java.lang.String sql)
                                                    throws java.sql.SQLException
        Parses SQLite database restore command and creates a RestoreCommand object.
        Parameters:
        sql - SQLite restore backup command
        Returns:
        RestoreCommand object.
        Throws:
        java.sql.SQLException
      • execute

        public void execute​(totalcross.db.sqlite.DB db)
                     throws java.sql.SQLException
        Specified by:
        execute in interface ExtendedCommand.SQLExtension
        Throws:
        java.sql.SQLException