public class Recover extends Tool implements DataHandler
| 构造器和说明 |
|---|
Recover() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
checkPowerOff()
INTERNAL
|
void |
checkWritingAllowed()
INTERNAL
|
static void |
execute(String dir,
String db)
Dumps the contents of a database to a SQL script file.
|
CompareMode |
getCompareMode()
Return compare mode.
|
String |
getDatabasePath()
INTERNAL
|
JavaObjectSerializer |
getJavaObjectSerializer()
Return the serializer to be used for java objects being stored in
column of type OTHER.
|
String |
getLobCompressionAlgorithm(int type)
INTERNAL
|
SmallLRUCache<String,String[]> |
getLobFileListCache()
INTERNAL
|
LobStorageBackend |
getLobStorage()
INTERNAL
|
Object |
getLobSyncObject()
INTERNAL
|
int |
getMaxLengthInplaceLob()
INTERNAL
|
TempFileDeleter |
getTempFileDeleter()
INTERNAL
|
static void |
main(String... args)
Options are case sensitive.
|
FileStore |
openFile(String name,
String mode,
boolean mustExist)
INTERNAL
|
static InputStream |
readBlob(String fileName)
INTERNAL
|
static Value.ValueBlob |
readBlobDb(Connection conn,
long lobId,
long precision)
INTERNAL
|
static InputStream |
readBlobMap(Connection conn,
long lobId,
long precision)
INTERNAL
|
static Reader |
readClob(String fileName)
INTERNAL
|
static Value.ValueClob |
readClobDb(Connection conn,
long lobId,
long precision)
INTERNAL
|
static Reader |
readClobMap(Connection conn,
long lobId,
long precision)
INTERNAL
|
int |
readLob(long lobId,
byte[] hmac,
long offset,
byte[] buff,
int off,
int length)
INTERNAL
|
void |
runTool(String... args)
Dumps the contents of a database file to a human readable text file.
|
isOption, printNoDatabaseFilesFound, setOut, showUsage, showUsageAndThrowUnsupportedOption, throwUnsupportedOptionpublic static void main(String... args) throws 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 |
| [-transactionLog] | Print the transaction log |
args - the command line argumentsSQLExceptionpublic void runTool(String... args) throws SQLException
runTool 在类中 Toolargs - the command line argumentsSQLExceptionpublic static Reader readClob(String fileName) throws IOException
IOExceptionpublic static InputStream readBlob(String fileName) throws IOException
IOExceptionpublic static Value.ValueBlob readBlobDb(Connection conn, long lobId, long precision)
public static Value.ValueClob readClobDb(Connection conn, long lobId, long precision)
public static InputStream readBlobMap(Connection conn, long lobId, long precision) throws SQLException
SQLExceptionpublic static Reader readClobMap(Connection conn, long lobId, long precision) throws Exception
Exceptionpublic static void execute(String dir, String db) throws SQLException
dir - the directorydb - the database name (null for all databases)SQLExceptionpublic String getDatabasePath()
getDatabasePath 在接口中 DataHandlerpublic FileStore openFile(String name, String mode, boolean mustExist)
openFile 在接口中 DataHandlername - the file namemode - the modemustExist - whether the file must already existpublic void checkPowerOff()
checkPowerOff 在接口中 DataHandlerpublic void checkWritingAllowed()
checkWritingAllowed 在接口中 DataHandlerpublic int getMaxLengthInplaceLob()
getMaxLengthInplaceLob 在接口中 DataHandlerpublic String getLobCompressionAlgorithm(int type)
getLobCompressionAlgorithm 在接口中 DataHandlertype - the data type (CLOB or BLOB)public Object getLobSyncObject()
getLobSyncObject 在接口中 DataHandlerpublic SmallLRUCache<String,String[]> getLobFileListCache()
getLobFileListCache 在接口中 DataHandlerpublic TempFileDeleter getTempFileDeleter()
getTempFileDeleter 在接口中 DataHandlerpublic LobStorageBackend getLobStorage()
getLobStorage 在接口中 DataHandlerpublic int readLob(long lobId,
byte[] hmac,
long offset,
byte[] buff,
int off,
int length)
readLob 在接口中 DataHandlerlobId - the lob idhmac - the message authentication codeoffset - the offset within the lobbuff - the target bufferoff - the offset within the target bufferlength - the number of bytes to readpublic JavaObjectSerializer getJavaObjectSerializer()
DataHandlergetJavaObjectSerializer 在接口中 DataHandlerpublic CompareMode getCompareMode()
DataHandlergetCompareMode 在接口中 DataHandlerCopyright © 2017. All rights reserved.