Added: empire-db/site/legacy/index.html
URL: 
http://svn.apache.org/viewvc/empire-db/site/legacy/index.html?rev=1898936&view=auto
==============================================================================
--- empire-db/site/legacy/index.html (added)
+++ empire-db/site/legacy/index.html Mon Mar 14 20:41:26 2022
@@ -0,0 +1,287 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
+<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en-gb" lang="en-gb" >
+<!-- #BeginTemplate "main.dwt" -->
+<head>
+       <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+       <meta http-equiv="language" content="en" />
+       <meta name="robots" content="index, follow" />
+       <meta name="keywords" content="java, jar, jdbc, sql, data, metadata, 
persistence, rdbms, orm, mapping" />
+       <meta name="description" content="Open Source relational data 
persistence component." />
+       
+       <!-- #BeginEditable "doctitle" -->
+       <title>Empire-db relational data persistence</title>
+       <!-- #EndEditable -->
+       
+       <script type="text/javascript" src="./js/prototype.js"></script>
+       <script type="text/javascript" src="./js/menu.js"></script>
+       <!-- #BeginEditable "javascripts" -->
+       <!-- #EndEditable -->
+       
+       <link rel="shortcut icon" href="empire-db.ico" />
+       <link rel="stylesheet" href="css/layout.css" type="text/css" />
+       <!-- #BeginEditable "stylesheets" -->
+<style type="text/css">
+
+
+
+div#top {
+       height: 20px;   
+}
+
+table#comparison {
+       display: block;
+       width: 580px;
+}
+
+table#comparison th {
+       background-color: #F0F0F0;
+}
+
+table#comparison tbody th {
+       width: 150px;
+       text-align: left;
+}
+
+table#comparison td {
+       text-align: center;
+}
+
+table#comparison td.classical {
+       background-color: #ffffaa; /* #ffff99; */
+}
+
+table#comparison td.empiredb {
+       background-color: #ffd5aa; /* #ffcc99; /*
+}
+
+</style>
+       <!-- #EndEditable -->
+</head>
+
+<body>
+<div id="wrapper">
+
+       <!-- Header -->
+       <div id="header">
+               <div id="logo">
+                       <img src="images/logos/empire-db-logo.gif" 
alt="Empire-db: The relational data persistence component." />
+               </div>
+               <div id="asf">
+                       <a id="asfhome" target="_blank" 
href="https://www.apache.org";><img src="images/logos/feather-small.gif" 
alt="The Apache Software Foundation" /></a>
+                       <label for="asfhome" >The Apache Software 
Foundation</label>
+               </div>
+               <div style="clear:both"></div>
+       </div>
+       
+       <!-- Top -->
+       <div id="top">
+               <div id="topbar">&nbsp;</div>
+       </div>
+       
+       <!-- Middle -->
+       <div id="middle">
+               <div id="left">    
+                               <div id="menuBox">     
+                                       <ul id="mainMenu">
+                                               <li id="menu_home"><a 
href="index.html">Home</a></li>
+                                               <li id="menu_news"><a 
href="news.htm">News</a></li>
+                                               <li id="menu_empiredb"><a 
href="empiredb/empiredb.htm">Empire-db</a>
+                                                               <ul 
class="subMenu">
+                                                                       <li 
id="menu_empiredb_extending_pattern"><a href="empiredb/pattern.htm">The Empire 
DAO-<br />pattern</a></li>
+                                                                       <li 
id="menu_empiredb_handling_metadata"><a href="empiredb/metadata.htm">Handling 
data and metadata</a></li>
+                                                                       <li 
id="menu_empiredb_wrong"><a href="empiredb/hibernate.htm">What's wrong with 
Hibernate and JPA</a></li>
+                                                                       <li 
id="menu_empiredb_stringfree"><a href="empiredb/stringfree.htm">The principle 
of<br/>string-free coding</a></li>
+                                                                       <li 
id="menu_empiredb_faq"><a href="empiredb/faq.htm">FAQ</a></li>
+                                                               </ul>
+                                               </li>
+                                               <li id="menu_struts2ext"><a 
href="struts2ext/struts2ext.htm">Empire-db and Struts2</a>
+                                                       <ul class="subMenu">
+                                                               <li 
id="menu_struts2ext_forms_controls"><a 
href="struts2ext/forms_controls.htm">Forms and controls</a></li>
+                                                               <li 
id="menu_struts2ext_rendering_parsing"><a 
href="struts2ext/rendering_parsing.htm">Rendering and parsing</a></li>
+                                                               <!--<li 
id="menu_struts2ext_tag_reference"><a href="struts2ext/tag_reference.htm">Tag 
reference</a></li>-->
+                                                               <li 
id="menu_struts2ext_input_controls"><a 
href="struts2ext/input_controls.htm">Input controls</a></li>
+                                                       </ul>
+                                               </li>
+                                               <li id="menu_downloads"><a 
href="downloads/latest.htm">Downloads</a>
+                                                               <ul 
class="subMenu">
+                                                                       <li 
id="menu_downloads_previous"><a href="downloads/previous.htm">Previous 
releases</a></li>
+                                                                       <li 
id="menu_downloads_license"><a href="downloads/license.htm">License</a></li>
+                                                               </ul>
+                                               </li>
+                                               <li id="menu_documentation"><a 
href="documentation/documentation.htm">Documentation</a>                        
         
+                                                       <ul class="subMenu">
+                                                               <li 
id="menu_documentation_class_overview"><a 
href="documentation/class_overview.htm">Empire-db class<br />overview</a></li>
+                                                               <li 
id="menu_documentation_tutorials"><a 
href="documentation/tutorial.htm">Tutorial</a></li>
+                                                               <li 
id="menu_documentation_getting_started"><a 
href="documentation/getting_started.htm">Getting started</a></li>
+                                                               <li 
id="menu_documentation_reverse_engineering"><a 
href="documentation/reverse_engineering.htm">Reverse Engineering</a></li>
+                                                               <li 
id="menu_documentation_api"><a href="documentation/api.htm">API</a></li>
+                                                       </ul>
+                                               </li>
+                                               <li id="menu_community"><a 
href="community/community.htm">Community</a>                                 
+                                                       <ul class="subMenu">
+                                                               <li 
id="menu_community_mailing_lists"><a href="community/mailing_lists.htm">Mailing 
lists</a></li>
+                                                               <li 
id="menu_community_source_code"><a href="community/source_code.htm">Source 
code</a></li>
+                                                               <li 
id="menu_community_jira"><a href="community/jira.htm">Ticketing &amp; 
Wiki</a></li>
+                                                               <!--<li 
id="menu_community_road_map"><a href="community/road_map.htm">Road 
map</a></li>-->
+                                                               <li 
id="menu_community_contributors"><a 
href="community/contributors.htm">Contributors</a></li>
+                                                       </ul>
+                                               </li>
+                                               <li id="menu_apache"><a 
href="apache.htm">About Apache</a>
+                                                       <ul class="subMenu">
+                                                               <li 
id="menu_apache_home"><a href="https://www.apache.org";>Apache home<span 
class="asflink">&nbsp;</span></a></li>
+                                                               <li 
id="menu_apache_donate"><a 
href="https://www.apache.org/foundation/sponsorship.html";>Sponsorship<span 
class="asflink">&nbsp;</span></a></li>
+                                                               <li 
id="menu_apache_thanks"><a 
href="https://www.apache.org/foundation/thanks.html";>Foundation thanks<span 
class="asflink">&nbsp;</span></a></li>
+                                                               <li 
id="menu_apache_security"><a 
href="https://www.apache.org/security/";>Security<span 
class="asflink">&nbsp;</span></a></li>
+                                                       </ul>
+                                               </li>
+                                               <li id="menu_disclaimer"><a 
href="https://www.apache.org/licenses/";>License<span 
class="asflink">&nbsp;</span></a></li>
+                                       </ul>
+                               </div>
+                               
+               </div>
+       
+               <!-- #BeginEditable "menu" -->  
+       <script type="text/javascript">
+               var menu = new Menu( 'mainMenu', 'menu_home' );
+       </script>
+               <!-- #EndEditable -->
+               <script type="text/javascript">
+                       /* <![CDATA[ */
+                       if( menu ) {
+                               // Menu fully opened (comment out if not wanted)
+                               // menu.openAll();
+                       /* ]]> */
+                       }
+               </script>
+       
+               <div id="main">         
+                       
+                       <div id="pathway">
+                               <span style="float:left">
+                       <!-- #BeginEditable "pathway" -->
+                       Home
+               <!-- #EndEditable -->
+                       </span>
+                       <a id="downloadLink" href="downloads/latest.htm" 
style="float:right">Download</a>
+               </div>
+                       
+                       <div id="content">
+                       <!-- #BeginEditable "content" -->
+               <h1>Relational data persistence with Apache Empire-db</h1>
+               
+               <p style="margin-bottom: 10px">Apache Empire-db is a relational 
database abstraction layer and data persistence component that allows 
developers to 
+               take a much more SQL-centric approach in application 
development than traditional Object-relational mapping frameworks (ORM).
+               By providing a unique type-safe object orientated command API 
Empire-db allows building highly efficient SQL-statements that take full 
+               advantage of all database features while eliminating the need 
for error-prone string operations and literals. 
+               This, togehter with DBMS independent record and metadata 
managment leads to an unprecedented level of ease-of-use and 
compile-time-safety.</p>
+               
+               <h3 style="margin: 0px 0px 10px 0px">This is how it 
compares:</h3>
+               <table id="comparison" style="margin: auto;">
+               <thead>
+                       <tr><th 
style="border-left-width:0px;border-top-width:0px;background-color:white" 
width="24%">&nbsp;</th>
+                               <th width="38%">The classic ORM 
approach<br/>(e.g. JPA, Hibernate)</th>
+                               <th width="38%">Empire-db</th>
+                       </tr>
+               </thead>
+               <tbody>
+                       <tr><th>Database schema definition</th><td 
class="classical">XML or annotations</td><td class="empiredb">Java 
+                               object model</td></tr>                  
+                       <tr><th>Data and metadata access</th><td 
class="classical">Static JavaBeans used for<br/>
+                               simple data transfer.<br/>No or cumbersome<br/>
+                               metadata support.</td><td 
class="empiredb">Dynamic beans with<br/>
+                               metadata available through comprehensible and 
concise<br/>
+                               object hierarchy.</td></tr>
+                       <tr><th>Dynamic query definition</th><td 
class="classical">String-based query language 
+                               <br/>
+                               or object based API requiring column / property 
names to be provided as string 
+                               literals.<br/>
+                               Usually works with full<br/>
+                               database entities.</td><td 
class="empiredb">Type-safe, string-free 
+                               <br/>
+                               and intuitive API. 
+                               <br/>
+                               Build any SQL statement including the select 
clause and use it 
+                               with any POJO not just full featured entity 
beans.</td></tr>
+               </tbody>
+               </table>
+               
+               <h3 style="margin-top: 20px">... and what it can be used 
for:</h3>
+               <p style="margin-top: 10px">With dynamic beans and metadata 
support Empire-db may serve as the groundwork 
+               for building applications with a yet unknown level of 
integration. For 
+               the popular <a href="https://struts.apache.org/2.x";>Struts2 Web 
+               application framework</a> we offer an extension which acts as 
the glue 
+               between presentation and business / persistence layer. This not 
only 
+               dramatically reduces redundancies and thus improves quality but 
also 
+               allows a much better separation of&nbsp;model and view. As an 
+               example, whether or not the value of a form input control is 
editable or 
+               read only (which might depend on user access rights or 
+               record state) can be controlled solely by the model 
+               without any changes in the view.</p>
+
+               <h1>Find out more....</h1>
+               <table id="find_out_more">
+                       <tr><th class="odd"><a 
href="empiredb/empiredb.htm">Empire-db at a glance</a></th><td 
class="odd">Empire-db facts and features.</td></tr>
+                       <tr><th><a href="empiredb/hibernate.htm">Empire-db vs. 
Hibernate</a></th><td>Learn about the different concepts of relational data 
persistence.</td></tr>
+                       <tr><th class="odd"><a 
href="struts2ext/struts2ext.htm">Empire-db and Struts 2</a></th><td 
class="odd">Find out how Web applications can benefit from Empire-db&#39;s 
dynamic beans and metadata.</td></tr>
+                       <tr><th><a href="downloads/latest.htm">Get 
Empire-db</a></th><td>Download Empire-db and related packages as well as sample 
projects.</td></tr>
+               </table>
+       
+               <!--<img style="display: block; margin: auto; width: 600px; 
height: 272px;" src="images/diagrams/dao_pattern.png" alt="" />-->
+                               <!-- #EndEditable --></div>
+                                       
+                       <div id="nav">
+                               <hr />
+                               <div id="nav_prev">
+                                       <a id="prev" href=""><img 
src="images/prev.gif" alt="" /> Previous Page</a> 
+                                       &nbsp;
+                               </div>
+                               <div id="nav_next">
+                                       &nbsp;
+                                       <a id="next" href="">Next Page <img 
src="images/next.gif" alt="" /></a>
+                               </div>
+                               <div style="clear: both;"></div>
+                       </div>
+                       
+                       <script type="text/javascript">
+                       /* <![CDATA[ */
+                               if( ( typeof(prev_page) == "undefined" || 
prev_page == "" ) &&
+                                       ( typeof(next_page) == "undefined" || 
next_page == "" ) ) 
+                               {
+                                       $( 'nav' ).hide();
+                               }
+                               else 
+                               {                       
+                                       if( typeof(prev_page) != "undefined" && 
prev_page != "" ) {
+                                               $( 'prev' ).href = prev_page;
+                                               $( 'prev' ).show();
+                                       }
+                                       else {
+                                               $( 'prev' ).hide();
+                                       }
+                                       
+                                       if( typeof(next_page) != "undefined" && 
next_page !="" ) {
+                                               $( 'next' ).href = next_page;
+                                               $( 'next' ).show();
+                                       }
+                                       else {
+                                               $( 'next' ).hide();
+                                       }
+                               }
+                       /* ]]> */
+                       </script>
+
+               </div>
+
+       </div>
+       
+       <!-- Footer -->         
+       <div id="footer">
+               <div class="cr"><small>Copyright &copy; 2008-2021, The Apache 
Software Foundation</small></div>
+               <div class="tm"><small>Apache Empire-db, Empire-db, Apache, the 
Apache feather logo, and the Apache Empire-db project logo are trademarks of 
The Apache Software Foundation</small></div>
+       </div>
+
+</div>
+
+</body>
+<!-- #EndTemplate -->
+</html>
\ No newline at end of file

Propchange: empire-db/site/legacy/index.html
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: empire-db/site/legacy/js/maillink.js
URL: 
http://svn.apache.org/viewvc/empire-db/site/legacy/js/maillink.js?rev=1898936&view=auto
==============================================================================
--- empire-db/site/legacy/js/maillink.js (added)
+++ empire-db/site/legacy/js/maillink.js Mon Mar 14 20:41:26 2022
@@ -0,0 +1,21 @@
+var MailLink = Class.create ( {
+       initialize: function( link_id, name, server ) {
+               var link = $( link_id );
+               if( !link ) {
+                       return;
+               }
+               
+               this.name = name;
+               this.server = server;
+               
+               link.href = "#";
+               
+               var self = this;
+               link.onclick = function() { self.call(); };
+       },
+       
+       call: function() {
+               document.location.href = "mailto:"; + this.name + '@' + 
this.server;
+               return false;
+       }
+});
\ No newline at end of file

Propchange: empire-db/site/legacy/js/maillink.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: empire-db/site/legacy/js/menu.js
URL: 
http://svn.apache.org/viewvc/empire-db/site/legacy/js/menu.js?rev=1898936&view=auto
==============================================================================
--- empire-db/site/legacy/js/menu.js (added)
+++ empire-db/site/legacy/js/menu.js Mon Mar 14 20:41:26 2022
@@ -0,0 +1,185 @@
+var MenuItem = Class.create ( {
+       initialize: function( id, menu ) {
+               this.element = $(id);
+               this.element.style.cursor = "pointer";
+               this.menu = menu;               
+                               
+               var children = this.element.select( 'ul' );
+               this.hasSubmenu = children.size() > 0;
+               if( this.hasSubmenu ) {
+                       this.submenu = new Menu( children[ 0 ].identify() );
+                       this.submenu.setParentMenu( this.menu );
+               }
+       },
+       
+       getSubmenu: function() {
+               return this.submenu;
+       },
+       
+       isSubmenuOpen: function() {
+               if( this.hasSubmenu )
+               {
+                       var menu = this.getSubmenu();
+                       return menu.element.visible();
+               }
+               return false;
+       },
+       
+       openSubmenu: function() {
+               if( this.hasSubmenu )
+               {
+                       var menu = this.getSubmenu();                   
+                       menu.element.show();
+               }
+       },
+       
+       closeSubmenu: function() {
+               if( this.hasSubmenu )
+               {
+                       var menu = this.getSubmenu();                   
+                       menu.element.hide();
+               }
+       },
+       
+       toggleSubmenu: function() {
+               if( this.isSubmenuOpen() ) {
+                       this.closeSubmenu();
+               }
+               else {
+                       this.openSubmenu();
+               }
+       },      
+               
+       select: function( linkId ) {
+               if( this.hasSubmenu ) {
+                       this.getSubmenu().select( linkId );
+               }
+       },
+       
+       isLinked: function() {
+               return this.getLink() != "#" && this.getLink() != "";
+       },
+       
+       getLinkTag: function() {                
+               var children = this.element.select( 'a' );
+               if( children.size() > 0 ) {
+                       return children[ 0 ];
+               }
+       },
+       
+       getLink: function() {           
+               if( this.getLinkTag() ) {
+                       return this.getLinkTag().href;
+               }
+       },
+       
+       isExtern: function() {
+               if( this.getLinkTag() ) {
+                       return this.getLinkTag().target == '_blank';
+               }
+               else {
+                       return false;
+               }
+       }
+
+});
+
+var Menu = Class.create( {
+       initialize: function( id, startLinkId, startSubmenuLinkId ) {
+               this.element = $( id );         
+               this.links = new Hash();
+               this.currentLink = 0;
+               
+               var children = this.element.childElements();
+               for( var index = 0; index < children.size(); ++index ) {
+                       var link = children[ index ];                   
+                       var linkId = link.identify();                   
+                       var menuItem = new MenuItem( linkId, this );            
        
+                       link.onclick = this.select.bind( this, linkId, 0 );
+                       
+                       if( linkId != startLinkId ) {
+                               menuItem.closeSubmenu();
+                       }
+                       
+                       this.links.set( linkId, menuItem );
+               }
+               
+               this.select( startLinkId, startSubmenuLinkId );
+       },
+       
+       setParentMenu: function( menu ) {
+               this.parent_menu = menu;
+       },
+       
+       setChildHandleFlag: function() {
+               this.child_handle = true;
+       },
+       
+       select: function( linkId, submenuLinkId ) {
+
+               // inform parent menu about handling
+               if( this.parent_menu ) {
+                       this.parent_menu.setChildHandleFlag();
+               }
+               
+               if( this.child_handle ) {
+                       this.child_handle = false;
+                       return;
+               }
+
+               var link = this.links.get( linkId );
+               if( !link || link.isExtern() ) {
+                       return;
+               }
+               
+               // change mark
+               if( this.currentLink ) {
+                       this.currentLink.element.removeClassName( "current" );  
        
+                       this.currentLink.element.removeClassName( "current_sub" 
);
+               }
+               if( !submenuLinkId ) {
+                       link.element.addClassName( "current" ); 
+               }
+               else {
+                       link.element.addClassName( "current_sub" );     
+               }
+
+               // If menu was not opened menu pop it up
+               if( this.currentLink != link ) {                
+                       if( this.currentLink ) {
+                               this.currentLink.closeSubmenu();
+                       }
+
+                       link.openSubmenu();
+               }
+               else {
+                       link.toggleSubmenu();
+               }
+                               
+               // select submenu link
+               if( submenuLinkId ) {
+                       link.select( submenuLinkId );
+               }
+               this.currentLink = link;
+       },
+       
+       openAll: function() {
+               var items = this.links.values();
+               for( i = 0; i < items.length; ++i ) {
+                       var item = items[ i ];
+                       if( item && item.hasSubmenu ) {
+                               item.openSubmenu();
+                       }
+               }
+       },
+       
+       closeAll: function() {
+               var items = this.links.values();
+               for( i = 0; i < items.length; ++i ) {
+                       var item = items[ i ];
+                       if( item && item.hasSubmenu ) {
+                               item.closeSubmenu();
+                       }
+               }
+       }
+});

Propchange: empire-db/site/legacy/js/menu.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain


Reply via email to