com.xavax.xstore.tools
Class MetadataBuilder
Object
MetadataBuilder
- public class MetadataBuilder
- extends Object
MetadataBuilder creates the metadata which controls the persistence
framework as well as the schema for the client database. Metadata
is created for each class listed in the input file and written to
the output file along with a schema. The command line syntax is as
follows.
TOOLS=com.xavax.xstore.tools
java ${TOOLS}.MetadataBuilder
inputFilename outputFilename
The input file contains a list of class and data source specifications.
The format of each data source specification is as follows.
database [name] [MSS|MySQL|Oracle] [jndi-url]
The format of each class specification is as follows. The interface
and class names are unqualified.
packageName interfaceName implementationName proxyName
Both the metadata and schema are written to the output file. The
database name defaults to "test1". A future version of this tool
will support creating multiple databases.
MetadataBuilder uses reflection to determine the fields in each class;
therefore, it is necessary for all classes listed in the input file
to be in the class path when MetadataBuilder executes.
Method Summary |
static void |
main(String[] args)
Create a MetadataBuilder and call the build method to create the
metadata and build a schema for the client database. |
Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MSG_FieldNotPersistable
public static final int MSG_FieldNotPersistable
- See Also:
- Constant Field Values
MSG_LoadMetadataFailed
public static final int MSG_LoadMetadataFailed
- See Also:
- Constant Field Values
main
public static void main(String[] args)
- Create a MetadataBuilder and call the build method to create the
metadata and build a schema for the client database.
- Parameters:
args
- the command line parameters.
args[0] | The input filename. |
args[1] | The output filename. |