EclipseLink 2.2.0, build 'v20110202-r8913' API Reference

org.eclipse.persistence.dbws
Class DBWSModel

java.lang.Object
  extended by org.eclipse.persistence.internal.xr.XRServiceModel
      extended by org.eclipse.persistence.dbws.DBWSModel

public class DBWSModel
extends org.eclipse.persistence.internal.xr.XRServiceModel

PUBLIC: model object for eclipselink-dbws.xml descriptor file. A DBWS (also known as an XRServiceAdapter) requires the following resources:

An example eclipselink-dbws.xml descriptor file:
 <?xml version="1.0" encoding="UTF-8"?>
 <dbws
   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   >
   <name>example</name>
   <sessions-file>example-dbws-sessions.xml</sessions-file>
   <query>
     <name>countEmployees</name>
     <result>
       <type>xsd:int</type>
       <simple-xml-format>
         <simple-xml-format-tag>employee-info</simple-xml-format-tag>
         <simple-xml-tag>aggregate-info</simple-xml-tag>
       </simple-xml-format>
     </result>
     <sql><![CDATA[select count(*) from EMP]]></sql>
   </query>
   <query>
     <name>findAllEmployees</name>
     <result isCollection="true">
       <type>empType</type>
     </result>
     <sql><![CDATA[select * from EMP]]></sql>
   </query>
 </dbws>

Author:
Mike Norman - michael.norman@oracle.com
Since:
EclipseLink 1.0

Field Summary
 
Fields inherited from class org.eclipse.persistence.internal.xr.XRServiceModel
name, operations, sessionsFile
 
Constructor Summary
DBWSModel()
           
 
Method Summary
 
Methods inherited from class org.eclipse.persistence.internal.xr.XRServiceModel
getName, getOperation, getOperations, getOperationsList, getSessionsFile, setName, setOperations, setSessionsFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBWSModel

public DBWSModel()

EclipseLink 2.2.0, build 'v20110202-r8913' API Reference