Re: javaeoutil Notes?
Re: javaeoutil Notes?
- Subject: Re: javaeoutil Notes?
- From: Chuck Hill <email@hidden>
- Date: Thu, 28 Aug 2008 16:11:57 -0700
cd /System/Library/WebObjects/JavaApplications/javaeoutil.woa
./javaeoutil help
Command line utility to perform database and EOF oriented tasks.
Syntax: javaeoutil dump/connect/convert
javaeoutil dump <model> [-source <source> [sourcefile]] -dest
<dest> [destfile] [-schemaCreate <options>] [-schemaDrop <options>] [-
postInstall] [-force] [-connDict <connection dictionary>] [-entities
<entities>] [-modelGroup <modelGroup>]
This command reads data from <source> and dumps it to <dest>. The
dump may
include bits of DML that create bits of database schema. The -source
flags is
optional if only schema is to be created (i.e. no data is being
dumped.) The
following is a list of possible values for each of the arguments in
the command:
model -- must be the name of an eomodel or eomodeld file
source -- plist or database(uses model to connect)
sourcefile -- name of file to read plist from
dest -- plist or script(both are written to stdout unless destfile
is specified) or database(uses model to connect)
destfile -- name of file to write plist
entities -- a subset of the entities in the model (all are used be
default)
options -- tables, primaryKeySupport, primaryKeyConstraints, or
foreignKeyConstraints
postInstall -- looks in the userInfo dictionary for an array of
SQL strings to process
after any schema creation and data dumping is
done
force -- Do not quit processing after database error
connDict -- A substitute connection dictionary
modelGroup -- A list of models to create a model group.
(Allows you to use models
not in a framework. Model names must be
absolute paths.)
Example: javaeoutil dump Movies.eomodeld -source plist -dest
database -schemaCreate tables primaryKeySupport foreignKeyConstraints
< MovieData.plist
Creates the tables in the database, reads data in plist format
from stdin,
stores the data in the database listed in the connection
dictionary of model,
creates primary key support in the database, and creates foreign key.
constraints corresponding to the relationship definitions.
javaeoutil convert <model> <adaptorName> <connectionDictionary>
<outFileName>
This command converts the type mapping in a model for the data source
specified by the connection dictionary URL.
The connection dictionary in the new model is set to
connectionDictionary.
model -- must be the name of an eomodel or eomodeld file
adaptorName -- JDBC or JNDI.
connectionDictionary -- string in property list format specifying
the URL for the data source (required)
and username and password (if required by that data
source). outFileName -- the name of a directory to write the
converted model
Example: javaeoutil convert Movies.eomodeld JDBC '{ URL =
jdbc:openbase://127.0.0.1/Movies; }' M.eomodeld
Converts types in Movies.eomodeld file to OpenBase types and
writes the converted
model to ./M.eomodel
javaeoutil connect <adaptorName> <connectionDictionary>
This command attempts to connect to a data source using the adaptor
named adaptorName
with connectionDictionary. It returns an exit status of 0 if
successful and 1
otherwise. This is primarily useful for scripts.
model -- must be the name of an eomodel or eomodeld file
adaptorName -- JDBC or JNDI.
connectionDictionary -- string in property list format specifying
the URL for the data source (required)
and username and password (if required by that data
source). Example: javaeoutil connect JDBC '{ URL =
"jdbc:oracle:thin:@sqasun2:1521:sqa"; username = movies; password =
movies; }'
Attempts to connect to an Oracle database via JDBC at the given
URL.
javaeoutil help
Prints this text.
On Aug 28, 2008, at 4:03 PM, Andrew Lindesay wrote:
Hello;
I am investigating use of "javaeoutil" –– does anybody know of any
notes on how to use the tool and I will write this up on the wiki.
cheers.
___
Andrew Lindesay
www.lindesay.co.nz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
--
Chuck Hill Senior Consultant / VP Development
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden