|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.h2.util.Tool
org.h2.tools.Recover
public class Recover
Helps recovering a corrupted database.
Field Summary |
---|
Fields inherited from class org.h2.util.Tool |
---|
out |
Constructor Summary | |
---|---|
Recover()
|
Method Summary | |
---|---|
void |
checkPowerOff()
INTERNAL |
void |
checkWritingAllowed()
INTERNAL |
static void |
execute(java.lang.String dir,
java.lang.String db)
Dumps the contents of a database to a SQL script file. |
void |
freeUpDiskSpace()
INTERNAL |
java.lang.String |
getDatabasePath()
INTERNAL |
java.lang.String |
getLobCompressionAlgorithm(int type)
INTERNAL |
java.sql.Connection |
getLobConnection()
INTERNAL |
SmallLRUCache<java.lang.String,java.lang.String[]> |
getLobFileListCache()
INTERNAL |
LobStorage |
getLobStorage()
INTERNAL |
java.lang.Object |
getLobSyncObject()
INTERNAL |
int |
getMaxLengthInplaceLob()
INTERNAL |
TempFileDeleter |
getTempFileDeleter()
INTERNAL |
static void |
main(java.lang.String... args)
Options are case sensitive. |
FileStore |
openFile(java.lang.String name,
java.lang.String mode,
boolean mustExist)
INTERNAL |
static java.io.InputStream |
readBlob(java.lang.String fileName)
INTERNAL |
static Value.ValueBlob |
readBlobDb(java.sql.Connection conn,
long lobId,
long precision)
INTERNAL |
static java.io.Reader |
readClob(java.lang.String fileName)
INTERNAL |
static Value.ValueClob |
readClobDb(java.sql.Connection conn,
long lobId,
long precision)
INTERNAL |
void |
runTool(java.lang.String... args)
Dumps the contents of a database file to a human readable text file. |
Methods inherited from class org.h2.util.Tool |
---|
printNoDatabaseFilesFound, setOut, showUsage, throwUnsupportedOption |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Recover()
Method Detail |
---|
public static void main(java.lang.String... args) throws java.sql.SQLException
[-help] or [-?] | Print the list of options |
[-dir <dir>] | The directory (default: .) |
[-db <database>] | The database name (all databases if not set) |
[-trace] | Print additional trace information |
args
- the command line arguments
java.sql.SQLException
public void runTool(java.lang.String... args) throws java.sql.SQLException
runTool
in class Tool
args
- the command line arguments
java.sql.SQLException
public static java.io.Reader readClob(java.lang.String fileName) throws java.io.IOException
java.io.IOException
public static java.io.InputStream readBlob(java.lang.String fileName) throws java.io.IOException
java.io.IOException
public static Value.ValueBlob readBlobDb(java.sql.Connection conn, long lobId, long precision)
public static Value.ValueClob readClobDb(java.sql.Connection conn, long lobId, long precision)
public static void execute(java.lang.String dir, java.lang.String db) throws java.sql.SQLException
dir
- the directorydb
- the database name (null for all databases)
java.sql.SQLException
public java.lang.String getDatabasePath()
getDatabasePath
in interface DataHandler
public FileStore openFile(java.lang.String name, java.lang.String mode, boolean mustExist)
openFile
in interface DataHandler
name
- the file namemode
- the modemustExist
- whether the file must already exist
public void checkPowerOff()
checkPowerOff
in interface DataHandler
public void checkWritingAllowed()
checkWritingAllowed
in interface DataHandler
public void freeUpDiskSpace()
freeUpDiskSpace
in interface DataHandler
public int getMaxLengthInplaceLob()
getMaxLengthInplaceLob
in interface DataHandler
public java.lang.String getLobCompressionAlgorithm(int type)
getLobCompressionAlgorithm
in interface DataHandler
type
- the data type (CLOB or BLOB)
public java.lang.Object getLobSyncObject()
getLobSyncObject
in interface DataHandler
public SmallLRUCache<java.lang.String,java.lang.String[]> getLobFileListCache()
getLobFileListCache
in interface DataHandler
public TempFileDeleter getTempFileDeleter()
getTempFileDeleter
in interface DataHandler
public LobStorage getLobStorage()
getLobStorage
in interface DataHandler
public java.sql.Connection getLobConnection()
getLobConnection
in interface DataHandler
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |