Revision: 118
http://polepos.svn.sourceforge.net/polepos/?rev=118&view=rev
Author: carlrosenberger
Date: 2010-06-15 13:13:23 +0000 (Tue, 15 Jun 2010)
Log Message:
-----------
Modified Paths:
--------------
trunk/polepos/src/org/polepos/enhance/AllEnhance.java
Removed Paths:
-------------
trunk/polepos/lib/jorm/
trunk/polepos/src/org/polepos/enhance/JormEnhance.java
trunk/polepos/src/org/polepos/teams/jorm/BahrainJorm.java
trunk/polepos/src/org/polepos/teams/jorm/BarcelonaJorm.java
trunk/polepos/src/org/polepos/teams/jorm/ImolaJorm.java
trunk/polepos/src/org/polepos/teams/jorm/JormCar.java
trunk/polepos/src/org/polepos/teams/jorm/JormDriver.java
trunk/polepos/src/org/polepos/teams/jorm/JormTeam.java
trunk/polepos/src/org/polepos/teams/jorm/MelbourneJorm.java
trunk/polepos/src/org/polepos/teams/jorm/MonacoJorm.java
trunk/polepos/src/org/polepos/teams/jorm/MontrealJorm.java
trunk/polepos/src/org/polepos/teams/jorm/NurburgringJorm.java
trunk/polepos/src/org/polepos/teams/jorm/SepangJorm.java
trunk/polepos/src/org/polepos/teams/jorm/data/
Modified: trunk/polepos/src/org/polepos/enhance/AllEnhance.java
===================================================================
--- trunk/polepos/src/org/polepos/enhance/AllEnhance.java 2010-06-15 13:09:35 UTC (rev 117)
+++ trunk/polepos/src/org/polepos/enhance/AllEnhance.java 2010-06-15 13:13:23 UTC (rev 118)
@@ -23,7 +23,6 @@
public static void main(String[] args) throws Throwable {
JdoEnhance.main(null);
- new JormEnhance().runWithoutSystemExit();
new JviEnhance().runWithoutSystemExit();
JpaEnhance.main(null);
}
Deleted: trunk/polepos/src/org/polepos/enhance/JormEnhance.java
===================================================================
--- trunk/polepos/src/org/polepos/enhance/JormEnhance.java 2010-06-15 13:09:35 UTC (rev 117)
+++ trunk/polepos/src/org/polepos/enhance/JormEnhance.java 2010-06-15 13:13:23 UTC (rev 118)
@@ -1,39 +0,0 @@
-/*
-This file is part of the PolePosition database benchmark
-http://www.polepos.org
-
-This program is free software; you can redistribute it and/or
-modify it under the terms of the GNU General Public License
-as published by the Free Software Foundation; either version 2
-of the License, or (at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public
-License along with this program; if not, write to the Free
-Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
-MA 02111-1307, USA. */
-
-
-package org.polepos.enhance;
-
-public class JormEnhance extends EvilSystemExitEnhancer {
-
-
-
- protected void internalRunWithoutSystemExit(){
- String[] args = new String[]{
- "indir",
- "bin",
-
-// "verbose",
-// "1",
-
- };
- de.ama.db.tools.Enhancer.main(args);
- }
-
-}
Deleted: trunk/polepos/src/org/polepos/teams/jorm/BahrainJorm.java
===================================================================
--- trunk/polepos/src/org/polepos/teams/jorm/BahrainJorm.java 2010-06-15 13:09:35 UTC (rev 117)
+++ trunk/polepos/src/org/polepos/teams/jorm/BahrainJorm.java 2010-06-15 13:13:23 UTC (rev 118)
@@ -1,113 +0,0 @@
-/*
-This file is part of the PolePosition database benchmark
-http://www.polepos.org
-
-This program is free software; you can redistribute it and/or
-modify it under the terms of the GNU General Public License
-as published by the Free Software Foundation; either version 2
-of the License, or (at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public
-License along with this program; if not, write to the Free
-Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
-MA 02111-1307, USA. */
-
-package org.polepos.teams.jorm;
-
-import de.ama.db.OidIterator;
-import de.ama.db.Query;
-import org.polepos.circuits.bahrain.BahrainDriver;
-import org.polepos.teams.jorm.data.JormPilot;
-
-
-
-public class BahrainJorm extends JormDriver implements BahrainDriver{
-
- public void write(){
-
-
- int numobjects = setup().getObjectCount();
- int commitinterval = setup().getCommitInterval();
-
- int commitctr = 0;
- for ( int i = 1; i <= numobjects; i++ ){
-
- JormPilot p = new JormPilot( "Pilot_" + i, "Jonny_" + i, i , i );
- db().setObject( p );
-
- if ( commitinterval > 0 && ++commitctr >= commitinterval ){
- commitctr = 0;
- commit();
- }
- addToCheckSum(i);
- }
-
- commit();
- }
-
-
-
- public void queryIndexedString() {
- int count = setup().getSelectCount();
- for (int i = 1; i <= count; i++) {
- JormPilot jp = (JormPilot) db().getObject( new Query(JormPilot.class,"mName", Query.EQ , "Pilot_"+i));
- addToCheckSum(jp.checkSum());
- }
- }
-
-
-
- public void queryString() {
- int count = setup().getSelectCount();
- for (int i = 1; i <= count; i++) {
- JormPilot jp = (JormPilot) db().getObject( new Query(JormPilot.class,"mFirstName", Query.EQ , "Jonny_"+i));
- addToCheckSum(jp.checkSum());
- }
- }
-
- public void queryIndexedInt() {
- int count = setup().getSelectCount();
- for (int i = 1; i <= count; i++) {
- Query query = new Query(JormPilot.class,"mLicenseID", Query.EQ , i);
- JormPilot jp = (JormPilot) db().getObject( query);
- addToCheckSum(jp.checkSum());
- }
- }
-
- public void queryInt() {
- int count = setup().getSelectCount();
- for (int i = 1; i <= count; i++) {
- Query query = new Query(JormPilot.class,"mPoints", Query.EQ , i);
- JormPilot jp = (JormPilot) db().getObject( query);
- addToCheckSum(jp.checkSum());
- }
- }
-
- public void update() {
- int updateCount = setup().getUpdateCount();
- int commitinterval = setup().getCommitInterval();
-
- OidIterator oidIterator = db().getOidIterator(new Query(JormPilot.class));
- for (int i = 0; i < updateCount; i++) {
- JormPilot p = (JormPilot) oidIterator.next();
- p.setName( p.getName().toUpperCase() );
- addToCheckSum(1);
- if(i%commitinterval==0){
- commit();
- }
- }
- commit();
- }
-
- public void delete() {
- addToCheckSum(db().getObjectCount(JormPilot.class));
- db().deleteBulk(new Query(JormPilot.class));
- commit();
- }
-
-}
Deleted: trunk/polepos/src/org/polepos/teams/jorm/BarcelonaJorm.java
===================================================================
--- trunk/polepos/src/org/polepos/teams/jorm/BarcelonaJorm.java 2010-06-15 13:09:35 UTC (rev 117)
+++ trunk/polepos/src/org/polepos/teams/jorm/BarcelonaJorm.java 2010-06-15 13:13:23 UTC (rev 118)
@@ -1,70 +0,0 @@
-/*
-This file is part of the PolePosition database benchmark
-http://www.polepos.org
-
-This program is free software; you can redistribute it and/or
-modify it under the terms of the GNU General Public License
-as published by the Free Software Foundation; either version 2
-of the License, or (at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public
-License along with this program; if not, write to the Free
-Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
-MA 02111-1307, USA. */
-
-package org.polepos.teams.jorm;
-
-import de.ama.db.OidIterator;
-import de.ama.db.Query;
-import org.polepos.circuits.barcelona.BarcelonaDriver;
-import org.polepos.framework.CheckSummable;
-import org.polepos.teams.jorm.data.JB4;
-
-
-
-public class BarcelonaJorm extends JormDriver implements BarcelonaDriver{
-
- public void write(){
- int count = setup().getObjectCount();
- for (int i = 1; i<= count; i++) {
- JB4 b4 = new JB4();
- b4.setAll(i);
- store(b4);
- }
- commit();
- }
-
- public void read(){
- OidIterator list = db().getObjects(JB4.class);
- for (int i = 0; i < list.size(); i++) {
- JB4 jb4 = (JB4) list.get(i);
- addToCheckSum(jb4.checkSum());
- }
- }
-
- public void query(){
- int count = setup().getSelectCount();
- for (int i = 1; i <= count; i++) {
- OidIterator list = db().getObjects(new Query(JB4.class, "b2", Query.EQ, i ));
- for (int j = 0; j < list.size(); j++) {
- Object o = (Object) list.get(j);
- if(o instanceof CheckSummable){
- addToCheckSum(((CheckSummable)o).checkSum());
- }
- }
- }
- }
-
- public void delete(){
- int count = db().getObjectCount(JB4.class);
- db().deleteBulk(new Query(JB4.class));
- addToCheckSum(count*5);
- commit();
- }
-
-}
Deleted: trunk/polepos/src/org/polepos/teams/jorm/ImolaJorm.java
===================================================================
--- trunk/polepos/src/org/polepos/teams/jorm/ImolaJorm.java 2010-06-15 13:09:35 UTC (rev 117)
+++ trunk/polepos/src/org/polepos/teams/jorm/ImolaJorm.java 2010-06-15 13:13:23 UTC (rev 118)
@@ -1,67 +0,0 @@
-/*
-This file is part of the PolePosition database benchmark
-http://www.polepos.org
-
-This program is free software; you can redistribute it and/or
-modify it under the terms of the GNU General Public License
-as published by the Free Software Foundation; either version 2
-of the License, or (at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public
-License along with this program; if not, write to the Free
-Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
-MA 02111-1307, USA. */
-
-package org.polepos.teams.jorm;
-
-import org.polepos.circuits.imola.ImolaDriver;
-import org.polepos.teams.jorm.data.JormPilot;
-
-
-public class ImolaJorm extends JormDriver implements ImolaDriver{
-
- private Object[] oids;
-
- public void store() {
- int count = setup().getObjectCount();
- oids = new Object[setup().getSelectCount()];
- for ( int i = 1; i <= count; i++ ){
- storePilot(i);
- }
- commit();
- }
-
- public void retrieve() {
- for(Object oid : oids) {
- JormPilot pilot=(JormPilot)db().getObject((String) oid);
- if(pilot==null) {
- System.err.println("Object not found by ID.");
- }else{
- addToCheckSum(pilot.getPoints());
- }
- }
- }
-
- private void storePilot(int idx) {
- JormPilot pilot = new JormPilot( "Pilot_" + idx, "Jonny_" + idx, idx , idx );
- db().setObject( pilot );
-
- if(idx <= setup().getSelectCount()) {
- oids[idx - 1] = db().getOidString(pilot);
- }
- if ( isCommitPoint(idx) ){
- db().commit();
- }
- }
-
- private boolean isCommitPoint(int idx) {
- int commitInterval=setup().getCommitInterval();
- return commitInterval> 0 && idx%commitInterval==0 && idx<setup().getObjectCount();
- }
-
-}
Deleted: trunk/polepos/src/org/polepos/teams/jorm/JormCar.java
===================================================================
--- trunk/polepos/src/org/polepos/teams/jorm/JormCar.java 2010-06-15 13:09:35 UTC (rev 117)
+++ trunk/polepos/src/org/polepos/teams/jorm/JormCar.java 2010-06-15 13:13:23 UTC (rev 118)
@@ -1,42 +0,0 @@
-/*
-This file is part of the PolePosition database benchmark
-http://www.polepos.org
-
-This program is free software; you can redistribute it and/or
-modify it under the terms of the GNU General Public License
-as published by the Free Software Foundation; either version 2
-of the License, or (at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public
-License along with this program; if not, write to the Free
-Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
-MA 02111-1307, USA. */
-
-package org.polepos.teams.jorm;
-
-import org.polepos.framework.*;
-
-
-/**
- * @author Andreas Marochow
- */
-public class JormCar extends Car {
-
-
- JormCar(Team team) {
- super(team);
- _website = "http://www.marochow.de/gna-jorm/index.html";
- _description = "java or-mapper";
- }
-
-
- public String name() {
- return "gna-jorm/mysql";
- }
-
-}
Deleted: trunk/polepos/src/org/polepos/teams/jorm/JormDriver.java
===================================================================
--- trunk/polepos/src/org/polepos/teams/jorm/JormDriver.java 2010-06-15 13:09:35 UTC (rev 117)
+++ trunk/polepos/src/org/polepos/teams/jorm/JormDriver.java 2010-06-15 13:13:23 UTC (rev 118)
@@ -1,64 +0,0 @@
-/*
-This file is part of the PolePosition database benchmark
-http://www.polepos.org
-
-This program is free software; you can redistribute it and/or
-modify it under the terms of the GNU General Public License
-as published by the Free Software Foundation; either version 2
-of the License, or (at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public
-License along with this program; if not, write to the Free
-Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
-MA 02111-1307, USA. */
-
-package org.polepos.teams.jorm;
-
-import de.ama.db.DB;
-import de.ama.db.Session;
-import org.polepos.framework.Car;
-import org.polepos.framework.CarMotorFailureException;
-import org.polepos.framework.DriverBase;
-import org.polepos.framework.TurnSetup;
-
-
-/**
- * @author Andreas Marochow
- */
-public abstract class JormDriver extends DriverBase{
-
-
- public void takeSeatIn( Car car, TurnSetup setup) throws CarMotorFailureException{
- super.takeSeatIn(car, setup);
- }
-
- public void prepare(){
-// DB.session().delete(Persistent.class);
- }
-
- public void backToPit(){
- DB.session().rollback();
- }
-
- public Session db(){
- return DB.session();
- }
-
- public void commit(){
- DB.session().commit();
- }
-
- public void store(Object obj){
- DB.session().setObject(obj);
- }
-
-
-
-
-
-}
Deleted: trunk/polepos/src/org/polepos/teams/jorm/JormTeam.java
===================================================================
--- trunk/polepos/src/org/polepos/teams/jorm/JormTeam.java 2010-06-15 13:09:35 UTC (rev 117)
+++ trunk/polepos/src/org/polepos/teams/jorm/JormTeam.java 2010-06-15 13:13:23 UTC (rev 118)
@@ -1,85 +0,0 @@
-/*
-This file is part of the PolePosition database benchmark
-http://www.polepos.org
-
-This program is free software; you can redistribute it and/or
-modify it under the terms of the GNU General Public License
-as published by the Free Software Foundation; either version 2
-of the License, or (at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public
-License along with this program; if not, write to the Free
-Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
-MA 02111-1307, USA. */
-
-package org.polepos.teams.jorm;
-
-import de.ama.db.DB;
-import de.ama.db.Persistent;
-import org.polepos.framework.Car;
-import org.polepos.framework.DriverBase;
-import org.polepos.framework.Team;
-
-
-public class JormTeam extends Team{
-
- private final Car[] mCars;
-
- public JormTeam() {
- mCars = new Car[]{new JormCar(this) };
-
- DB db = new DB("localhost", "root", "polepos_jorm","");
- db.directExecuteSqlStatement("drop database if exists polepos_jorm");
- db.joinCatalog("polepos_jorm");
-
- DB.session().setVerbose(false);
- DB.session().delete(Persistent.class);
- }
-
- public String name(){
- return "GNA-JORM";
- }
-
-
- public String description() {
- return "the Jorm Team";
- }
-
-
- public Car[] cars(){
- return mCars;
- }
-
-
- public DriverBase[] drivers() {
- return new DriverBase[]{
- new MelbourneJorm(),
- new SepangJorm(),
- new BahrainJorm(),
- new ImolaJorm(),
- new NurburgringJorm(),
- new MonacoJorm(),
- new MontrealJorm(),
- new BarcelonaJorm()
- };
- }
-
-
- public String website() {
- return "http://www.marochow.de/gna-jorm/index.html";
- }
-
- public String databaseFile() {
- return null;
- }
-
- @Override
- public void setUp() {
- System.err.println("JormTeam#setup not implemented. It should delete all database files.");
- }
-}
Deleted: trunk/polepos/src/org/polepos/teams/jorm/MelbourneJorm.java
===================================================================
--- trunk/polepos/src/org/polepos/teams/jorm/MelbourneJorm.java 2010-06-15 13:09:35 UTC (rev 117)
+++ trunk/polepos/src/org/polepos/teams/jorm/MelbourneJorm.java 2010-06-15 13:13:23 UTC (rev 118)
@@ -1,72 +0,0 @@
-/*
-This file is part of the PolePosition database benchmark
-http://www.polepos.org
-
-This program is free software; you can redistribute it and/or
-modify it under the terms of the GNU General Public License
-as published by the Free Software Foundation; either version 2
-of the License, or (at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public
-License along with this program; if not, write to the Free
-Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
-MA 02111-1307, USA. */
-
-package org.polepos.teams.jorm;
-
-
-import de.ama.db.OidIterator;
-import de.ama.db.Query;
-import org.polepos.circuits.melbourne.MelbourneDriver;
-import org.polepos.teams.jorm.data.JormPilot;
-
-/**
- * @author Andreas Marochow
- */
-public class MelbourneJorm extends JormDriver implements MelbourneDriver{
-
- public void write(){
-
- int numobjects = setup().getObjectCount();
- int commitinterval = setup().getCommitInterval();
- int commitctr = 0;
-
- for ( int i = 1; i <= numobjects; i++ ){
-
- JormPilot p = new JormPilot( "Pilot_" + i, "Herkules", i, i ) ;
- store(p);
-
- if ( commitinterval > 0 && ++commitctr >= commitinterval ){
- commitctr = 0;
- commit();
- }
-
- addToCheckSum(i);
- }
-
- commit();
- }
-
- public void read(){
- OidIterator list = db().getObjects(JormPilot.class);
- for (int i = 0; i < list.size(); i++) {
- JormPilot jormPilot = (JormPilot) list.get(i);
- addToCheckSum(jormPilot.checkSum());
- }
-
- }
-
- public void read_hot() {
- read();
- }
-
- public void delete(){
- db().deleteBulk(new Query(JormPilot.class));
- commit();
- }
-}
Deleted: trunk/polepos/src/org/polepos/teams/jorm/MonacoJorm.java
===================================================================
--- trunk/polepos/src/org/polepos/teams/jorm/MonacoJorm.java 2010-06-15 13:09:35 UTC (rev 117)
+++ trunk/polepos/src/org/polepos/teams/jorm/MonacoJorm.java 2010-06-15 13:13:23 UTC (rev 118)
@@ -1,59 +0,0 @@
-/*
-This file is part of the PolePosition database benchmark
-http://www.polepos.org
-
-This program is free software; you can redistribute it and/or
-modify it under the terms of the GNU General Public License
-as published by the Free Software Foundation; either version 2
-of the License, or (at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public
-License along with this program; if not, write to the Free
-Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
-MA 02111-1307, USA. */
-
-
-package org.polepos.teams.jorm;
-
-import org.polepos.circuits.monaco.MonacoDriver;
-import org.polepos.teams.jorm.data.LightObject;
-
-
-public class MonacoJorm extends JormDriver implements MonacoDriver{
-
- public void write() {
-
- int commitctr = 0;
- int commitInterval = 50000;
-
-
- int count = setup().getObjectCount();
-
- for (int i = 1; i<= count; i++) {
- store(new LightObject(i));
- if ( commitInterval> 0 && ++commitctr >= commitInterval ){
- commitctr = 0;
- commit();
- }
- }
- commit();
- }
-
- public void commits(){
-
- int idbase = setup().getObjectCount() + 1;
- int count = setup().getCommitCount();
-
- for (int i = 1; i<= count; i++) {
- store(new LightObject(idbase + i));
- commit();
- }
-
- }
-
-}
Deleted: trunk/polepos/src/org/polepos/teams/jorm/MontrealJorm.java
===================================================================
--- trunk/polepos/src/org/polepos/teams/jorm/MontrealJorm.java 2010-06-15 13:09:35 UTC (rev 117)
+++ trunk/polepos/src/org/polepos/teams/jorm/MontrealJorm.java 2010-06-15 13:13:23 UTC (rev 118)
@@ -1,43 +0,0 @@
-
-
-package org.polepos.teams.jorm;
-
-import de.ama.db.DB;
-import de.ama.db.OidIterator;
-import de.ama.db.Persistent;
-import org.polepos.circuits.montreal.MontrealDriver;
-import org.polepos.framework.CheckSummable;
-import org.polepos.teams.jorm.data.ListHolder;
-
-
-public class MontrealJorm extends JormDriver implements MontrealDriver {
-
- public void prepare(){
- DB.session().delete(Persistent.class);
- }
-
-
- public void write() {
-
- int count = 1000;
- int elements = setup().getObjectSize();
-
- for (int i = 1; i<= count; i++) {
- store(ListHolder.generate(i, elements));
- }
- commit();
- }
-
- public void read() {
- OidIterator list = db().getObjects(ListHolder.class);
- for (int i = 0; i < list.size(); i++) {
- Object o = list.get(i);
- if (o instanceof CheckSummable) {
- addToCheckSum(((CheckSummable) o).checkSum());
- }
- }
-
-
- }
-
-}
Deleted: trunk/polepos/src/org/polepos/teams/jorm/NurburgringJorm.java
===================================================================
--- trunk/polepos/src/org/polepos/teams/jorm/NurburgringJorm.java 2010-06-15 13:09:35 UTC (rev 117)
+++ trunk/polepos/src/org/polepos/teams/jorm/NurburgringJorm.java 2010-06-15 13:13:23 UTC (rev 118)
@@ -1,59 +0,0 @@
-/*
-This file is part of the PolePosition database benchmark
-http://www.polepos.org
-
-This program is free software; you can redistribute it and/or
-modify it under the terms of the GNU General Public License
-as published by the Free Software Foundation; either version 2
-of the License, or (at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public
-License along with this program; if not, write to the Free
-Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
-MA 02111-1307, USA. */
-
-package org.polepos.teams.jorm;
-
-import de.ama.db.OidIterator;
-import org.polepos.circuits.nurburgring.NurburgringDriver;
-import org.polepos.framework.CheckSummable;
-import org.polepos.teams.jorm.data.N1;
-
-
-public class NurburgringJorm extends JormDriver implements NurburgringDriver{
-
- public void write(){
-
- int numobjects = setup().getObjectCount();
- int commitinterval = setup().getCommitInterval();
- int commitctr = 0;
-
- for ( int i = 1; i <= numobjects; i++ ){
- store(N1.generate(i));
-
- if ( commitinterval > 0 && ++commitctr >= commitinterval ){
- commitctr = 0;
- commit();
- }
-
- addToCheckSum(i);
- }
- commit();
- }
-
- public void read(){
- OidIterator list = db().getObjects(N1.class);
- for (int i = 0; i < list.size(); i++) {
- Object o = list.get(i);
- if (o instanceof CheckSummable) {
- addToCheckSum(((CheckSummable) o).checkSum());
- }
- }
- }
-
-}
Deleted: trunk/polepos/src/org/polepos/teams/jorm/SepangJorm.java
===================================================================
--- trunk/polepos/src/org/polepos/teams/jorm/SepangJorm.java 2010-06-15 13:09:35 UTC (rev 117)
+++ trunk/polepos/src/org/polepos/teams/jorm/SepangJorm.java 2010-06-15 13:13:23 UTC (rev 118)
@@ -1,65 +0,0 @@
-/*
-This file is part of the PolePosition database benchmark
-http://www.polepos.org
-
-This program is free software; you can redistribute it and/or
-modify it under the terms of the GNU General Public License
-as published by the Free Software Foundation; either version 2
-of the License, or (at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public
-License along with this program; if not, write to the Free
-Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
-MA 02111-1307, USA. */
-
-package org.polepos.teams.jorm;
-import org.polepos.circuits.sepang.SepangDriver;
-import org.polepos.teams.jorm.data.JormTree;
-import org.polepos.teams.jorm.data.JormTreeVisitor;
-
-
-/**
- * @author Andreas Marochow
- */
-public class SepangJorm extends JormDriver implements SepangDriver {
-
- private Object oid;
-
- public void write(){
-
- JormTree tree = JormTree.createTree(setup().getTreeDepth());
- db().setObject(tree);
- oid = db().getOidString(tree);
- commit();
- }
-
- public void read(){
- JormTree tree = (JormTree)db().getObject((String) oid);
- JormTree.traverse(tree, new JormTreeVisitor() {
- public void visit(JormTree tree) {
- addToCheckSum(tree.getDepth());
- }
- });
- }
-
- public void read_hot() {
- read();
- }
-
- public void delete(){
- JormTree tree = (JormTree)db().getObject((String) oid);
- JormTree.traverse(tree, new JormTreeVisitor() {
- public void visit(JormTree tree) {
- db().delete(tree);
- }
- });
- commit();
- }
-
-
-}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|