ws-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Ws Wiki] Update of "WorkingWithStaticDataObjects" by BrentDaniel
Date Mon, 30 Oct 2006 21:05:07 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Ws Wiki" for change notification.

The following page has been changed by BrentDaniel:
http://wiki.apache.org/ws/WorkingWithStaticDataObjects

------------------------------------------------------------------------------
  The RDB DAS allows clients to receive data graphs composed of dynamic !DataObjects or, alternatively,
static !DataObjects.  Unless otherwise specified, the DAS will return a graph of dynamic !DataObjects
(see ResultSetDrivenDataObjectTypes).
  
- Clients can designate a set of Types by providing a piece of configuration (usually in the
form of a configuration XML file) to the DAS And, when this is the case, the DAS will use
these Types for the 
+ Clients can designate a set of Types by providing a piece of configuration (usually in the
form of a configuration XML file) to the DAS And, when this is the case, the DAS will use
these Types for the DataObject model. 
  
+ Without any configuration specified, the DAS will attempt to use DataObject Type and Property
names equivalent to database Table and Column names. For example, if the database table name
is "BANK_EMPLOYEE", the DAS will attempt to create DataObject instances of type BANK_EMPLOYEE.
If this Type doesn't exist in the provided Types, an exception will be thrown by SDO. 
+ 
+ To map these database tables and columns to your SDO types and properties, you can provide
a "Type Name" and "Property Name". In the above example, if we specify a Type name of "employee",
the DAS will attempt to create DataObject instances of type "employee" from the information
in the BANK_EMPLOYEE table. 
+ 
+ It is not necessary to specify any sort of mapping between database column data types and
your Property data types. If the data types do not match, a conversion will be made between
the two when the property is set on the SDO model. The possible data type conversions are
specified in the SDO specification. If there is no valid conversion available between the
two data types, you can specify a Converter (see Converters) that the DAS will use to convert
the data before setting the value in the DataObject. 
+ 

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@ws.apache.org
For additional commands, e-mail: general-help@ws.apache.org


Mime
View raw message