public class KittySQLiteFileDumpScript extends KittySQLiteDumpScript
Modifier and Type | Field and Description |
---|---|
protected android.content.Context |
ctx |
protected java.lang.String |
dumpLocationUri
File location for SQLite dump
|
protected boolean |
newDump
Flag that shows if it is not necessary to read dump from file
(if dump new than there is no need to read it from filesystem)
|
sqlScript
Constructor and Description |
---|
KittySQLiteFileDumpScript(java.lang.String dumpLocationUri,
boolean newDump,
android.content.Context ctx) |
Modifier and Type | Method and Description |
---|---|
java.util.LinkedList<KittySQLiteQuery> |
readFromDump(java.lang.Object... params)
Reads sql dump from specified file to object
param[2] Context param[1] boolean new dump flag param[0] File with file dump |
void |
saveToDump(java.util.LinkedList<KittySQLiteQuery> sqlScript)
Saves input string representation of SQLite sql script to specified in child location
|
getSqlScript
protected java.lang.String dumpLocationUri
protected boolean newDump
protected final android.content.Context ctx
public KittySQLiteFileDumpScript(java.lang.String dumpLocationUri, boolean newDump, android.content.Context ctx)
public void saveToDump(java.util.LinkedList<KittySQLiteQuery> sqlScript)
saveToDump
in class KittySQLiteDumpScript
sqlScript
- sqlite script to savepublic java.util.LinkedList<KittySQLiteQuery> readFromDump(java.lang.Object... params)
readFromDump
in class KittySQLiteDumpScript
params
- misc parametersKittyRuntimeException
- if errors