Package org.sqlite
Class ExtendedCommand
- java.lang.Object
-
- org.sqlite.ExtendedCommand
-
public class ExtendedCommand extends java.lang.Object
parsing SQLite specific extension of SQL command- Author:
- leo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExtendedCommand.BackupCommand
static class
ExtendedCommand.RestoreCommand
static interface
ExtendedCommand.SQLExtension
-
Constructor Summary
Constructors Constructor Description ExtendedCommand()
-
Method Summary
Modifier and Type Method Description static ExtendedCommand.SQLExtension
parse(java.lang.String sql)
Parses extended commands of "backup" or "restore" for SQLite database.static java.lang.String
removeQuotation(java.lang.String s)
Remove the quotation mark from string.
-
-
-
Method Detail
-
parse
public static ExtendedCommand.SQLExtension parse(java.lang.String sql) throws java.sql.SQLException
Parses extended commands of "backup" or "restore" for SQLite database.- Parameters:
sql
- One of the extended commands:
backup sourceDatabaseName to destinationFileName OR restore targetDatabaseName from sourceFileName- Returns:
- BackupCommand object if the argument is a backup command; RestoreCommand object if the argument is a restore command;
- Throws:
java.sql.SQLException
-
removeQuotation
public static java.lang.String removeQuotation(java.lang.String s)
Remove the quotation mark from string.- Parameters:
s
- String with quotation mark.- Returns:
- String with quotation mark removed.
-
-