Class Main
java.lang.Object
one.microstream.examples.customlegacytypehandler.Main
public class Main extends Object
This example shows how custom legacy type mapping is done.
USAGE:
Run this sample twice. For the first run use the upper first generation "NicePlace" Object to setup the initial storage.
Before the second run switch to the modified, second generation version of the "NicePlace" object by
commenting out the initial version and using the modified one in NicePlace.java.
the custom type mapping is done by the LegacyTypeHandlerNicePlace.
-
Constructor Summary
Constructors Constructor Description Main()
-
Method Summary
Modifier and Type Method Description static File
GetTempWorkDirectory(String name)
create a working directory with constant name in system's temporary directorystatic void
main(String[] args)
static String
ObjectToString(Object o)
Object class and field to String
-
Constructor Details
-
Main
public Main()
-
-
Method Details
-
main
-
ObjectToString
Object class and field to String- Parameters:
Object
- o- Returns:
- String
-
GetTempWorkDirectory
create a working directory with constant name in system's temporary directory
-