gorilla.pnggorilla.png

Last UpDate 27 december 2004
 
 
JUnivers, a new way to think Java.
 
junivers
 

Have a look at the following code ...

<?xml version="1.0" encoding="UTF-8"?>
<Project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="JUniversXMLRepository.xsd" sid="String">
	<Connections>
		<Connection sid="bugs" connectionTypeSId="_oracle">
			<Parameters>
			driverName=oracle.jdbc.driver.OracleDriver
			url=jdbc:oracle:thin:@galaxy:1521:ORCL
			user=bug
			password=bug
			</Parameters>
			<Entity sid="BUGS" nativeType="TABLE">
				<Attribute sid="BUGID" identifier="true" dataType="Number" defaultValue="#SEQ_BUGS"/>
				<Attribute sid="MODULID" identifier="true" dataType="Number"/>
				<Attribute sid="BUGNAME" dataType="String"/>
			</Entity>
			<Entity sid="MODULS" nativeType="TABLE">
				<Attribute sid="MODULID" identifier="true" dataType="Number" defaultValue="#SEQ_MODULS"/>
				<Attribute sid="MODULNAME" dataType="String"/>
			</Entity>
		</Connection>
	</Connections>
	<Components>
		<Component sid="modulId" readOnly="false" version="false" visible="false">
			<AttributeBinding attributSId="MODULID" entitySId="MODULS" connectionSId="bugs"/>
			<Message sid="DisplayName">
				<MessageText lang="french">Identifiant</MessageText>
			</Message>
		</Component>
		<Component sid="bugModulId" readOnly="false" version="false" visible="false">
			<AttributeBinding attributSId="MODULID" entitySId="BUGS" connectionSId="bugs"/>
			<Message sid="DisplayName">
				<MessageText lang="french">Module</MessageText>
			</Message>
		</Component>
		<Component sid="modulName" readOnly="false" version="false" visible="true">
			<AttributeBinding attributSId="MODULNAME" entitySId="MODULS" connectionSId="bugs"/>
			<Message sid="DisplayName">
				<MessageText lang="french">nom du module</MessageText>
			</Message>
		</Component>
		<Component sid="bugId" readOnly="false" version="false" visible="false">
			<AttributeBinding attributSId="BUGID" entitySId="BUGS" connectionSId="bugs"/>
			<Message sid="DisplayName">
				<MessageText lang="french">Identifiant du bug</MessageText>
			</Message>
		</Component>
		<Component sid="bugName" readOnly="false" version="false" visible="true">
			<AttributeBinding attributSId="BUGNAME" entitySId="BUGS" connectionSId="bugs"/>
			<Message sid="DisplayName">
				<MessageText lang="french">nom du bug</MessageText>
			</Message>
		</Component>
		<Component sid="list" readOnly="false" version="false" visible="true">
			<RequestBinding>
				<Request connectionSId="bugs">
					<NativeWhere>moduls.modulid=bugs.modulid</NativeWhere>
					<Source mainSource="true" entitySId="BUGS"/>
					<Source mainSource="false" entitySId="MODULS"/>
					<!--Order>
					<Attribute sid="sid" entitySId="BUGS" connectionSId="bugs"/>
				</Order-->
				</Request>
			</RequestBinding>
			<Implementation sid="modulId" componentSId="modulId"/>
			<Implementation sid="modulName" componentSId="modulName"/>
			<Implementation sid="bugId" componentSId="bugId"/>
			<Implementation sid="bugName" componentSId="bugName"/>
		</Component>
		<Component sid="bugs" readOnly="false" version="false" visible="true">
			<RequestBinding>
				<Request connectionSId="bugs" refreshOnStartup="true">
					<Source mainSource="true" entitySId="BUGS"/>
				</Request>
			</RequestBinding>
			<Action actionTypeSId="ActionRefresh"/>
			<Implementation sid="bugId" componentSId="bugId"/>
			<Implementation sid="bugModulId" componentSId="bugId"/>
			<Implementation sid="bugName" componentSId="bugName"/>
		</Component>
		<Component sid="moduls" readOnly="false" version="false" visible="true">
			<RequestBinding>
				<Request connectionSId="bugs" refreshOnStartup="true">
					<Source mainSource="true" entitySId="MODULS"/>
				</Request>
			</RequestBinding>
			<Action actionTypeSId="ActionRefresh"/>
			<Implementation sid="modulId" componentSId="modulId"/>
			<Implementation sid="modulName" componentSId="modulName"/>
		</Component>
		<Component sid="ModulsBugs">
			<Link type="LinkFilter">
				<Path sid="source">
					<ImplPath implementationSId="bugs"/>
					<ImplPath implementationSId="bugModulId"/>
				</Path>
				<Path sid="target">
					<ImplPath implementationSId="moduls"/>
					<ImplPath implementationSId="modulId"/>
				</Path>
			</Link>
			<Link type="LinkRefresh">
				<Path sid="source">
					<ImplPath implementationSId="moduls"/>
				</Path>
				<Path sid="target">
					<ImplPath implementationSId="bugs"/>
				</Path>
			</Link>
			<Implementation sid="moduls" componentSId="moduls"/>
			<Implementation sid="bugs" componentSId="bugs"/>
		</Component>
	</Components>
	<Implementations>
		<Implementation sid="list" componentSId="list"/>
		<Implementation sid="bugs" componentSId="bugs"/>
		<Implementation sid="moduls" componentSId="moduls"/>
		<Implementation sid="main" componentSId="ModulsBugs"/>
	</Implementations>
</Project>


          

 

Java imports :


import org.junivers.application.*;
import org.junivers.dictionary.project.*;
import org.junivers.dictionary.tools.*;
import org.junivers.server.access.*;

Program :

ServerFacade s=ServerFacadeToolkit.getAppServer("sample");
DefaultComponent c=new Launcher(s).launch("main");
System.err.println(""+c.getChildAt(0).getNewDataValues());