Isis-fish-commits
Threads by month
- ----- 2026 -----
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2007 -----
- December
- November
July 2008
- 3 participants
- 34 discussions
r1269 - branches/maven2_multimodule/isis-fish/isis-fish-entities
by tchemit@users.labs.libre-entreprise.org 29 Jul '08
by tchemit@users.labs.libre-entreprise.org 29 Jul '08
29 Jul '08
Author: tchemit
Date: 2008-07-29 15:34:39 +0000 (Tue, 29 Jul 2008)
New Revision: 1269
Modified:
branches/maven2_multimodule/isis-fish/isis-fish-entities/pom.xml
Log:
pahse compile poru el plugin i18n
Modified: branches/maven2_multimodule/isis-fish/isis-fish-entities/pom.xml
===================================================================
--- branches/maven2_multimodule/isis-fish/isis-fish-entities/pom.xml 2008-07-29 15:34:13 UTC (rev 1268)
+++ branches/maven2_multimodule/isis-fish/isis-fish-entities/pom.xml 2008-07-29 15:34:39 UTC (rev 1269)
@@ -127,7 +127,7 @@
<artifactId>maven-i18n-plugin</artifactId>
<executions>
<execution>
- <phase>process-classes</phase>
+ <phase>compile</phase>
<goals>
<goal>parserJava</goal>
<goal>gen</goal>
@@ -173,7 +173,7 @@
<artifactId>maven-generator-plugin</artifactId>
<executions>
<execution>
- <phase>generate-sources</phase>
+ <phase>process-sources</phase>
<configuration>
<srcDirZuml>${maven.src.dir}/main/xmi</srcDirZuml>
<srcXmiDest>${maven.gen.dir}/xmi/</srcXmiDest>
@@ -188,6 +188,7 @@
<copyVersionDir>${maven.gen.dir}/resources/oldmappings/%MODELNAME%</copyVersionDir>
<copyVersionFiles>**/*.hbm.xml</copyVersionFiles>
<copyOverwrite>true</copyOverwrite>
+ <addCompileDirectory>true</addCompileDirectory>
</configuration>
<goals>
<goal>zargo2xmi</goal>
1
0
r1268 - in branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/resources: . i18n
by tchemit@users.labs.libre-entreprise.org 29 Jul '08
by tchemit@users.labs.libre-entreprise.org 29 Jul '08
29 Jul '08
Author: tchemit
Date: 2008-07-29 15:34:13 +0000 (Tue, 29 Jul 2008)
New Revision: 1268
Added:
branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/resources/i18n/
branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/resources/i18n/isis-fish-entities-en_GB.properties
branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/resources/i18n/isis-fish-entities-fr_FR.properties
Log:
i18n entities
Added: branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/resources/i18n/isis-fish-entities-en_GB.properties
===================================================================
--- branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/resources/i18n/isis-fish-entities-en_GB.properties (rev 0)
+++ branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/resources/i18n/isis-fish-entities-en_GB.properties 2008-07-29 15:34:13 UTC (rev 1268)
@@ -0,0 +1,16 @@
+isisfish.date.toString={0} {1}
+isisfish.month.april=april
+isisfish.month.august=august
+isisfish.month.december=december
+isisfish.month.february=february
+isisfish.month.january=january
+isisfish.month.july=july
+isisfish.month.june=june
+isisfish.month.march=march
+isisfish.month.may=may
+isisfish.month.november=november
+isisfish.month.october=october
+isisfish.month.september=september
+isisfish.season.toString=season {0}-{1}
+isisfish.timeUnit.day=Day
+isisfish.timeUnit.hours=Hours
Added: branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/resources/i18n/isis-fish-entities-fr_FR.properties
===================================================================
--- branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/resources/i18n/isis-fish-entities-fr_FR.properties (rev 0)
+++ branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/resources/i18n/isis-fish-entities-fr_FR.properties 2008-07-29 15:34:13 UTC (rev 1268)
@@ -0,0 +1,16 @@
+isisfish.date.toString={0} {1}
+isisfish.month.april=avril
+isisfish.month.august=ao\u00FBt
+isisfish.month.december=d\u00E9cembre
+isisfish.month.february=f\u00E9vrier
+isisfish.month.january=janvier
+isisfish.month.july=juillet
+isisfish.month.june=juin
+isisfish.month.march=mars
+isisfish.month.may=mai
+isisfish.month.november=novembre
+isisfish.month.october=octobre
+isisfish.month.september=september
+isisfish.season.toString=saison {0}-{1}
+isisfish.timeUnit.day=Day
+isisfish.timeUnit.hours=Hours
1
0
r1267 - branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish
by tchemit@users.labs.libre-entreprise.org 28 Jul '08
by tchemit@users.labs.libre-entreprise.org 28 Jul '08
28 Jul '08
Author: tchemit
Date: 2008-07-28 20:50:30 +0000 (Mon, 28 Jul 2008)
New Revision: 1267
Removed:
branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/types/
Log:
entities dependancies
1
0
r1266 - in branches/maven2_multimodule/isis-fish: isis-fish-entities/src/main/java/fr/ifremer/isisfish isis-fish-entities/src/main/java/fr/ifremer/isisfish/util src/java/fr/ifremer/isisfish/types/hibernate src/java/fr/ifremer/isisfish/util
by tchemit@users.labs.libre-entreprise.org 28 Jul '08
by tchemit@users.labs.libre-entreprise.org 28 Jul '08
28 Jul '08
Author: tchemit
Date: 2008-07-28 20:49:19 +0000 (Mon, 28 Jul 2008)
New Revision: 1266
Added:
branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/java/fr/ifremer/isisfish/types/
branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/java/fr/ifremer/isisfish/util/
branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/java/fr/ifremer/isisfish/util/ConverterUtil.java
branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/java/fr/ifremer/isisfish/util/DateConverter.java
branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/java/fr/ifremer/isisfish/util/MonthConverter.java
branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/java/fr/ifremer/isisfish/util/RangeOfValuesConverter.java
branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/java/fr/ifremer/isisfish/util/StringConverter.java
branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/java/fr/ifremer/isisfish/util/TimeUnitConverter.java
branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/java/fr/ifremer/isisfish/util/TopiaEntityConverter.java
Removed:
branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/types/hibernate/DateType.java
branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/types/hibernate/MatrixType.java
branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/types/hibernate/MonthType.java
branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/types/hibernate/RangeOfValuesType.java
branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/types/hibernate/TimeUnitType.java
branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/util/ConverterUtil.java
branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/util/DateConverter.java
branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/util/MonthConverter.java
branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/util/RangeOfValuesConverter.java
branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/util/StringConverter.java
branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/util/TimeUnitConverter.java
branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/util/TopiaEntityConverter.java
Log:
entities dependancies
Copied: branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/java/fr/ifremer/isisfish/types (from rev 1254, branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/types)
Copied: branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/java/fr/ifremer/isisfish/util/ConverterUtil.java (from rev 1254, branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/util/ConverterUtil.java)
===================================================================
--- branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/java/fr/ifremer/isisfish/util/ConverterUtil.java (rev 0)
+++ branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/java/fr/ifremer/isisfish/util/ConverterUtil.java 2008-07-28 20:49:19 UTC (rev 1266)
@@ -0,0 +1,72 @@
+/* *##%
+ * Copyright (C) 2006
+ * Ifremer, Code Lutin, Cédric Pineau, Benjamin Poussin
+ *
+ * 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.
+ *##%*/
+
+/* *
+ * ConverterUtil.java
+ *
+ * Created: 25 sept. 06 19:37:16
+ *
+ * @author poussin
+ * @version $Revision$
+ *
+ * Last update: $Date$
+ * by : $Author$
+ */
+
+package fr.ifremer.isisfish.util;
+
+import org.apache.commons.beanutils.BeanUtilsBean;
+import org.apache.commons.beanutils.ConvertUtilsBean;
+import org.codelutin.topia.TopiaContext;
+import org.codelutin.topia.persistence.TopiaEntity;
+
+import fr.ifremer.isisfish.types.Date;
+import fr.ifremer.isisfish.types.Month;
+import fr.ifremer.isisfish.types.RangeOfValues;
+import fr.ifremer.isisfish.types.TimeUnit;
+
+
+/**
+ * @author poussin
+ *
+ */
+
+public class ConverterUtil {
+
+ static public ConvertUtilsBean getConverter(TopiaContext context) {
+ BeanUtilsBean result = BeanUtilsBean.getInstance();
+ ConvertUtilsBean cub = result.getConvertUtils();
+
+ cub.register(new TopiaEntityConverter(context), TopiaEntity.class);
+
+ // FIXME see if register done in IsisFish.init() method permit to remove next line
+ // mise en place de converter de string vers des objet ...
+ cub.register(new DateConverter(), Date.class);
+ cub.register(new MonthConverter(), Month.class);
+ cub.register(new TimeUnitConverter(), TimeUnit.class);
+ cub.register(new RangeOfValuesConverter(), RangeOfValues.class);
+ // ... et inversement
+ cub.register(new StringConverter(), String.class);
+
+ return cub;
+ }
+
+}
+
+
Property changes on: branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/java/fr/ifremer/isisfish/util/ConverterUtil.java
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Revision
Name: svn:eol-style
+ native
Copied: branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/java/fr/ifremer/isisfish/util/DateConverter.java (from rev 1254, branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/util/DateConverter.java)
===================================================================
--- branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/java/fr/ifremer/isisfish/util/DateConverter.java (rev 0)
+++ branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/java/fr/ifremer/isisfish/util/DateConverter.java 2008-07-28 20:49:19 UTC (rev 1266)
@@ -0,0 +1,68 @@
+/* *##%
+ * Copyright (C) 2006
+ * Code Lutin, Cédric Pineau, Benjamin Poussin
+ *
+ * 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.
+ *##%*/
+
+/* *
+ * DateConverter.java
+ *
+ * Created: 13 janv. 2006 01:13:41
+ *
+ * @author poussin
+ * @version $Revision$
+ *
+ * Last update: $Date$
+ * by : $Author$
+ */
+
+package fr.ifremer.isisfish.util;
+
+import org.apache.commons.beanutils.ConversionException;
+import org.apache.commons.beanutils.Converter;
+
+import fr.ifremer.isisfish.types.Date;
+
+
+/**
+ * Classe utilise pour convertir une chaine en un objet Date.
+ * Utilisé pour la conversion et le stockage en propriete des parametres
+ * @author poussin
+ *
+ */
+public class DateConverter implements Converter {
+
+ /* (non-Javadoc)
+ * @see org.apache.commons.beanutils.Converter#convert(java.lang.Class, java.lang.Object)
+ */
+ public Object convert(Class type, Object value) {
+ Object result;
+ if (value instanceof Date) {
+ result = value;
+ } else if (value instanceof String) {
+ int d = Integer.parseInt(value.toString());
+ result = new Date(d);
+ } else if (value == null) {
+ result = new Date(0);
+ } else {
+ throw new ConversionException("Can't convert '" + value + "' to " + type.getName());
+ }
+ return result;
+ }
+
+}
+
+
Property changes on: branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/java/fr/ifremer/isisfish/util/DateConverter.java
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Revision
Name: svn:eol-style
+ native
Copied: branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/java/fr/ifremer/isisfish/util/MonthConverter.java (from rev 1254, branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/util/MonthConverter.java)
===================================================================
--- branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/java/fr/ifremer/isisfish/util/MonthConverter.java (rev 0)
+++ branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/java/fr/ifremer/isisfish/util/MonthConverter.java 2008-07-28 20:49:19 UTC (rev 1266)
@@ -0,0 +1,70 @@
+/* *##%
+ * Copyright (C) 2006
+ * Code Lutin, Cédric Pineau, Benjamin Poussin
+ *
+ * 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.
+ *##%*/
+
+/* *
+ * MonthConverter.java
+ *
+ * Created: 12 janv. 2006 20:23:35
+ *
+ * @author poussin
+ * @version $Revision$
+ *
+ * Last update: $Date$
+ * by : $Author$
+ */
+
+package fr.ifremer.isisfish.util;
+
+import org.apache.commons.beanutils.ConversionException;
+import org.apache.commons.beanutils.Converter;
+
+import fr.ifremer.isisfish.types.Month;
+
+
+/**
+ * Classe utilise pour convertir une chaine en un objet Month.
+ * Utilisé pour la conversion et le stockage en propriete des parametres
+ * @author poussin
+ *
+ */
+
+public class MonthConverter implements Converter {
+
+ /* (non-Javadoc)
+ * @see org.apache.commons.beanutils.Converter#convert(java.lang.Class, java.lang.Object)
+ */
+ public Object convert(Class type, Object value) {
+ Object result = null;
+ if (value instanceof Month) {
+ result = value;
+ } else if (value instanceof String) {
+ int m = Integer.parseInt(value.toString());
+ result = Month.MONTH[m];
+ } else if (value instanceof Integer) {
+ int m = ((Integer)value).intValue();
+ result = Month.MONTH[m];
+ } else {
+ throw new ConversionException("Can't convert '" + value + "' to " + type.getName());
+ }
+ return result;
+ }
+
+}
+
+
Property changes on: branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/java/fr/ifremer/isisfish/util/MonthConverter.java
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Revision
Name: svn:eol-style
+ native
Copied: branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/java/fr/ifremer/isisfish/util/RangeOfValuesConverter.java (from rev 1254, branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/util/RangeOfValuesConverter.java)
===================================================================
--- branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/java/fr/ifremer/isisfish/util/RangeOfValuesConverter.java (rev 0)
+++ branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/java/fr/ifremer/isisfish/util/RangeOfValuesConverter.java 2008-07-28 20:49:19 UTC (rev 1266)
@@ -0,0 +1,65 @@
+/* *##%
+ * Copyright (C) 2006
+ * Code Lutin, Cédric Pineau, Benjamin Poussin
+ *
+ * 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.
+ *##%*/
+
+/* *
+ * DateConverter.java
+ *
+ * Created: 13 janv. 2006 01:13:41
+ *
+ * @author poussin
+ * @version $Revision$
+ *
+ * Last update: $Date$
+ * by : $Author$
+ */
+
+package fr.ifremer.isisfish.util;
+
+import org.apache.commons.beanutils.ConversionException;
+import org.apache.commons.beanutils.Converter;
+
+import fr.ifremer.isisfish.types.RangeOfValues;
+
+
+/**
+ * Classe utilise pour convertir une chaine en un objet RangeOfValues.
+ * Utilisé pour la conversion et le stockage en propriete des parametres
+ * @author poussin
+ *
+ */
+public class RangeOfValuesConverter implements Converter {
+
+ /* (non-Javadoc)
+ * @see org.apache.commons.beanutils.Converter#convert(java.lang.Class, java.lang.Object)
+ */
+ public Object convert(Class type, Object value) {
+ Object result;
+ if (value instanceof RangeOfValues) {
+ result = value;
+ } else if (value instanceof String) {
+ result = new RangeOfValues(value.toString());
+ } else {
+ throw new ConversionException("Can't convert '" + value + "' to " + type.getName());
+ }
+ return result;
+ }
+
+}
+
+
Property changes on: branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/java/fr/ifremer/isisfish/util/RangeOfValuesConverter.java
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Revision
Name: svn:eol-style
+ native
Copied: branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/java/fr/ifremer/isisfish/util/StringConverter.java (from rev 1254, branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/util/StringConverter.java)
===================================================================
--- branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/java/fr/ifremer/isisfish/util/StringConverter.java (rev 0)
+++ branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/java/fr/ifremer/isisfish/util/StringConverter.java 2008-07-28 20:49:19 UTC (rev 1266)
@@ -0,0 +1,77 @@
+/*
+ * *##% Copyright (C) 2006 Code Lutin, Cédric Pineau, Benjamin Poussin
+ *
+ * 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. ##%
+ */
+
+/*******************************************************************************
+ * StringConverter.java
+ *
+ * Created: 12 janv. 2006 20:38:26
+ *
+ * @author poussin
+ *
+ * @version $Revision$
+ *
+ * Last update: $Date$ by : $Author$
+ */
+
+package fr.ifremer.isisfish.util;
+
+import org.apache.commons.beanutils.Converter;
+import org.codelutin.topia.persistence.TopiaEntity;
+
+import fr.ifremer.isisfish.types.Date;
+import fr.ifremer.isisfish.types.Month;
+import fr.ifremer.isisfish.types.TimeUnit;
+
+/**
+ * Classe utilise pour convertir en chaine un objet Date, Month ou TopiaEntity
+ * Utilisé pour la conversion et le stockage en propriete des parametres
+ * @author poussin
+ *
+ */
+public class StringConverter implements Converter {
+
+ private Converter defaultStringConverter =
+ new org.apache.commons.beanutils.converters.StringConverter();
+
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.apache.commons.beanutils.Converter#convert(java.lang.Class,
+ * java.lang.Object)
+ */
+ public Object convert(Class type, Object o) {
+ Object result = null;
+ if (o != null) {
+ if (o instanceof TopiaEntity) {
+ result = ((TopiaEntity) o).getTopiaId();
+ } else if (o instanceof Date) {
+ result = String.valueOf(((Date) o).getDate());
+ } else if (o instanceof Month) {
+ result = String.valueOf(((Month) o).getMonthNumber());
+ } else if (o instanceof TimeUnit) {
+ result = String.valueOf(((TimeUnit) o).getTime());
+ } else {
+ // dans tous les autres cas, on appelle le converter par defaut
+ result = defaultStringConverter.convert(type, o);
+ }
+ }
+ return result;
+ }
+
+}
Property changes on: branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/java/fr/ifremer/isisfish/util/StringConverter.java
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Revision
Name: svn:eol-style
+ native
Copied: branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/java/fr/ifremer/isisfish/util/TimeUnitConverter.java (from rev 1254, branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/util/TimeUnitConverter.java)
===================================================================
--- branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/java/fr/ifremer/isisfish/util/TimeUnitConverter.java (rev 0)
+++ branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/java/fr/ifremer/isisfish/util/TimeUnitConverter.java 2008-07-28 20:49:19 UTC (rev 1266)
@@ -0,0 +1,68 @@
+/* *##%
+ * Copyright (C) 2006
+ * Code Lutin, Cédric Pineau, Benjamin Poussin
+ *
+ * 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.
+ *##%*/
+
+/* *
+ * DateConverter.java
+ *
+ * Created: 13 janv. 2006 01:13:41
+ *
+ * @author poussin
+ * @version $Revision$
+ *
+ * Last update: $Date$
+ * by : $Author$
+ */
+
+package fr.ifremer.isisfish.util;
+
+import org.apache.commons.beanutils.ConversionException;
+import org.apache.commons.beanutils.Converter;
+
+import fr.ifremer.isisfish.types.TimeUnit;
+
+
+/**
+ * Classe utilise pour convertir une chaine en un objet TimeUnit.
+ * Utilisé pour la conversion et le stockage en propriete des parametres
+ * @author poussin
+ *
+ */
+public class TimeUnitConverter implements Converter {
+
+ /* (non-Javadoc)
+ * @see org.apache.commons.beanutils.Converter#convert(java.lang.Class, java.lang.Object)
+ */
+ public Object convert(Class type, Object value) {
+ Object result;
+ if (value instanceof TimeUnit) {
+ result = value;
+ } else if (value instanceof Number) {
+ result = new TimeUnit(((Number)value).doubleValue());
+ } else if (value instanceof String) {
+ double d = Double.parseDouble(value.toString());
+ result = new TimeUnit(d);
+ } else {
+ throw new ConversionException("Can't convert '" + value + "' to " + type.getName());
+ }
+ return result;
+ }
+
+}
+
+
Property changes on: branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/java/fr/ifremer/isisfish/util/TimeUnitConverter.java
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Revision
Name: svn:eol-style
+ native
Copied: branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/java/fr/ifremer/isisfish/util/TopiaEntityConverter.java (from rev 1254, branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/util/TopiaEntityConverter.java)
===================================================================
--- branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/java/fr/ifremer/isisfish/util/TopiaEntityConverter.java (rev 0)
+++ branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/java/fr/ifremer/isisfish/util/TopiaEntityConverter.java 2008-07-28 20:49:19 UTC (rev 1266)
@@ -0,0 +1,129 @@
+/* *##%
+ * Copyright (C) 2006
+ * Code Lutin, Cédric Pineau, Benjamin Poussin
+ *
+ * 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.
+ *##%*/
+
+/* *
+ * TopiaEntityConverter.java
+ *
+ * Created: 12 janv. 2006 20:42:32
+ *
+ * @author poussin
+ * @version $Revision$
+ *
+ * Last update: $Date$
+ * by : $Author$
+ */
+
+package fr.ifremer.isisfish.util;
+
+import java.util.List;
+
+import org.apache.commons.beanutils.ConversionException;
+import org.apache.commons.beanutils.Converter;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.codelutin.topia.TopiaContext;
+import org.codelutin.topia.TopiaException;
+import org.codelutin.topia.persistence.TopiaEntity;
+import org.codelutin.topia.persistence.TopiaId;
+import org.hibernate.Hibernate;
+import org.hibernate.HibernateException;
+import org.hibernate.engine.QueryParameters;
+import org.hibernate.engine.SessionImplementor;
+
+
+/**
+ * Classe utilise pour convertir une chaine en un objet TopiaEntity.
+ * Utilisé pour la conversion et le stockage en propriete des parametres
+ * @author poussin
+ *
+ */
+public class TopiaEntityConverter implements Converter {
+
+ /**
+ * Logger for this class
+ */
+ private static final Log log = LogFactory
+ .getLog(TopiaEntityConverter.class);
+
+ protected TopiaContext context = null;
+ protected SessionImplementor session = null;
+
+ public TopiaEntityConverter(TopiaContext context) {
+ this.context = context;
+ }
+
+ public TopiaEntityConverter(SessionImplementor session) {
+ this.session = session;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.commons.beanutils.Converter#convert(java.lang.Class, java.lang.Object)
+ */
+ public Object convert(Class type, Object value) {
+ Object result = null;
+ if (value instanceof TopiaEntity) {
+ result = value;
+ } else if (value instanceof String){
+ result = getTopiaEntity((String)value);
+ } else {
+ throw new ConversionException("Can't convert '" + value + "' to " + type.getName());
+ }
+ return result;
+ }
+
+ private TopiaEntity getTopiaEntity(String topiaId) {
+ TopiaEntity result = null;
+ if (context != null) {
+ try {
+ TopiaContext tx = context.beginTransaction();
+ result = tx.findByTopiaId(topiaId);
+ // FIXME when after tx.closeContext we can continu to load object, call it here
+ tx.commitTransaction();
+ } catch (TopiaException eee) {
+ if (log.isWarnEnabled()) {
+ log.warn("Can't find Entity from TopiaId " + topiaId, eee);
+ }
+ }
+ } else if (session != null) {
+ QueryParameters params = new QueryParameters(Hibernate.STRING, topiaId);
+ String entityClass = TopiaId.getClassNameAsString(topiaId);
+
+ try {
+ boolean mustCommit = false;
+ if (!session.getJDBCContext().getTransaction().isActive()) {
+ mustCommit = true;
+ session.getJDBCContext().getTransaction().begin();
+ }
+ String hql = "from " + entityClass + " where topiaId=?";
+ List results = session.list(hql, params);
+ if (mustCommit) {
+ session.getJDBCContext().getTransaction().commit();
+ }
+ result = (TopiaEntity)results.get(0);
+ } catch (HibernateException eee) {
+ if (log.isDebugEnabled()) {
+ log.debug("Can't find TopiaEntity: " + topiaId, eee);
+ }
+ throw eee;
+ }
+ }
+ return result;
+ }
+
+}
Property changes on: branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/java/fr/ifremer/isisfish/util/TopiaEntityConverter.java
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Revision
Name: svn:eol-style
+ native
Deleted: branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/types/hibernate/DateType.java
===================================================================
--- branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/types/hibernate/DateType.java 2008-07-28 20:42:24 UTC (rev 1265)
+++ branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/types/hibernate/DateType.java 2008-07-28 20:49:19 UTC (rev 1266)
@@ -1,107 +0,0 @@
-/* *##%
- * Copyright (C) 2002, 2003 Code Lutin
- *
- * 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.
- *##%*/
-
-/* *
- * DateType.java
- *
- * Created: 19 janv. 2006
- *
- * @author Arnaud Thimel <thimel at codelutin.com>
- * Copyright Code Lutin
- * @version $Revision$
- *
- * Mise a jour: $Date$
- * par : $Author$
- */
-/**
- *
- */
-package fr.ifremer.isisfish.types.hibernate;
-
-import java.sql.PreparedStatement;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.sql.Types;
-
-import org.hibernate.HibernateException;
-import org.hibernate.type.ImmutableType;
-
-import fr.ifremer.isisfish.types.Date;
-
-public class DateType extends ImmutableType {
-
- /** */
- private static final long serialVersionUID = -5295147041590169149L;
-
- /* (non-Javadoc)
- * @see org.hibernate.type.NullableType#get(java.sql.ResultSet, java.lang.String)
- */
- @Override
- public Object get(ResultSet rs, String name) throws HibernateException,
- SQLException {
- return new Date(rs.getInt(name));
- }
-
- /* (non-Javadoc)
- * @see org.hibernate.type.NullableType#set(java.sql.PreparedStatement, java.lang.Object, int)
- */
- @Override
- public void set(PreparedStatement st, Object value, int index)
- throws HibernateException, SQLException {
- st.setInt(index, ((Date) value).getDate());
- }
-
- /* (non-Javadoc)
- * @see org.hibernate.type.NullableType#sqlType()
- */
- @Override
- public int sqlType() {
- return Types.INTEGER;
- }
-
- /* (non-Javadoc)
- * @see org.hibernate.type.NullableType#toString(java.lang.Object)
- */
- @Override
- public String toString(Object value) throws HibernateException {
- return ((Date)value).toString();
- }
-
- /* (non-Javadoc)
- * @see org.hibernate.type.NullableType#fromStringValue(java.lang.String)
- */
- @Override
- public Object fromStringValue(String xml) throws HibernateException {
- return new Date(Integer.parseInt(xml));
- }
-
- /* (non-Javadoc)
- * @see org.hibernate.type.Type#getReturnedClass()
- */
- public Class getReturnedClass() {
- return Date.class;
- }
-
- /* (non-Javadoc)
- * @see org.hibernate.type.Type#getName()
- */
- public String getName() {
- return DateType.class.getName();
- }
-
-}
Deleted: branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/types/hibernate/MatrixType.java
===================================================================
--- branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/types/hibernate/MatrixType.java 2008-07-28 20:42:24 UTC (rev 1265)
+++ branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/types/hibernate/MatrixType.java 2008-07-28 20:49:19 UTC (rev 1266)
@@ -1,467 +0,0 @@
-/* *##%
- * Copyright (C) 2002, 2003 Code Lutin
- *
- * 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.
- *##%*/
-
-/* *
- * MatrixType.java
- *
- * Created: 23 janv. 2006
- *
- * @author Arnaud Thimel <thimel at codelutin.com>
- * Copyright Code Lutin
- * @version $Revision$
- *
- * Mise a jour: $Date$
- * par : $Author$
- */
-package fr.ifremer.isisfish.types.hibernate;
-
-import java.io.Serializable;
-import java.sql.PreparedStatement;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.util.Iterator;
-import java.util.LinkedList;
-import java.util.List;
-
-import org.apache.commons.beanutils.BeanUtilsBean;
-import org.apache.commons.beanutils.ConvertUtilsBean;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.codelutin.math.matrix.MatrixFactory;
-import org.codelutin.math.matrix.MatrixHelper;
-import org.codelutin.math.matrix.MatrixND;
-import org.codelutin.topia.persistence.TopiaEntity;
-import org.codelutin.util.StringUtil;
-import org.hibernate.Hibernate;
-import org.hibernate.HibernateException;
-import org.hibernate.engine.SessionImplementor;
-import org.hibernate.lob.ClobImpl;
-import org.hibernate.type.Type;
-import org.hibernate.usertype.CompositeUserType;
-
-import fr.ifremer.isisfish.types.Date;
-import fr.ifremer.isisfish.types.Month;
-import fr.ifremer.isisfish.util.ConverterUtil;
-import fr.ifremer.isisfish.util.DateConverter;
-import fr.ifremer.isisfish.util.MonthConverter;
-import fr.ifremer.isisfish.util.StringConverter;
-import fr.ifremer.isisfish.util.TopiaEntityConverter;
-
-public class MatrixType implements CompositeUserType {
-
- /**
- * Logger for this class
- */
- private static final Log log = LogFactory.getLog(MatrixType.class);
-
- public MatrixType() {
- }
-
- public boolean isMutable() {
- return true;
- }
-
- private String getDimToString(int[] dimArray) {
- String result = "[";
- String sep = "";
- for (int i=0; i<dimArray.length; i++) {
- result += sep + dimArray[i];
- sep = ", ";
- }
- result += "]";
- return result;
- }
-
- private int[] getDimFromString(String str) {
- str = str.trim();
- if(str.startsWith("[") && str.endsWith("]")) {
- str = str.substring(1, str.length()-1); // remove [ and ]
- }
- String [] dimAsString = StringUtil.split(str, ",");
- int[] result = new int[dimAsString.length];
- int i = 0;
- for (String dim : dimAsString) {
- int val = Integer.parseInt(dim.trim());
- result[i++] = val;
- }
- return result;
- }
-
- private String getDimNamesToString(String[] dimNamesArray) {
- String result = "[";
- String sep = "";
- for (int i=0; i<dimNamesArray.length; i++) {
- result += sep + '"' + dimNamesArray[i] + '"';
- sep = ", ";
- }
- result += "]";
- return result;
- }
-
- private String[] getDimNamesFromString(String str) {
- str = str.trim();
- if(str.startsWith("[") && str.endsWith("]")) {
- str = str.substring(1, str.length()-1); // remove [ and ]
- }
- String [] result = StringUtil.split(str, ",");
- for (int i=0; i<result.length; i++) {
- result[i] = result[i].trim();
- if(result[i].startsWith("\"") && result[i].endsWith("\"")) {
- result[i] = result[i].substring(1, result[i].length()-1); // remove " and "
- }
- }
- return result;
- }
-
- private String getSemanticsToString(List[] semanticsArray) {
- StringBuffer result = new StringBuffer("[");
- for (int i=0; i<semanticsArray.length; i++) {
- result.append("[");
- List semantics = semanticsArray[i];
- for (Iterator it = semantics.iterator(); it.hasNext(); ) {
- appendString(result, it.next());
- if (it.hasNext()) {
- result.append(", ");
- }
- }
- result.append("]");
- if ((i+1) < semanticsArray.length) {
- result.append(", ");
- }
- }
- return result.append("]").toString();
- }
-
- /**
- *
- * @param name nom de la matrice
- * @param str la chaine representant la semantique
- * @param session la session dans lequel on lit la matrice de la base
- * @return
- */
- private List[] getSemanticsFromString(String name, String str, SessionImplementor session) {
- str = str.trim();
- if(str.startsWith("[") && str.endsWith("]")) {
- str = str.substring(1, str.length()-1); // remove [ and ]
- }
- String [] sems = StringUtil.split(str, ",");
-
- List[] result = new List[sems.length];
-
- for (int i=0; i<sems.length; i++) {
- result[i] = splitObjects(name, sems[i], session);
- }
-
- return result;
- }
-
-// /**
-// * Sépare la chaine de caractères en une List de List représentant le List[]
-// * de semantics
-// */
-// private List<List> splitLists(String str, SessionImplementor session) {
-// int openBrackets = 0;
-// int index = 1;
-// int openIndex = 0;
-// boolean inString = false;
-// List<List> result = new LinkedList<List>();
-// while (index < (str.length()-1)) {
-// char c = str.charAt(index);
-// if (!inString && c == '[') {
-// openIndex = index;
-// openBrackets++;
-// } else if (!inString && c == ']') {
-// openBrackets--;
-// if (openBrackets == 0) {
-// result.add(splitObjects(str.substring(openIndex, index), session));
-// }
-// } else if (c == '"' && str.charAt(index-1) != '\\') {
-// inString = !inString;
-// }
-// index++;
-// }
-// return result;
-// }
-
- /**
- * Recréé chaque object de la chaine de caractere et l'ajoute dans une liste
- * la chaine est de la forme
- *
- * [null(), java.lang.String("toto"), ...]
- * @param name le nom de la matrice
- * @param str la chaine representant
- */
- private List splitObjects(String name, String str, SessionImplementor session) {
- List<Object> result = new LinkedList<Object>();
- str = str.trim();
- if (str.startsWith("[") && str.endsWith("]")) {
- str = str.substring(1, str.length() - 1);
- }
- String [] elems = StringUtil.split(str, ",");
- for (String elem : elems) {
- elem = elem.trim();
- int openbrace = elem.indexOf('(');
- String objectType = elem.substring(0, openbrace);
- String objectString = elem.substring(openbrace + 1, elem.length() - 1);
-
- if ("null".equals(objectType)) {
- result.add(null);
- } else {
- ConvertUtilsBean converter = getConverter(session);
- Object o;
- try {
- o = converter.convert(objectString, Class.forName(objectType));
- } catch (Exception eee) {
- // if can't create objet, put String representation as semantics
- o = objectType + "(" + objectString + ")";
- if (log.isWarnEnabled()) {
- log.warn("Continuing but can't convert object in matrix " + name + " from String: '" + o + "'");
- }
- if (log.isDebugEnabled()) {
- log.debug("Continuing can't convert object in matrix " + name + " from String: '" + o + "'", eee);
- }
- }
- result.add(o);
- }
- }
-
-// int index = 1;
-// int openIndex = 0;
-// while ((openIndex = str.indexOf('(', index+1)) != -1) {
-// String qualifiedName = str.substring(index, openIndex);
-// if (qualifiedName.startsWith(",")) {
-// qualifiedName = qualifiedName.substring(1);
-// }
-// qualifiedName = qualifiedName.trim();
-// boolean inString = false;
-// index = openIndex+1;
-// while (index < (str.length())) {
-//
-// char c = str.charAt(index);
-// if (!inString && c == ')') {
-// try {
-// if ("null".equals(qualifiedName)) {
-// result.add(null);
-// } else {
-// String substr = str.substring(openIndex+1, index);
-// ConvertUtilsBean cub = getConverter(session);
-// Object o = cub.convert(substr, Class.forName(qualifiedName));
-// result.add(o);
-// }
-// break;
-// } catch (ClassNotFoundException eee) {
-// log.warn("Can't convert object from String");
-// if (log.isDebugEnabled()) {
-// log.warn("Can't convert object from String" , eee);
-// }
-// e.printStackTrace();
-// }
-// } else if (c == '"' && str.charAt(index-1) != '\\') {
-// inString = !inString;
-// }
-// index++;
-// }
-// index++;
-// }
-
- return result;
- }
-
- private static final Type[] hibernateTypes = {
- Hibernate.STRING, //name (String)
- Hibernate.STRING, //dim (int[])
- Hibernate.CLOB, //dimNames (String[])
- Hibernate.CLOB, //semantics (List[])
- Hibernate.CLOB //data (List<List<...>>)
- };
-
- private static final String[] propertyNames = {
- "name",
- "dim",
- "dimNames",
- "semantics",
- "data"
- };
-
- private StringBuffer appendString(StringBuffer buffer, Object o) {
- if (o == null) {
- buffer.append("null()");
- } else {
- String qualifiedName = o.getClass().getName();
- if (o instanceof TopiaEntity) {
- qualifiedName = TopiaEntity.class.getName();
- }
- buffer.append(qualifiedName).append("(");
- ConvertUtilsBean converter = getConverter(null);
- buffer.append(converter.convert(o));
- buffer.append(")");
- }
- return buffer;
- }
-
- private ConvertUtilsBean getConverter(SessionImplementor session) {
- ConvertUtilsBean cub = ConverterUtil.getConverter(null);
- if (session != null) {
- // others type is already registered during application init
- cub.register(new TopiaEntityConverter(session), TopiaEntity.class);
- }
- return cub;
- }
-
- public Class returnedClass() {
- return MatrixND.class;
- }
-
- public boolean equals(Object x, Object y) throws HibernateException {
- if (x == y) {
- return true;
- } else if (x != null && y != null) {
- return x.equals(y);
- } else {
- return false;
- }
- }
-
- public int hashCode(Object x) throws HibernateException {
- return x.hashCode();
- }
-
- public Object deepCopy(Object value) throws HibernateException {
- if (value == null) {
- return null;
- }
- return MatrixFactory.getInstance().create((MatrixND)value);
- }
-
- public String[] getPropertyNames() {
- return propertyNames;
- }
-
- public Type[] getPropertyTypes() {
- return hibernateTypes;
- }
-
- public Object getPropertyValue(Object component, int property) throws HibernateException {
- MatrixND matrix = (MatrixND)component;
- switch (property) {
- case 0 : return matrix.getName();
- case 1 : return matrix.getDim();
- case 2 : return matrix.getDimensionName();
- case 3 : return matrix.getSemantics();
- case 4 : return matrix.toList();
- default : throw new HibernateException("Property index invalid : " + property);
- }
- }
-
- public void setPropertyValue(Object component, int property, Object value) throws HibernateException {
- MatrixND matrix = (MatrixND)component;
- switch (property) {
- case 0 : matrix.setName((String)value); break;
- case 1 : throw new HibernateException("Modification of the dimension forbidden");
- case 2 : matrix.setDimensionName((String[])value); break;
- case 3 :
- int index = 0;
- for (List semantics : (List[])value) {
- matrix.setSemantics(index, semantics);
- index++;
- }
- break;
- case 4 : matrix.fromList((List)value); break;
- default : throw new HibernateException("Property index invalid : " + property);
- }
- }
-
- public Object nullSafeGet(ResultSet rs, String[] names, SessionImplementor session, Object owner) throws HibernateException, SQLException {
- MatrixND matrix = null;
-
- String nameAsString = rs.getString(names[0]);
- String dimAsString = rs.getString(names[1]);
- String dimNamesAsString = rs.getString(names[2]);
- String semanticsAsString = rs.getString(names[3]);
- String datasAsString = rs.getString(names[4]);
-
- if (nameAsString == null && dimAsString == null && dimNamesAsString == null
- && semanticsAsString == null) { // no now we have "" for that && datasAsString == null) {
- matrix = null;
- } else {
- String name = nameAsString;
- int[] dim = getDimFromString(dimAsString);
- String[] dimNames = getDimNamesFromString(dimNamesAsString);
- List[] semantics = getSemanticsFromString(name, semanticsAsString, session);
- List datas = MatrixHelper.convertStringToList(datasAsString);
-
- matrix = MatrixFactory.getInstance().create(name, dim);
- matrix.setDimensionName(dimNames);
- for (int i=0; i<semantics.length; i++) {
- matrix.setSemantics(i, semantics[i]);
- }
- matrix.fromList(datas);
- session.getPersistenceContext();
- }
- return matrix;
- }
-
- public void nullSafeSet(PreparedStatement st, Object value, int index, SessionImplementor session) throws HibernateException, SQLException {
- if (value == null) {
- st.setString(index, null);
- st.setString(index + 1, null);
- st.setString(index + 2, null);
- st.setString(index + 3, null);
- st.setClob(index + 4, new ClobImpl(""));
- } else {
- MatrixND matrix = MatrixFactory.getInstance().create((MatrixND)value);
- st.setString(index, matrix.getName());
- st.setString(index + 1, getDimToString(matrix.getDim()));
- st.setString(index + 2, getDimNamesToString(matrix.getDimensionName()));
- st.setString(index + 3, getSemanticsToString(matrix.getSemantics()));
- st.setClob(index + 4, new ClobImpl(matrix.toList().toString()));
- }
- }
-
- public Serializable disassemble(Object value, SessionImplementor session) throws HibernateException {
- MatrixND matrix = (MatrixND)value;
- return new Serializable[] {
- matrix.getName(),
- getDimToString(matrix.getDim()),
- getDimNamesToString(matrix.getDimensionName()),
- getSemanticsToString(matrix.getSemantics()),
- matrix.toList().toString()
- };
- }
-
- public Object assemble(Serializable cached, SessionImplementor session, Object owner) throws HibernateException {
- Serializable[] o = (Serializable[])cached;
- String name = (String)o[0];
- int[] dim = getDimFromString((String)o[1]);
- String[] dimNames = getDimNamesFromString((String)o[2]);
- List[] semantics = getSemanticsFromString(name, (String)o[3], session);
- List datas = MatrixHelper.convertStringToList((String)o[4]);
- MatrixND matrix = MatrixFactory.getInstance().create(name, dim);
- matrix.setDimensionName(dimNames);
- for (int i=0; i<semantics.length; i++) {
- matrix.setSemantics(i, semantics[i]);
- }
- matrix.fromList(datas);
- return matrix;
- }
-
- public Object replace(Object original, Object target, SessionImplementor session, Object owner) throws HibernateException {
- return assemble( disassemble(original, session), session, owner);
- }
-
-} //MatrixType
Deleted: branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/types/hibernate/MonthType.java
===================================================================
--- branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/types/hibernate/MonthType.java 2008-07-28 20:42:24 UTC (rev 1265)
+++ branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/types/hibernate/MonthType.java 2008-07-28 20:49:19 UTC (rev 1266)
@@ -1,104 +0,0 @@
-/* *##%
- * Copyright (C) 2002, 2003 Code Lutin
- *
- * 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.
- *##%*/
-
-/* *
- * DateType.java
- *
- * Created: 19 janv. 2006
- *
- * @author Arnaud Thimel <thimel at codelutin.com>
- * Copyright Code Lutin
- * @version $Revision$
- *
- * Mise a jour: $Date$
- * par : $Author$
- */
-/**
- *
- */
-package fr.ifremer.isisfish.types.hibernate;
-
-import java.sql.PreparedStatement;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.sql.Types;
-
-import org.hibernate.HibernateException;
-import org.hibernate.type.ImmutableType;
-
-import fr.ifremer.isisfish.types.Month;
-
-public class MonthType extends ImmutableType {
-
- /* (non-Javadoc)
- * @see org.hibernate.type.NullableType#get(java.sql.ResultSet, java.lang.String)
- */
- @Override
- public Object get(ResultSet rs, String name) throws HibernateException,
- SQLException {
- return Month.MONTH[rs.getInt(name)];
- }
-
- /* (non-Javadoc)
- * @see org.hibernate.type.NullableType#set(java.sql.PreparedStatement, java.lang.Object, int)
- */
- @Override
- public void set(PreparedStatement st, Object value, int index)
- throws HibernateException, SQLException {
- st.setInt(index, ((Month) value).getMonthNumber());
- }
-
- /* (non-Javadoc)
- * @see org.hibernate.type.NullableType#sqlType()
- */
- @Override
- public int sqlType() {
- return Types.INTEGER;
- }
-
- /* (non-Javadoc)
- * @see org.hibernate.type.NullableType#toString(java.lang.Object)
- */
- @Override
- public String toString(Object value) throws HibernateException {
- return ((Month)value).toString();
- }
-
- /* (non-Javadoc)
- * @see org.hibernate.type.NullableType#fromStringValue(java.lang.String)
- */
- @Override
- public Object fromStringValue(String xml) throws HibernateException {
- return Month.MONTH[Integer.parseInt(xml)];
- }
-
- /* (non-Javadoc)
- * @see org.hibernate.type.Type#getReturnedClass()
- */
- public Class getReturnedClass() {
- return Month.class;
- }
-
- /* (non-Javadoc)
- * @see org.hibernate.type.Type#getName()
- */
- public String getName() {
- return MonthType.class.getName();
- }
-
-}
Deleted: branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/types/hibernate/RangeOfValuesType.java
===================================================================
--- branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/types/hibernate/RangeOfValuesType.java 2008-07-28 20:42:24 UTC (rev 1265)
+++ branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/types/hibernate/RangeOfValuesType.java 2008-07-28 20:49:19 UTC (rev 1266)
@@ -1,107 +0,0 @@
-/* *##%
- * Copyright (C) 2002, 2003 Code Lutin
- *
- * 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.
- *##%*/
-
-/* *
- * DateType.java
- *
- * Created: 19 janv. 2006
- *
- * @author Arnaud Thimel <thimel at codelutin.com>
- * Copyright Code Lutin
- * @version $Revision$
- *
- * Mise a jour: $Date$
- * par : $Author$
- */
-/**
- *
- */
-package fr.ifremer.isisfish.types.hibernate;
-
-import java.sql.PreparedStatement;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.sql.Types;
-
-import org.hibernate.HibernateException;
-import org.hibernate.type.ImmutableType;
-
-import fr.ifremer.isisfish.types.RangeOfValues;
-
-public class RangeOfValuesType extends ImmutableType {
-
- /** */
- private static final long serialVersionUID = -5295147041590169149L;
-
- /* (non-Javadoc)
- * @see org.hibernate.type.NullableType#get(java.sql.ResultSet, java.lang.String)
- */
- @Override
- public Object get(ResultSet rs, String name) throws HibernateException,
- SQLException {
- return new RangeOfValues(rs.getString(name));
- }
-
- /* (non-Javadoc)
- * @see org.hibernate.type.NullableType#set(java.sql.PreparedStatement, java.lang.Object, int)
- */
- @Override
- public void set(PreparedStatement st, Object value, int index)
- throws HibernateException, SQLException {
- st.setString(index, ((RangeOfValues) value).getAsString());
- }
-
- /* (non-Javadoc)
- * @see org.hibernate.type.NullableType#sqlType()
- */
- @Override
- public int sqlType() {
- return Types.VARCHAR;
- }
-
- /* (non-Javadoc)
- * @see org.hibernate.type.NullableType#toString(java.lang.Object)
- */
- @Override
- public String toString(Object value) throws HibernateException {
- return ((RangeOfValues)value).getAsString();
- }
-
- /* (non-Javadoc)
- * @see org.hibernate.type.NullableType#fromStringValue(java.lang.String)
- */
- @Override
- public Object fromStringValue(String xml) throws HibernateException {
- return new RangeOfValues(xml);
- }
-
- /* (non-Javadoc)
- * @see org.hibernate.type.Type#getReturnedClass()
- */
- public Class getReturnedClass() {
- return RangeOfValues.class;
- }
-
- /* (non-Javadoc)
- * @see org.hibernate.type.Type#getName()
- */
- public String getName() {
- return RangeOfValuesType.class.getName();
- }
-
-}
Deleted: branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/types/hibernate/TimeUnitType.java
===================================================================
--- branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/types/hibernate/TimeUnitType.java 2008-07-28 20:42:24 UTC (rev 1265)
+++ branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/types/hibernate/TimeUnitType.java 2008-07-28 20:49:19 UTC (rev 1266)
@@ -1,107 +0,0 @@
-/* *##%
- * Copyright (C) 2002, 2003 Code Lutin
- *
- * 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.
- *##%*/
-
-/* *
- * DateType.java
- *
- * Created: 19 janv. 2006
- *
- * @author Arnaud Thimel <thimel at codelutin.com>
- * Copyright Code Lutin
- * @version $Revision$
- *
- * Mise a jour: $Date$
- * par : $Author$
- */
-/**
- *
- */
-package fr.ifremer.isisfish.types.hibernate;
-
-import java.sql.PreparedStatement;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.sql.Types;
-
-import org.hibernate.HibernateException;
-import org.hibernate.type.ImmutableType;
-
-import fr.ifremer.isisfish.types.TimeUnit;
-
-public class TimeUnitType extends ImmutableType {
-
- /** */
- private static final long serialVersionUID = -5295147041590169149L;
-
- /* (non-Javadoc)
- * @see org.hibernate.type.NullableType#get(java.sql.ResultSet, java.lang.String)
- */
- @Override
- public Object get(ResultSet rs, String name) throws HibernateException,
- SQLException {
- return new TimeUnit(rs.getDouble(name));
- }
-
- /* (non-Javadoc)
- * @see org.hibernate.type.NullableType#set(java.sql.PreparedStatement, java.lang.Object, int)
- */
- @Override
- public void set(PreparedStatement st, Object value, int index)
- throws HibernateException, SQLException {
- st.setDouble(index, ((TimeUnit) value).getTime());
- }
-
- /* (non-Javadoc)
- * @see org.hibernate.type.NullableType#sqlType()
- */
- @Override
- public int sqlType() {
- return Types.DOUBLE;
- }
-
- /* (non-Javadoc)
- * @see org.hibernate.type.NullableType#toString(java.lang.Object)
- */
- @Override
- public String toString(Object value) throws HibernateException {
- return ((TimeUnit)value).toString();
- }
-
- /* (non-Javadoc)
- * @see org.hibernate.type.NullableType#fromStringValue(java.lang.String)
- */
- @Override
- public Object fromStringValue(String xml) throws HibernateException {
- return new TimeUnit(Double.parseDouble(xml));
- }
-
- /* (non-Javadoc)
- * @see org.hibernate.type.Type#getReturnedClass()
- */
- public Class getReturnedClass() {
- return TimeUnit.class;
- }
-
- /* (non-Javadoc)
- * @see org.hibernate.type.Type#getName()
- */
- public String getName() {
- return TimeUnitType.class.getName();
- }
-
-}
Deleted: branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/util/ConverterUtil.java
===================================================================
--- branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/util/ConverterUtil.java 2008-07-28 20:42:24 UTC (rev 1265)
+++ branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/util/ConverterUtil.java 2008-07-28 20:49:19 UTC (rev 1266)
@@ -1,72 +0,0 @@
-/* *##%
- * Copyright (C) 2006
- * Ifremer, Code Lutin, Cédric Pineau, Benjamin Poussin
- *
- * 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.
- *##%*/
-
-/* *
- * ConverterUtil.java
- *
- * Created: 25 sept. 06 19:37:16
- *
- * @author poussin
- * @version $Revision$
- *
- * Last update: $Date$
- * by : $Author$
- */
-
-package fr.ifremer.isisfish.util;
-
-import org.apache.commons.beanutils.BeanUtilsBean;
-import org.apache.commons.beanutils.ConvertUtilsBean;
-import org.codelutin.topia.TopiaContext;
-import org.codelutin.topia.persistence.TopiaEntity;
-
-import fr.ifremer.isisfish.types.Date;
-import fr.ifremer.isisfish.types.Month;
-import fr.ifremer.isisfish.types.RangeOfValues;
-import fr.ifremer.isisfish.types.TimeUnit;
-
-
-/**
- * @author poussin
- *
- */
-
-public class ConverterUtil {
-
- static public ConvertUtilsBean getConverter(TopiaContext context) {
- BeanUtilsBean result = BeanUtilsBean.getInstance();
- ConvertUtilsBean cub = result.getConvertUtils();
-
- cub.register(new TopiaEntityConverter(context), TopiaEntity.class);
-
- // FIXME see if register done in IsisFish.init() method permit to remove next line
- // mise en place de converter de string vers des objet ...
- cub.register(new DateConverter(), Date.class);
- cub.register(new MonthConverter(), Month.class);
- cub.register(new TimeUnitConverter(), TimeUnit.class);
- cub.register(new RangeOfValuesConverter(), RangeOfValues.class);
- // ... et inversement
- cub.register(new StringConverter(), String.class);
-
- return cub;
- }
-
-}
-
-
Deleted: branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/util/DateConverter.java
===================================================================
--- branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/util/DateConverter.java 2008-07-28 20:42:24 UTC (rev 1265)
+++ branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/util/DateConverter.java 2008-07-28 20:49:19 UTC (rev 1266)
@@ -1,68 +0,0 @@
-/* *##%
- * Copyright (C) 2006
- * Code Lutin, Cédric Pineau, Benjamin Poussin
- *
- * 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.
- *##%*/
-
-/* *
- * DateConverter.java
- *
- * Created: 13 janv. 2006 01:13:41
- *
- * @author poussin
- * @version $Revision$
- *
- * Last update: $Date$
- * by : $Author$
- */
-
-package fr.ifremer.isisfish.util;
-
-import org.apache.commons.beanutils.ConversionException;
-import org.apache.commons.beanutils.Converter;
-
-import fr.ifremer.isisfish.types.Date;
-
-
-/**
- * Classe utilise pour convertir une chaine en un objet Date.
- * Utilisé pour la conversion et le stockage en propriete des parametres
- * @author poussin
- *
- */
-public class DateConverter implements Converter {
-
- /* (non-Javadoc)
- * @see org.apache.commons.beanutils.Converter#convert(java.lang.Class, java.lang.Object)
- */
- public Object convert(Class type, Object value) {
- Object result;
- if (value instanceof Date) {
- result = value;
- } else if (value instanceof String) {
- int d = Integer.parseInt(value.toString());
- result = new Date(d);
- } else if (value == null) {
- result = new Date(0);
- } else {
- throw new ConversionException("Can't convert '" + value + "' to " + type.getName());
- }
- return result;
- }
-
-}
-
-
Deleted: branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/util/MonthConverter.java
===================================================================
--- branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/util/MonthConverter.java 2008-07-28 20:42:24 UTC (rev 1265)
+++ branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/util/MonthConverter.java 2008-07-28 20:49:19 UTC (rev 1266)
@@ -1,70 +0,0 @@
-/* *##%
- * Copyright (C) 2006
- * Code Lutin, Cédric Pineau, Benjamin Poussin
- *
- * 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.
- *##%*/
-
-/* *
- * MonthConverter.java
- *
- * Created: 12 janv. 2006 20:23:35
- *
- * @author poussin
- * @version $Revision$
- *
- * Last update: $Date$
- * by : $Author$
- */
-
-package fr.ifremer.isisfish.util;
-
-import org.apache.commons.beanutils.ConversionException;
-import org.apache.commons.beanutils.Converter;
-
-import fr.ifremer.isisfish.types.Month;
-
-
-/**
- * Classe utilise pour convertir une chaine en un objet Month.
- * Utilisé pour la conversion et le stockage en propriete des parametres
- * @author poussin
- *
- */
-
-public class MonthConverter implements Converter {
-
- /* (non-Javadoc)
- * @see org.apache.commons.beanutils.Converter#convert(java.lang.Class, java.lang.Object)
- */
- public Object convert(Class type, Object value) {
- Object result = null;
- if (value instanceof Month) {
- result = value;
- } else if (value instanceof String) {
- int m = Integer.parseInt(value.toString());
- result = Month.MONTH[m];
- } else if (value instanceof Integer) {
- int m = ((Integer)value).intValue();
- result = Month.MONTH[m];
- } else {
- throw new ConversionException("Can't convert '" + value + "' to " + type.getName());
- }
- return result;
- }
-
-}
-
-
Deleted: branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/util/RangeOfValuesConverter.java
===================================================================
--- branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/util/RangeOfValuesConverter.java 2008-07-28 20:42:24 UTC (rev 1265)
+++ branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/util/RangeOfValuesConverter.java 2008-07-28 20:49:19 UTC (rev 1266)
@@ -1,65 +0,0 @@
-/* *##%
- * Copyright (C) 2006
- * Code Lutin, Cédric Pineau, Benjamin Poussin
- *
- * 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.
- *##%*/
-
-/* *
- * DateConverter.java
- *
- * Created: 13 janv. 2006 01:13:41
- *
- * @author poussin
- * @version $Revision$
- *
- * Last update: $Date$
- * by : $Author$
- */
-
-package fr.ifremer.isisfish.util;
-
-import org.apache.commons.beanutils.ConversionException;
-import org.apache.commons.beanutils.Converter;
-
-import fr.ifremer.isisfish.types.RangeOfValues;
-
-
-/**
- * Classe utilise pour convertir une chaine en un objet RangeOfValues.
- * Utilisé pour la conversion et le stockage en propriete des parametres
- * @author poussin
- *
- */
-public class RangeOfValuesConverter implements Converter {
-
- /* (non-Javadoc)
- * @see org.apache.commons.beanutils.Converter#convert(java.lang.Class, java.lang.Object)
- */
- public Object convert(Class type, Object value) {
- Object result;
- if (value instanceof RangeOfValues) {
- result = value;
- } else if (value instanceof String) {
- result = new RangeOfValues(value.toString());
- } else {
- throw new ConversionException("Can't convert '" + value + "' to " + type.getName());
- }
- return result;
- }
-
-}
-
-
Deleted: branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/util/StringConverter.java
===================================================================
--- branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/util/StringConverter.java 2008-07-28 20:42:24 UTC (rev 1265)
+++ branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/util/StringConverter.java 2008-07-28 20:49:19 UTC (rev 1266)
@@ -1,77 +0,0 @@
-/*
- * *##% Copyright (C) 2006 Code Lutin, Cédric Pineau, Benjamin Poussin
- *
- * 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. ##%
- */
-
-/*******************************************************************************
- * StringConverter.java
- *
- * Created: 12 janv. 2006 20:38:26
- *
- * @author poussin
- *
- * @version $Revision$
- *
- * Last update: $Date$ by : $Author$
- */
-
-package fr.ifremer.isisfish.util;
-
-import org.apache.commons.beanutils.Converter;
-import org.codelutin.topia.persistence.TopiaEntity;
-
-import fr.ifremer.isisfish.types.Date;
-import fr.ifremer.isisfish.types.Month;
-import fr.ifremer.isisfish.types.TimeUnit;
-
-/**
- * Classe utilise pour convertir en chaine un objet Date, Month ou TopiaEntity
- * Utilisé pour la conversion et le stockage en propriete des parametres
- * @author poussin
- *
- */
-public class StringConverter implements Converter {
-
- private Converter defaultStringConverter =
- new org.apache.commons.beanutils.converters.StringConverter();
-
-
- /*
- * (non-Javadoc)
- *
- * @see org.apache.commons.beanutils.Converter#convert(java.lang.Class,
- * java.lang.Object)
- */
- public Object convert(Class type, Object o) {
- Object result = null;
- if (o != null) {
- if (o instanceof TopiaEntity) {
- result = ((TopiaEntity) o).getTopiaId();
- } else if (o instanceof Date) {
- result = String.valueOf(((Date) o).getDate());
- } else if (o instanceof Month) {
- result = String.valueOf(((Month) o).getMonthNumber());
- } else if (o instanceof TimeUnit) {
- result = String.valueOf(((TimeUnit) o).getTime());
- } else {
- // dans tous les autres cas, on appelle le converter par defaut
- result = defaultStringConverter.convert(type, o);
- }
- }
- return result;
- }
-
-}
Deleted: branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/util/TimeUnitConverter.java
===================================================================
--- branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/util/TimeUnitConverter.java 2008-07-28 20:42:24 UTC (rev 1265)
+++ branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/util/TimeUnitConverter.java 2008-07-28 20:49:19 UTC (rev 1266)
@@ -1,68 +0,0 @@
-/* *##%
- * Copyright (C) 2006
- * Code Lutin, Cédric Pineau, Benjamin Poussin
- *
- * 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.
- *##%*/
-
-/* *
- * DateConverter.java
- *
- * Created: 13 janv. 2006 01:13:41
- *
- * @author poussin
- * @version $Revision$
- *
- * Last update: $Date$
- * by : $Author$
- */
-
-package fr.ifremer.isisfish.util;
-
-import org.apache.commons.beanutils.ConversionException;
-import org.apache.commons.beanutils.Converter;
-
-import fr.ifremer.isisfish.types.TimeUnit;
-
-
-/**
- * Classe utilise pour convertir une chaine en un objet TimeUnit.
- * Utilisé pour la conversion et le stockage en propriete des parametres
- * @author poussin
- *
- */
-public class TimeUnitConverter implements Converter {
-
- /* (non-Javadoc)
- * @see org.apache.commons.beanutils.Converter#convert(java.lang.Class, java.lang.Object)
- */
- public Object convert(Class type, Object value) {
- Object result;
- if (value instanceof TimeUnit) {
- result = value;
- } else if (value instanceof Number) {
- result = new TimeUnit(((Number)value).doubleValue());
- } else if (value instanceof String) {
- double d = Double.parseDouble(value.toString());
- result = new TimeUnit(d);
- } else {
- throw new ConversionException("Can't convert '" + value + "' to " + type.getName());
- }
- return result;
- }
-
-}
-
-
Deleted: branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/util/TopiaEntityConverter.java
===================================================================
--- branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/util/TopiaEntityConverter.java 2008-07-28 20:42:24 UTC (rev 1265)
+++ branches/maven2_multimodule/isis-fish/src/java/fr/ifremer/isisfish/util/TopiaEntityConverter.java 2008-07-28 20:49:19 UTC (rev 1266)
@@ -1,129 +0,0 @@
-/* *##%
- * Copyright (C) 2006
- * Code Lutin, Cédric Pineau, Benjamin Poussin
- *
- * 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.
- *##%*/
-
-/* *
- * TopiaEntityConverter.java
- *
- * Created: 12 janv. 2006 20:42:32
- *
- * @author poussin
- * @version $Revision$
- *
- * Last update: $Date$
- * by : $Author$
- */
-
-package fr.ifremer.isisfish.util;
-
-import java.util.List;
-
-import org.apache.commons.beanutils.ConversionException;
-import org.apache.commons.beanutils.Converter;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.codelutin.topia.TopiaContext;
-import org.codelutin.topia.TopiaException;
-import org.codelutin.topia.persistence.TopiaEntity;
-import org.codelutin.topia.persistence.TopiaId;
-import org.hibernate.Hibernate;
-import org.hibernate.HibernateException;
-import org.hibernate.engine.QueryParameters;
-import org.hibernate.engine.SessionImplementor;
-
-
-/**
- * Classe utilise pour convertir une chaine en un objet TopiaEntity.
- * Utilisé pour la conversion et le stockage en propriete des parametres
- * @author poussin
- *
- */
-public class TopiaEntityConverter implements Converter {
-
- /**
- * Logger for this class
- */
- private static final Log log = LogFactory
- .getLog(TopiaEntityConverter.class);
-
- protected TopiaContext context = null;
- protected SessionImplementor session = null;
-
- public TopiaEntityConverter(TopiaContext context) {
- this.context = context;
- }
-
- public TopiaEntityConverter(SessionImplementor session) {
- this.session = session;
- }
-
- /* (non-Javadoc)
- * @see org.apache.commons.beanutils.Converter#convert(java.lang.Class, java.lang.Object)
- */
- public Object convert(Class type, Object value) {
- Object result = null;
- if (value instanceof TopiaEntity) {
- result = value;
- } else if (value instanceof String){
- result = getTopiaEntity((String)value);
- } else {
- throw new ConversionException("Can't convert '" + value + "' to " + type.getName());
- }
- return result;
- }
-
- private TopiaEntity getTopiaEntity(String topiaId) {
- TopiaEntity result = null;
- if (context != null) {
- try {
- TopiaContext tx = context.beginTransaction();
- result = tx.findByTopiaId(topiaId);
- // FIXME when after tx.closeContext we can continu to load object, call it here
- tx.commitTransaction();
- } catch (TopiaException eee) {
- if (log.isWarnEnabled()) {
- log.warn("Can't find Entity from TopiaId " + topiaId, eee);
- }
- }
- } else if (session != null) {
- QueryParameters params = new QueryParameters(Hibernate.STRING, topiaId);
- String entityClass = TopiaId.getClassNameAsString(topiaId);
-
- try {
- boolean mustCommit = false;
- if (!session.getJDBCContext().getTransaction().isActive()) {
- mustCommit = true;
- session.getJDBCContext().getTransaction().begin();
- }
- String hql = "from " + entityClass + " where topiaId=?";
- List results = session.list(hql, params);
- if (mustCommit) {
- session.getJDBCContext().getTransaction().commit();
- }
- result = (TopiaEntity)results.get(0);
- } catch (HibernateException eee) {
- if (log.isDebugEnabled()) {
- log.debug("Can't find TopiaEntity: " + topiaId, eee);
- }
- throw eee;
- }
- }
- return result;
- }
-
-}
1
0
r1265 - in branches/maven2_multimodule/isis-fish: isis-fish-main/src/main/resources src/resources
by tchemit@users.labs.libre-entreprise.org 28 Jul '08
by tchemit@users.labs.libre-entreprise.org 28 Jul '08
28 Jul '08
Author: tchemit
Date: 2008-07-28 20:42:24 +0000 (Mon, 28 Jul 2008)
New Revision: 1265
Added:
branches/maven2_multimodule/isis-fish/isis-fish-main/src/main/resources/log4j.properties
Removed:
branches/maven2_multimodule/isis-fish/src/resources/log4j.properties
Log:
use old log4J
Copied: branches/maven2_multimodule/isis-fish/isis-fish-main/src/main/resources/log4j.properties (from rev 1254, branches/maven2_multimodule/isis-fish/src/resources/log4j.properties)
===================================================================
--- branches/maven2_multimodule/isis-fish/isis-fish-main/src/main/resources/log4j.properties (rev 0)
+++ branches/maven2_multimodule/isis-fish/isis-fish-main/src/main/resources/log4j.properties 2008-07-28 20:42:24 UTC (rev 1265)
@@ -0,0 +1,14 @@
+# Global logging configuration
+log4j.rootLogger=ERROR, stdout
+# Console output...
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) %M - %m%n
+#log4j.appender.stdout.layout.ConversionPattern=%%c=%c %%C=%C %%d=%d %%F=%F %%l=%l %%L=%L %%m=%m %%M=%M %%p=%p %%r=%r %%t=%t %%x=%x %%X=%X
+# package level
+log4j.logger.fr.ifremer.isisfish=INFO
+log4j.logger.org.codelutin=INFO
+log4j.logger.scripts=INFO
+log4j.logger.simulators=INFO
+log4j.logger.exports=INFO
+log4j.logger.formules=INFO
Property changes on: branches/maven2_multimodule/isis-fish/isis-fish-main/src/main/resources/log4j.properties
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Revision
Name: svn:eol-style
+ native
Deleted: branches/maven2_multimodule/isis-fish/src/resources/log4j.properties
===================================================================
--- branches/maven2_multimodule/isis-fish/src/resources/log4j.properties 2008-07-28 20:42:02 UTC (rev 1264)
+++ branches/maven2_multimodule/isis-fish/src/resources/log4j.properties 2008-07-28 20:42:24 UTC (rev 1265)
@@ -1,14 +0,0 @@
-# Global logging configuration
-log4j.rootLogger=ERROR, stdout
-# Console output...
-log4j.appender.stdout=org.apache.log4j.ConsoleAppender
-log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
-log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) %M - %m%n
-#log4j.appender.stdout.layout.ConversionPattern=%%c=%c %%C=%C %%d=%d %%F=%F %%l=%l %%L=%L %%m=%m %%M=%M %%p=%p %%r=%r %%t=%t %%x=%x %%X=%X
-# package level
-log4j.logger.fr.ifremer.isisfish=INFO
-log4j.logger.org.codelutin=INFO
-log4j.logger.scripts=INFO
-log4j.logger.simulators=INFO
-log4j.logger.exports=INFO
-log4j.logger.formules=INFO
1
0
r1264 - branches/maven2_multimodule/isis-fish/isis-fish-main/src/main/resources
by tchemit@users.labs.libre-entreprise.org 28 Jul '08
by tchemit@users.labs.libre-entreprise.org 28 Jul '08
28 Jul '08
Author: tchemit
Date: 2008-07-28 20:42:02 +0000 (Mon, 28 Jul 2008)
New Revision: 1264
Removed:
branches/maven2_multimodule/isis-fish/isis-fish-main/src/main/resources/log4j.properties
Log:
use old log4J
Deleted: branches/maven2_multimodule/isis-fish/isis-fish-main/src/main/resources/log4j.properties
===================================================================
--- branches/maven2_multimodule/isis-fish/isis-fish-main/src/main/resources/log4j.properties 2008-07-28 20:40:52 UTC (rev 1263)
+++ branches/maven2_multimodule/isis-fish/isis-fish-main/src/main/resources/log4j.properties 2008-07-28 20:42:02 UTC (rev 1264)
@@ -1,9 +0,0 @@
-# Global logging configuration
-log4j.rootLogger=ERROR, stdout
-# Console output...
-log4j.appender.stdout=org.apache.log4j.ConsoleAppender
-log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
-log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) %M - %m%n
-#log4j.appender.stdout.layout.ConversionPattern=%%c=%c %%C=%C %%d=%d %%F=%F %%l=%l %%L=%L %%m=%m %%M=%M %%p=%p %%r=%r %%t=%t %%x=%x %%X=%X
-# package level
-log4j.logger.fr.ifremer.isisfish=INFO
1
0
r1263 - in branches/maven2_multimodule/isis-fish: isis-fish-entities isis-fish-main isis-fish-ui
by tchemit@users.labs.libre-entreprise.org 28 Jul '08
by tchemit@users.labs.libre-entreprise.org 28 Jul '08
28 Jul '08
Author: tchemit
Date: 2008-07-28 20:40:52 +0000 (Mon, 28 Jul 2008)
New Revision: 1263
Modified:
branches/maven2_multimodule/isis-fish/isis-fish-entities/pom.xml
branches/maven2_multimodule/isis-fish/isis-fish-main/pom.xml
branches/maven2_multimodule/isis-fish/isis-fish-ui/pom.xml
Log:
move libraries dependencies to right modules
Modified: branches/maven2_multimodule/isis-fish/isis-fish-entities/pom.xml
===================================================================
--- branches/maven2_multimodule/isis-fish/isis-fish-entities/pom.xml 2008-07-28 20:28:12 UTC (rev 1262)
+++ branches/maven2_multimodule/isis-fish/isis-fish-entities/pom.xml 2008-07-28 20:40:52 UTC (rev 1263)
@@ -60,6 +60,49 @@
<scope>compile</scope>
</dependency>
+ <!-- Change this dependence if you change database -->
+ <dependency>
+ <groupId>com.h2database</groupId>
+ <artifactId>h2</artifactId>
+ <scope>compile</scope>
+ </dependency>
+ <!--
+ <dependency>
+ <groupId>hsqldb</groupId>
+ <artifactId>hsqldb</artifactId>
+ <version>2.0</version>
+ <scope>runtime</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>mckoi</groupId>
+ <artifactId>mckoi</artifactId>
+ <version>1.0.2</version>
+ <scope>runtime</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>postgresql</groupId>
+ <artifactId>postgresql</artifactId>
+ <version>7.4.1-jdbc3</version>
+ <scope>runtime</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.derby</groupId>
+ <artifactId>derby</artifactId>
+ <version>10.1.2.1</version>
+ <scope>runtime</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.derby</groupId>
+ <artifactId>derbyLocale_fr</artifactId>
+ <version>10.1.2.1</version>
+ <scope>runtime</scope>
+ </dependency>
+ -->
+
</dependencies>
Modified: branches/maven2_multimodule/isis-fish/isis-fish-main/pom.xml
===================================================================
--- branches/maven2_multimodule/isis-fish/isis-fish-main/pom.xml 2008-07-28 20:28:12 UTC (rev 1262)
+++ branches/maven2_multimodule/isis-fish/isis-fish-main/pom.xml 2008-07-28 20:40:52 UTC (rev 1263)
@@ -89,20 +89,9 @@
</dependency>
-->
- <!--SwiXat-->
- <dependency>
- <groupId>swixat</groupId>
- <artifactId>swixat</artifactId>
- <scope>compile</scope>
- </dependency>
+
- <dependency>
- <groupId>org.swixml</groupId>
- <artifactId>swixml</artifactId>
- <scope>compile</scope>
- </dependency>
-
<!--Commons-->
<dependency>
<groupId>commons-jxpath</groupId>
@@ -206,49 +195,6 @@
<scope>compile</scope>
</dependency>
- <!-- Change this dependence if you change database -->
- <dependency>
- <groupId>com.h2database</groupId>
- <artifactId>h2</artifactId>
- <scope>compile</scope>
- </dependency>
- <!--
- <dependency>
- <groupId>hsqldb</groupId>
- <artifactId>hsqldb</artifactId>
- <version>2.0</version>
- <scope>runtime</scope>
- </dependency>
-
- <dependency>
- <groupId>mckoi</groupId>
- <artifactId>mckoi</artifactId>
- <version>1.0.2</version>
- <scope>runtime</scope>
- </dependency>
-
- <dependency>
- <groupId>postgresql</groupId>
- <artifactId>postgresql</artifactId>
- <version>7.4.1-jdbc3</version>
- <scope>runtime</scope>
- </dependency>
-
- <dependency>
- <groupId>org.apache.derby</groupId>
- <artifactId>derby</artifactId>
- <version>10.1.2.1</version>
- <scope>runtime</scope>
- </dependency>
-
- <dependency>
- <groupId>org.apache.derby</groupId>
- <artifactId>derbyLocale_fr</artifactId>
- <version>10.1.2.1</version>
- <scope>runtime</scope>
- </dependency>
- -->
-
<!-- aspectj -->
<!-- on utilise aspectwerkz
<dependency>
@@ -435,7 +381,7 @@
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
- <execution>
+ <!--execution>
<id>CopyGenJavaVersSrcBuild</id>
<phase>process-sources</phase>
<configuration>
@@ -452,7 +398,7 @@
<goals>
<goal>run</goal>
</goals>
- </execution>
+ </execution-->
<!-- Ajout des libs signe par Sun dans un fichier jnlp separe -->
<execution>
Modified: branches/maven2_multimodule/isis-fish/isis-fish-ui/pom.xml
===================================================================
--- branches/maven2_multimodule/isis-fish/isis-fish-ui/pom.xml 2008-07-28 20:28:12 UTC (rev 1262)
+++ branches/maven2_multimodule/isis-fish/isis-fish-ui/pom.xml 2008-07-28 20:40:52 UTC (rev 1263)
@@ -24,11 +24,25 @@
<artifactId>lutinwidget</artifactId>
</dependency>
+ <!-- Jaxx -->
<dependency>
<groupId>org.codelutin.jaxx</groupId>
<artifactId>jaxx-swing</artifactId>
</dependency>
+ <!-- SwiXat -->
+ <dependency>
+ <groupId>swixat</groupId>
+ <artifactId>swixat</artifactId>
+ <scope>compile</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.swixml</groupId>
+ <artifactId>swixml</artifactId>
+ <scope>compile</scope>
+ </dependency>
+
</dependencies>
<!-- ************************************************************* -->
1
0
r1262 - in branches/maven2_multimodule/isis-fish: isis-fish-commandline/src/main/resources isis-fish-entities/src/main/resources isis-fish-ui/src/main/resources src/resources
by tchemit@users.labs.libre-entreprise.org 28 Jul '08
by tchemit@users.labs.libre-entreprise.org 28 Jul '08
28 Jul '08
Author: tchemit
Date: 2008-07-28 20:28:12 +0000 (Mon, 28 Jul 2008)
New Revision: 1262
Added:
branches/maven2_multimodule/isis-fish/isis-fish-commandline/src/main/resources/IsisFish_init.properties
branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/resources/v2xsl/
branches/maven2_multimodule/isis-fish/isis-fish-ui/src/main/resources/images/
Removed:
branches/maven2_multimodule/isis-fish/src/resources/IsisFish_init.properties
branches/maven2_multimodule/isis-fish/src/resources/images/
branches/maven2_multimodule/isis-fish/src/resources/v2xsl/
Log:
move resources to good modules
Copied: branches/maven2_multimodule/isis-fish/isis-fish-commandline/src/main/resources/IsisFish_init.properties (from rev 1254, branches/maven2_multimodule/isis-fish/src/resources/IsisFish_init.properties)
===================================================================
--- branches/maven2_multimodule/isis-fish/isis-fish-commandline/src/main/resources/IsisFish_init.properties (rev 0)
+++ branches/maven2_multimodule/isis-fish/isis-fish-commandline/src/main/resources/IsisFish_init.properties 2008-07-28 20:28:12 UTC (rev 1262)
@@ -0,0 +1,262 @@
+###
+### script, data options
+###
+addScript.option.definition=--add|-a <analyseplans|exports|formules=String|rules|scripts|simulators> <file:File+> [check|force]
+exportData.option.definition=--export|-o <fileZip:NewFile> <region|simulation> <name:String> [force]
+exportScript.option.definition=--export-script|-os <fileZip:NewFile> <analyseplans|exports|formules=String|rules|scripts|simulators> [filter:String] [force]
+import.option.definition=--import|-i <region|simulation|script> <fileZip:File> [force]
+importAndRenameRegion.option.definition=--importAndRenameRegion <regionFile:File> <name:String> [force]
+list.option.definition=--list|-l * <analyseplans|exports|formules|regions|rules|scripts|simulations|simulators> [filter:String]
+simulate.option.definition=--simulate <simulationId:String> [simulationParameter=File] [simulation=File] [region=File]
+
+###
+### vcs options
+###
+createSshKey.option.definition=--create-ssh-key|-c [force] [privateKeyFile:NewFile]
+mavenFile.option.definition=--mavenFile
+sshKeyFile.option.definition=--ssh-key-file|-k <privateKeyFile:File>
+update.option.definition=--update|-u <value:Boolean>
+vcsAddRemove.option.definition=--vcs2 <add|remove> <file:File+>
+vcsUpdateCommitState.option.definition=--vcs <update|commit|state> [file:File*]
+
+
+###
+### les propriétés de la configuration principal obligatoires pour commandline
+###
+
+#main.config.definition.configFileName=java.io.File:.isis-config-3
+#main.config.modifiers.configFileName=final,mandatory,transient
+
+#main.config.definition.encoding=java.lang.String:ISO-8859-1
+#main.config.modifiers.encoding=final,static,mandatory
+
+#main.config.definition.locale=java.util.Locale:fr_FR
+#main.config.modifiers.locale=mandatory
+
+#main.config.definition.projectName=java.lang.String:Isis-Fish
+#main.config.modifiers.projectName=final,static,mandatory
+
+#main.config.definition.version=org.codelutin.util.VersionNumber:3.1.2
+#main.config.modifiers.version=final,static,mandatory
+
+###
+### les propriétés de la configuration principal
+###
+
+main.config.definition.compileDirectory=java.io.File:isis-build
+main.config.modifiers.compileDirectory=final,mandatory
+
+main.config.definition.dataBackupFilename=java.lang.String:data-backup.sql.gz
+main.config.modifiers.dataBackupFilename=final,mandatory,static,transient
+
+main.config.definition.defaultBackupDirectory=java.io.File:isis-backup
+main.config.modifiers.defaultBackupDirectory=final,mandatory
+
+main.config.definition.defaultExportDirectory=java.io.File:isis-export
+main.config.modifiers.defaultExportDirectory=mandatory
+
+main.config.definition.defaultExportNames=java.lang.String
+main.config.modifiers.defaultExportNames=
+
+main.config.definition.defaultMapFile=java.lang.String:maps/vmap_area_thin
+main.config.modifiers.defaultMapFile=final,mandatory,static,transient
+
+main.config.definition.defaultResultNames=java.lang.String
+main.config.modifiers.defaultResultNames=
+
+main.config.definition.defaultSimulator=java.lang.String:DefaultSimulator.java
+main.config.modifiers.defaultSimulator=mandatory
+
+main.config.definition.defaultTagValue=java.lang.String
+main.config.modifiers.defaultTagValue=
+
+main.config.definition.javadocURL=java.net.URL:http://isis-fish.labs.libre-entreprise.org/apidocs/
+main.config.modifiers.javadocURL=final,mandatory
+
+main.config.definition.localSimulator=java.lang.Boolean:true
+main.config.modifiers.localSimulator=mandatory
+
+main.config.definition.login=java.lang.String:anonymous
+main.config.modifiers.login=mandatory
+
+main.config.definition.password=java.lang.String:guest
+main.config.modifiers.password=mandatory
+
+main.config.definition.regionMap=java.lang.String:maps
+main.config.modifiers.regionMap=final,mandatory,static,transient
+
+main.config.definition.resultExport=java.lang.String:resultExports
+main.config.modifiers.resultExport=final,mandatory,static,transient
+
+main.config.definition.simulationInformationFilename=java.lang.String:information
+main.config.modifiers.simulationInformationFilename=final,mandatory,static,transient
+
+main.config.definition.simulationParametersFilename=java.lang.String:parameters.properties
+main.config.modifiers.simulationParametersFilename=final,mandatory,static,transient
+
+main.config.definition.simulationReportMail=java.lang.String:isis-fish-bugreport at lists.labs.libre-entreprise.org
+main.config.modifiers.simulationReportMail=mandatory
+
+main.config.definition.simulationResultXmlFilename=java.lang.String:isis-mexico-output.xml
+main.config.modifiers.simulationResultXmlFilename=final,mandatory,static,transient
+
+main.config.definition.simulationServer=java.net.URL:http://simulateur.ifremer.fr:9090
+main.config.modifiers.simulationServer=mandatory
+
+main.config.definition.simulationShowOnlyError=java.lang.Boolean:true
+main.config.modifiers.simulationShowOnlyError=
+
+main.config.definition.simulationShowOnlyQueue=java.lang.Boolean:true
+main.config.modifiers.simulationShowOnlyQueue=
+
+main.config.definition.smtpServer=java.lang.String:smtp
+main.config.modifiers.smtpServer=mandatory
+
+main.config.definition.userMail=java.lang.String
+main.config.modifiers.userMail=mandatory
+
+main.config.definition.userName=java.lang.String
+main.config.modifiers.userName=mandatory
+
+
+###
+### les propriétés de la configuration vcs
+###
+vcs.config.definition.localDatabasePath=java.io.File:isis-database-3
+vcs.config.modifiers.localDatabasePath=mandatory
+#TODO Should use application version
+vcs.config.definition.databaseVersion=org.codelutin.util.VersionNumber:3.1.3
+vcs.config.modifiers.databaseVersion=final,mandatory
+
+vcs.config.definition.hostName=java.lang.String:labs.libre-entreprise.org
+vcs.config.modifiers.hostName=mandatory
+
+#vcs.config.definition.localDatabase=java.lang.String:isis-database-3
+#vcs.config.modifiers.localDatabase=final,mandatory
+
+#vcs.config.definition.localPath=java.io.File
+#vcs.config.definition.localPath=java.io.File:isis-database-3
+#vcs.config.modifiers.localPath=final,mandatory
+
+vcs.config.definition.remoteDatabase=java.lang.String
+vcs.config.modifiers.remoteDatabase=final,mandatory
+
+vcs.config.definition.remotePath=java.lang.String:svnroot/isis-fish-data
+vcs.config.modifiers.remotePath=final,mandatory
+
+vcs.config.definition.useSshConnexion=java.lang.Boolean:false
+vcs.config.modifiers.useSshConnexion=mandatory
+
+vcs.config.definition.keyFile=java.io.File:.ssh/id_dsa
+vcs.config.modifiers.keyFile=
+
+vcs.config.definition.noPassPhrase=java.lang.Boolean:true
+vcs.config.modifiers.noPassPhrase=
+
+#vcs.config.definition.passphrase=java.lang.char[]
+#TODO Deal with char[] type
+vcs.config.definition.passphrase=java.lang.String
+vcs.config.modifiers.passphrase=transient
+
+vcs.config.definition.type=org.codelutin.vcs.VCSType:SVN
+vcs.config.modifiers.type=final,mandatory
+
+vcs.config.definition.typeRepo=org.codelutin.vcs.VCSTypeRepo:TAG
+vcs.config.modifiers.typeRepo=final,mandatory
+
+vcs.config.definition.userName=java.lang.String:anonymous
+vcs.config.modifiers.userName=mandatory
+
+###
+### les propriétés de la configuration h2
+###
+# On utilise pas cglib pour eviter les OutOfMemory: PermGen
+h2.config.definition.h2BytecodeProvider=java.lang.String:javassist
+h2.config.modifiers.h2BytecodeProvider=final,mandatory,static,transient
+
+h2.config.definition.h2CurrentSessionContextClass=java.lang.String:thread
+h2.config.modifiers.h2CurrentSessionContextClass=final,mandatory,static,transient
+
+h2.config.definition.h2Pass=java.lang.String:
+h2.config.modifiers.h2Pass=final,static,transient
+
+h2.config.definition.h2User=java.lang.String:sa
+h2.config.modifiers.h2User=final,static,transient
+
+h2.config.modifiers.h2Type=final,mandatory,static,transient
+# TODO Use class type when we can use the project classpath in commandline plugin
+h2.config.modifiers.h2Dialect=final,mandatory,static,transient
+# TODO Use class type when we can use the project classpath in commandline plugin
+h2.config.modifiers.h2Driver=final,mandatory,static,transient
+h2.config.modifiers.h2URL=final,mandatory,static,transient
+
+# pour utiliser h2
+h2.config.definition.h2Type=org.codelutin.util.H2TypeEnum:h2
+h2.config.definition.h2Dialect=java.lang.String:org.hibernate.dialect.H2Dialect
+h2.config.definition.h2Driver=java.lang.String:org.h2.Driver
+h2.config.definition.h2URL=java.lang.String:jdbc:h2:file:{0};FILE_LOCK=file;MODE=hsqldb;DEFAULT_LOCK_TIMEOUT=1000;DB_CLOSE_DELAY=0;LOCK_MODE=3;LOG=1;TRACE_LEVEL_FILE=0;TRACE_LEVEL_SYSTEM_OUT=1
+
+# pour utiliser Derby
+#h2.config.definition.h2Type=org.codelutin.util.H2TypeEnum:derby
+#h2.config.definition.h2Dialect=java.lang.String:org.hibernate.dialect.DerbyDialect
+#h2.config.definition.h2Driver=java.lang.String:org.apache.derby.jdbc.EmbeddedDriver
+#h2.config.definition.h2URL=java.lang.String:jdbc:derby:{0};create=true
+
+# pour utiliser HSQL
+#h2.config.definition.h2Type=org.codelutin.util.H2TypeEnum:hsql
+#h2.config.definition.h2Dialect=java.lang.String:org.hibernate.dialect.HSQLDialect
+#h2.config.definition.h2Driver=java.lang.String:org.hsqldb.jdbcDriver
+#h2.config.definition.h2URL=java.lang.String:jdbc:hsqldb:file:{0};shutdown=true
+
+# pour utiliser McKoi
+#h2.config.definition.h2Type=org.codelutin.util.H2TypeEnum:mckoi
+#h2.config.definition.h2Dialect=java.lang.String:org.hibernate.dialect.MckoiDialect
+#h2.config.definition.h2Driver=java.lang.String:com.mckoi.JDBCDriver
+#h2.config.definition.h2URL=java.lang.String:jdbc:mckoi:local://{0}?create_or_boot=true&database_path={1}&log_path={1}&use_nio_if_available=enabled&dont_synch_filesystem=enabled&io_safety_level=3
+
+# On utilise pas cglib pour eviter les OutOfMemory: PermGen
+h2.config.definition.h2MemBytecodeProvider=java.lang.String:javassist
+h2.config.modifiers.h2MemBytecodeProvider=final,mandatory,static,transient
+
+h2.config.definition.h2MemPass=java.lang.String:
+h2.config.modifiers.h2MemPass=final,mandatory,static,transient
+
+h2.config.definition.h2MemUser=java.lang.String:sa
+h2.config.modifiers.h2MemUser=final,mandatory,static,transient
+
+h2.config.definition.h2MemURL=java.lang.String:jdbc:h2:mem:{0};MODE=hsqldb;DEFAULT_LOCK_TIMEOUT=1000;DB_CLOSE_DELAY=0;LOCK_MODE=3;LOG=0;TRACE_LEVEL_FILE=0;TRACE_LEVEL_SYSTEM_OUT=1
+h2.config.modifiers.h2MemURL=final,mandatory,static,transient
+# TODO Use class type when we can use the project classpath in commandline plugin
+
+h2.config.definition.h2MemDialect=java.lang.String:org.hibernate.dialect.H2Dialect
+h2.config.modifiers.h2MemDialect=final,mandatory,static,transient
+
+# TODO Use class type when we can use the project classpath in commandline plugin
+h2.config.definition.h2MemDriver=java.lang.String:org.h2.Driver
+h2.config.modifiers.h2MemDriver=final,mandatory,static,transient
+
+h2.config.modifiers.h2MemType=final,mandatory,static,transient
+h2.config.definition.h2MemType=org.codelutin.util.H2TypeEnum:h2
+
+h2.config.definition.migrationApplicationVersion=java.lang.Integer:1
+h2.config.modifiers.migrationApplicationVersion=final,mandatory,static,transient
+
+# TODO Use class type when we can use the project classpath in commandline plugin
+h2.config.definition.migrationCallBackhandlers=java.lang.String:fr.ifremer.isisfish.datastore.migration.SwingMigrationCallbackHandler
+h2.config.modifiers.migrationCallBackhandlers=final,mandatory,static,transient
+
+h2.config.definition.migrationModelNames=java.lang.String:IsisFish
+h2.config.modifiers.migrationModelNames=final,mandatory,static,transient
+
+h2.config.definition.migrationPreviousMappingDirectory=java.lang.String:oldmappings
+h2.config.modifiers.migrationPreviousMappingDirectory=final,mandatory,static,transient
+
+# TODO Use class type when we can use the project classpath in commandline plugin
+h2.config.definition.migrationTopiaService=java.lang.String:org.codelutin.topia.migration.TopiaMigrationServiceImpl
+h2.config.modifiers.migrationTopiaService=final,mandatory,static,transient
+
+h2.config.definition.storageData=java.lang.String:data
+h2.config.modifiers.storageData=final,mandatory,static,transient
+
+h2.config.definition.updateschemaDatabase=java.lang.Boolean:false
+h2.config.modifiers.updateschemaDatabase=final,mandatory,static,transient
Property changes on: branches/maven2_multimodule/isis-fish/isis-fish-commandline/src/main/resources/IsisFish_init.properties
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Revision
Name: svn:eol-style
+ native
Copied: branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/resources/v2xsl (from rev 1254, branches/maven2_multimodule/isis-fish/src/resources/v2xsl)
Copied: branches/maven2_multimodule/isis-fish/isis-fish-ui/src/main/resources/images (from rev 1254, branches/maven2_multimodule/isis-fish/src/resources/images)
Deleted: branches/maven2_multimodule/isis-fish/src/resources/IsisFish_init.properties
===================================================================
--- branches/maven2_multimodule/isis-fish/src/resources/IsisFish_init.properties 2008-07-28 20:27:38 UTC (rev 1261)
+++ branches/maven2_multimodule/isis-fish/src/resources/IsisFish_init.properties 2008-07-28 20:28:12 UTC (rev 1262)
@@ -1,262 +0,0 @@
-###
-### script, data options
-###
-addScript.option.definition=--add|-a <analyseplans|exports|formules=String|rules|scripts|simulators> <file:File+> [check|force]
-exportData.option.definition=--export|-o <fileZip:NewFile> <region|simulation> <name:String> [force]
-exportScript.option.definition=--export-script|-os <fileZip:NewFile> <analyseplans|exports|formules=String|rules|scripts|simulators> [filter:String] [force]
-import.option.definition=--import|-i <region|simulation|script> <fileZip:File> [force]
-importAndRenameRegion.option.definition=--importAndRenameRegion <regionFile:File> <name:String> [force]
-list.option.definition=--list|-l * <analyseplans|exports|formules|regions|rules|scripts|simulations|simulators> [filter:String]
-simulate.option.definition=--simulate <simulationId:String> [simulationParameter=File] [simulation=File] [region=File]
-
-###
-### vcs options
-###
-createSshKey.option.definition=--create-ssh-key|-c [force] [privateKeyFile:NewFile]
-mavenFile.option.definition=--mavenFile
-sshKeyFile.option.definition=--ssh-key-file|-k <privateKeyFile:File>
-update.option.definition=--update|-u <value:Boolean>
-vcsAddRemove.option.definition=--vcs2 <add|remove> <file:File+>
-vcsUpdateCommitState.option.definition=--vcs <update|commit|state> [file:File*]
-
-
-###
-### les propriétés de la configuration principal obligatoires pour commandline
-###
-
-#main.config.definition.configFileName=java.io.File:.isis-config-3
-#main.config.modifiers.configFileName=final,mandatory,transient
-
-#main.config.definition.encoding=java.lang.String:ISO-8859-1
-#main.config.modifiers.encoding=final,static,mandatory
-
-#main.config.definition.locale=java.util.Locale:fr_FR
-#main.config.modifiers.locale=mandatory
-
-#main.config.definition.projectName=java.lang.String:Isis-Fish
-#main.config.modifiers.projectName=final,static,mandatory
-
-#main.config.definition.version=org.codelutin.util.VersionNumber:3.1.2
-#main.config.modifiers.version=final,static,mandatory
-
-###
-### les propriétés de la configuration principal
-###
-
-main.config.definition.compileDirectory=java.io.File:isis-build
-main.config.modifiers.compileDirectory=final,mandatory
-
-main.config.definition.dataBackupFilename=java.lang.String:data-backup.sql.gz
-main.config.modifiers.dataBackupFilename=final,mandatory,static,transient
-
-main.config.definition.defaultBackupDirectory=java.io.File:isis-backup
-main.config.modifiers.defaultBackupDirectory=final,mandatory
-
-main.config.definition.defaultExportDirectory=java.io.File:isis-export
-main.config.modifiers.defaultExportDirectory=mandatory
-
-main.config.definition.defaultExportNames=java.lang.String
-main.config.modifiers.defaultExportNames=
-
-main.config.definition.defaultMapFile=java.lang.String:maps/vmap_area_thin
-main.config.modifiers.defaultMapFile=final,mandatory,static,transient
-
-main.config.definition.defaultResultNames=java.lang.String
-main.config.modifiers.defaultResultNames=
-
-main.config.definition.defaultSimulator=java.lang.String:DefaultSimulator.java
-main.config.modifiers.defaultSimulator=mandatory
-
-main.config.definition.defaultTagValue=java.lang.String
-main.config.modifiers.defaultTagValue=
-
-main.config.definition.javadocURL=java.net.URL:http://isis-fish.labs.libre-entreprise.org/apidocs/
-main.config.modifiers.javadocURL=final,mandatory
-
-main.config.definition.localSimulator=java.lang.Boolean:true
-main.config.modifiers.localSimulator=mandatory
-
-main.config.definition.login=java.lang.String:anonymous
-main.config.modifiers.login=mandatory
-
-main.config.definition.password=java.lang.String:guest
-main.config.modifiers.password=mandatory
-
-main.config.definition.regionMap=java.lang.String:maps
-main.config.modifiers.regionMap=final,mandatory,static,transient
-
-main.config.definition.resultExport=java.lang.String:resultExports
-main.config.modifiers.resultExport=final,mandatory,static,transient
-
-main.config.definition.simulationInformationFilename=java.lang.String:information
-main.config.modifiers.simulationInformationFilename=final,mandatory,static,transient
-
-main.config.definition.simulationParametersFilename=java.lang.String:parameters.properties
-main.config.modifiers.simulationParametersFilename=final,mandatory,static,transient
-
-main.config.definition.simulationReportMail=java.lang.String:isis-fish-bugreport at lists.labs.libre-entreprise.org
-main.config.modifiers.simulationReportMail=mandatory
-
-main.config.definition.simulationResultXmlFilename=java.lang.String:isis-mexico-output.xml
-main.config.modifiers.simulationResultXmlFilename=final,mandatory,static,transient
-
-main.config.definition.simulationServer=java.net.URL:http://simulateur.ifremer.fr:9090
-main.config.modifiers.simulationServer=mandatory
-
-main.config.definition.simulationShowOnlyError=java.lang.Boolean:true
-main.config.modifiers.simulationShowOnlyError=
-
-main.config.definition.simulationShowOnlyQueue=java.lang.Boolean:true
-main.config.modifiers.simulationShowOnlyQueue=
-
-main.config.definition.smtpServer=java.lang.String:smtp
-main.config.modifiers.smtpServer=mandatory
-
-main.config.definition.userMail=java.lang.String
-main.config.modifiers.userMail=mandatory
-
-main.config.definition.userName=java.lang.String
-main.config.modifiers.userName=mandatory
-
-
-###
-### les propriétés de la configuration vcs
-###
-vcs.config.definition.localDatabasePath=java.io.File:isis-database-3
-vcs.config.modifiers.localDatabasePath=mandatory
-#TODO Should use application version
-vcs.config.definition.databaseVersion=org.codelutin.util.VersionNumber:3.1.3
-vcs.config.modifiers.databaseVersion=final,mandatory
-
-vcs.config.definition.hostName=java.lang.String:labs.libre-entreprise.org
-vcs.config.modifiers.hostName=mandatory
-
-#vcs.config.definition.localDatabase=java.lang.String:isis-database-3
-#vcs.config.modifiers.localDatabase=final,mandatory
-
-#vcs.config.definition.localPath=java.io.File
-#vcs.config.definition.localPath=java.io.File:isis-database-3
-#vcs.config.modifiers.localPath=final,mandatory
-
-vcs.config.definition.remoteDatabase=java.lang.String
-vcs.config.modifiers.remoteDatabase=final,mandatory
-
-vcs.config.definition.remotePath=java.lang.String:svnroot/isis-fish-data
-vcs.config.modifiers.remotePath=final,mandatory
-
-vcs.config.definition.useSshConnexion=java.lang.Boolean:false
-vcs.config.modifiers.useSshConnexion=mandatory
-
-vcs.config.definition.keyFile=java.io.File:.ssh/id_dsa
-vcs.config.modifiers.keyFile=
-
-vcs.config.definition.noPassPhrase=java.lang.Boolean:true
-vcs.config.modifiers.noPassPhrase=
-
-#vcs.config.definition.passphrase=java.lang.char[]
-#TODO Deal with char[] type
-vcs.config.definition.passphrase=java.lang.String
-vcs.config.modifiers.passphrase=transient
-
-vcs.config.definition.type=org.codelutin.vcs.VCSType:SVN
-vcs.config.modifiers.type=final,mandatory
-
-vcs.config.definition.typeRepo=org.codelutin.vcs.VCSTypeRepo:TAG
-vcs.config.modifiers.typeRepo=final,mandatory
-
-vcs.config.definition.userName=java.lang.String:anonymous
-vcs.config.modifiers.userName=mandatory
-
-###
-### les propriétés de la configuration h2
-###
-# On utilise pas cglib pour eviter les OutOfMemory: PermGen
-h2.config.definition.h2BytecodeProvider=java.lang.String:javassist
-h2.config.modifiers.h2BytecodeProvider=final,mandatory,static,transient
-
-h2.config.definition.h2CurrentSessionContextClass=java.lang.String:thread
-h2.config.modifiers.h2CurrentSessionContextClass=final,mandatory,static,transient
-
-h2.config.definition.h2Pass=java.lang.String:
-h2.config.modifiers.h2Pass=final,static,transient
-
-h2.config.definition.h2User=java.lang.String:sa
-h2.config.modifiers.h2User=final,static,transient
-
-h2.config.modifiers.h2Type=final,mandatory,static,transient
-# TODO Use class type when we can use the project classpath in commandline plugin
-h2.config.modifiers.h2Dialect=final,mandatory,static,transient
-# TODO Use class type when we can use the project classpath in commandline plugin
-h2.config.modifiers.h2Driver=final,mandatory,static,transient
-h2.config.modifiers.h2URL=final,mandatory,static,transient
-
-# pour utiliser h2
-h2.config.definition.h2Type=org.codelutin.util.H2TypeEnum:h2
-h2.config.definition.h2Dialect=java.lang.String:org.hibernate.dialect.H2Dialect
-h2.config.definition.h2Driver=java.lang.String:org.h2.Driver
-h2.config.definition.h2URL=java.lang.String:jdbc:h2:file:{0};FILE_LOCK=file;MODE=hsqldb;DEFAULT_LOCK_TIMEOUT=1000;DB_CLOSE_DELAY=0;LOCK_MODE=3;LOG=1;TRACE_LEVEL_FILE=0;TRACE_LEVEL_SYSTEM_OUT=1
-
-# pour utiliser Derby
-#h2.config.definition.h2Type=org.codelutin.util.H2TypeEnum:derby
-#h2.config.definition.h2Dialect=java.lang.String:org.hibernate.dialect.DerbyDialect
-#h2.config.definition.h2Driver=java.lang.String:org.apache.derby.jdbc.EmbeddedDriver
-#h2.config.definition.h2URL=java.lang.String:jdbc:derby:{0};create=true
-
-# pour utiliser HSQL
-#h2.config.definition.h2Type=org.codelutin.util.H2TypeEnum:hsql
-#h2.config.definition.h2Dialect=java.lang.String:org.hibernate.dialect.HSQLDialect
-#h2.config.definition.h2Driver=java.lang.String:org.hsqldb.jdbcDriver
-#h2.config.definition.h2URL=java.lang.String:jdbc:hsqldb:file:{0};shutdown=true
-
-# pour utiliser McKoi
-#h2.config.definition.h2Type=org.codelutin.util.H2TypeEnum:mckoi
-#h2.config.definition.h2Dialect=java.lang.String:org.hibernate.dialect.MckoiDialect
-#h2.config.definition.h2Driver=java.lang.String:com.mckoi.JDBCDriver
-#h2.config.definition.h2URL=java.lang.String:jdbc:mckoi:local://{0}?create_or_boot=true&database_path={1}&log_path={1}&use_nio_if_available=enabled&dont_synch_filesystem=enabled&io_safety_level=3
-
-# On utilise pas cglib pour eviter les OutOfMemory: PermGen
-h2.config.definition.h2MemBytecodeProvider=java.lang.String:javassist
-h2.config.modifiers.h2MemBytecodeProvider=final,mandatory,static,transient
-
-h2.config.definition.h2MemPass=java.lang.String:
-h2.config.modifiers.h2MemPass=final,mandatory,static,transient
-
-h2.config.definition.h2MemUser=java.lang.String:sa
-h2.config.modifiers.h2MemUser=final,mandatory,static,transient
-
-h2.config.definition.h2MemURL=java.lang.String:jdbc:h2:mem:{0};MODE=hsqldb;DEFAULT_LOCK_TIMEOUT=1000;DB_CLOSE_DELAY=0;LOCK_MODE=3;LOG=0;TRACE_LEVEL_FILE=0;TRACE_LEVEL_SYSTEM_OUT=1
-h2.config.modifiers.h2MemURL=final,mandatory,static,transient
-# TODO Use class type when we can use the project classpath in commandline plugin
-
-h2.config.definition.h2MemDialect=java.lang.String:org.hibernate.dialect.H2Dialect
-h2.config.modifiers.h2MemDialect=final,mandatory,static,transient
-
-# TODO Use class type when we can use the project classpath in commandline plugin
-h2.config.definition.h2MemDriver=java.lang.String:org.h2.Driver
-h2.config.modifiers.h2MemDriver=final,mandatory,static,transient
-
-h2.config.modifiers.h2MemType=final,mandatory,static,transient
-h2.config.definition.h2MemType=org.codelutin.util.H2TypeEnum:h2
-
-h2.config.definition.migrationApplicationVersion=java.lang.Integer:1
-h2.config.modifiers.migrationApplicationVersion=final,mandatory,static,transient
-
-# TODO Use class type when we can use the project classpath in commandline plugin
-h2.config.definition.migrationCallBackhandlers=java.lang.String:fr.ifremer.isisfish.datastore.migration.SwingMigrationCallbackHandler
-h2.config.modifiers.migrationCallBackhandlers=final,mandatory,static,transient
-
-h2.config.definition.migrationModelNames=java.lang.String:IsisFish
-h2.config.modifiers.migrationModelNames=final,mandatory,static,transient
-
-h2.config.definition.migrationPreviousMappingDirectory=java.lang.String:oldmappings
-h2.config.modifiers.migrationPreviousMappingDirectory=final,mandatory,static,transient
-
-# TODO Use class type when we can use the project classpath in commandline plugin
-h2.config.definition.migrationTopiaService=java.lang.String:org.codelutin.topia.migration.TopiaMigrationServiceImpl
-h2.config.modifiers.migrationTopiaService=final,mandatory,static,transient
-
-h2.config.definition.storageData=java.lang.String:data
-h2.config.modifiers.storageData=final,mandatory,static,transient
-
-h2.config.definition.updateschemaDatabase=java.lang.Boolean:false
-h2.config.modifiers.updateschemaDatabase=final,mandatory,static,transient
1
0
r1261 - in branches/maven2_multimodule/isis-fish: isis-fish-entities/src/main/xmi isis-fish-main/src/main isis-fish-main/src/main/resources isis-fish-ui/src/main/uimodel src src/resources src/uimodel src/xmi
by tchemit@users.labs.libre-entreprise.org 28 Jul '08
by tchemit@users.labs.libre-entreprise.org 28 Jul '08
28 Jul '08
Author: tchemit
Date: 2008-07-28 20:27:38 +0000 (Mon, 28 Jul 2008)
New Revision: 1261
Added:
branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/xmi/isis-fish.properties
branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/xmi/isis-fish.zargo
branches/maven2_multimodule/isis-fish/isis-fish-main/src/main/jnlp/
branches/maven2_multimodule/isis-fish/isis-fish-main/src/main/resources/interpreter.properties
branches/maven2_multimodule/isis-fish/isis-fish-main/src/main/resources/jnlp/
branches/maven2_multimodule/isis-fish/isis-fish-main/src/main/resources/lutintrace.xml
branches/maven2_multimodule/isis-fish/isis-fish-main/src/main/resources/maps/
branches/maven2_multimodule/isis-fish/isis-fish-ui/src/main/uimodel/fr/
Removed:
branches/maven2_multimodule/isis-fish/src/jnlp/
branches/maven2_multimodule/isis-fish/src/resources/interpreter.properties
branches/maven2_multimodule/isis-fish/src/resources/jnlp/
branches/maven2_multimodule/isis-fish/src/resources/lutintrace.xml
branches/maven2_multimodule/isis-fish/src/resources/maps/
branches/maven2_multimodule/isis-fish/src/uimodel/fr/
branches/maven2_multimodule/isis-fish/src/xmi/isis-fish.properties
branches/maven2_multimodule/isis-fish/src/xmi/isis-fish.zargo
Log:
move resources to good modules
Copied: branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/xmi/isis-fish.properties (from rev 1254, branches/maven2_multimodule/isis-fish/src/xmi/isis-fish.properties)
===================================================================
--- branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/xmi/isis-fish.properties (rev 0)
+++ branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/xmi/isis-fish.properties 2008-07-28 20:27:38 UTC (rev 1261)
@@ -0,0 +1,6 @@
+model.tagvalue.org.codelutin.math.matrix.MatrixND=fr.ifremer.isisfish.types.hibernate.MatrixType(name,dim,dimNames,semantics,data)
+model.tagvalue.fr.ifremer.isisfish.types.Month=fr.ifremer.isisfish.types.hibernate.MonthType
+model.tagvalue.fr.ifremer.isisfish.types.Date=fr.ifremer.isisfish.types.hibernate.DateType
+model.tagvalue.fr.ifremer.isisfish.types.TimeUnit=fr.ifremer.isisfish.types.hibernate.TimeUnitType
+model.tagvalue.fr.ifremer.isisfish.types.RangeOfValues=fr.ifremer.isisfish.types.hibernate.RangeOfValuesType
+model.tagvalue.java.lang.String=text
Property changes on: branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/xmi/isis-fish.properties
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Revision
Name: svn:eol-style
+ native
Copied: branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/xmi/isis-fish.zargo (from rev 1254, branches/maven2_multimodule/isis-fish/src/xmi/isis-fish.zargo)
===================================================================
(Binary files differ)
Property changes on: branches/maven2_multimodule/isis-fish/isis-fish-entities/src/main/xmi/isis-fish.zargo
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Copied: branches/maven2_multimodule/isis-fish/isis-fish-main/src/main/jnlp (from rev 1254, branches/maven2_multimodule/isis-fish/src/jnlp)
Copied: branches/maven2_multimodule/isis-fish/isis-fish-main/src/main/resources/interpreter.properties (from rev 1254, branches/maven2_multimodule/isis-fish/src/resources/interpreter.properties)
===================================================================
--- branches/maven2_multimodule/isis-fish/isis-fish-main/src/main/resources/interpreter.properties (rev 0)
+++ branches/maven2_multimodule/isis-fish/isis-fish-main/src/main/resources/interpreter.properties 2008-07-28 20:27:38 UTC (rev 1261)
@@ -0,0 +1,23 @@
+# -------------------------------------------------------------------
+# Copyright 2002-2005 Delft University of Technology.
+#
+# Licensed under the Lesser General Purpose, (the "License");
+# The properties in this file control the interpreter
+# -------------------------------------------------------------------
+
+# -------------------------------------------------------------------
+# Copyright 2002-2005 Delft University of Technology.
+#
+# Licensed under the Lesser General Purpose, (the "License");
+# The properties in this file control the interpreter
+# -------------------------------------------------------------------
+
+# Interpreter Factory------------------------------------------------
+#interpreter.operation.factory=nl.tudelft.simulation.dsol.interpreter.operations.InterpreterFactory
+#interpreter.operation.factory=nl.tudelft.simulation.dsol.interpreter.operations.reflection.ReflectionFactory
+interpreter.operation.factory=nl.tudelft.simulation.dsol.interpreter.process.ProcessFactory
+interpreter.operation.oracle=umontreal.iro.lecuyer.simprocs.dsol.SSJInterpretationOracle
+
+# Interpreter Log Level----------------------------------------------
+interpreter.logLevel=WARNING
+
Property changes on: branches/maven2_multimodule/isis-fish/isis-fish-main/src/main/resources/interpreter.properties
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Revision
Name: svn:eol-style
+ native
Copied: branches/maven2_multimodule/isis-fish/isis-fish-main/src/main/resources/jnlp (from rev 1254, branches/maven2_multimodule/isis-fish/src/resources/jnlp)
Copied: branches/maven2_multimodule/isis-fish/isis-fish-main/src/main/resources/lutintrace.xml (from rev 1254, branches/maven2_multimodule/isis-fish/src/resources/lutintrace.xml)
===================================================================
--- branches/maven2_multimodule/isis-fish/isis-fish-main/src/main/resources/lutintrace.xml (rev 0)
+++ branches/maven2_multimodule/isis-fish/isis-fish-main/src/main/resources/lutintrace.xml 2008-07-28 20:27:38 UTC (rev 1261)
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<!DOCTYPE aspectwerkz PUBLIC
+ "-//AspectWerkz//DTD//EN"
+ "http://aspectwerkz.codehaus.org/dtd/aspectwerkz2.dtd">
+
+<aspectwerkz>
+ <system id="trace">
+ <aspect class="org.codelutin.util.LutinTrace">
+ <pointcut name="executeMethod">
+ execution(* fr.ifremer.isisfish.datastore..*(..))
+ || execution(* fr.ifremer.isisfish.simulator..*(..))
+ || execution(* fr.ifremer.isisfish.types..*(..))
+ || execution(* org.codelutin.util..*(..))
+ || execution(* org.codelutin.xml..*(..))
+ || execution(* org.codelutin.topia..*(..))
+ || execution(* org.codelutin.math.matrix..*(..))
+ || execution(* org.swixat..*(..))
+ </pointcut>
+ </aspect>
+ </system>
+</aspectwerkz>
Property changes on: branches/maven2_multimodule/isis-fish/isis-fish-main/src/main/resources/lutintrace.xml
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Revision
Name: svn:eol-style
+ native
Copied: branches/maven2_multimodule/isis-fish/isis-fish-main/src/main/resources/maps (from rev 1254, branches/maven2_multimodule/isis-fish/src/resources/maps)
Copied: branches/maven2_multimodule/isis-fish/isis-fish-ui/src/main/uimodel/fr (from rev 1254, branches/maven2_multimodule/isis-fish/src/uimodel/fr)
Deleted: branches/maven2_multimodule/isis-fish/src/resources/interpreter.properties
===================================================================
--- branches/maven2_multimodule/isis-fish/src/resources/interpreter.properties 2008-07-28 20:25:31 UTC (rev 1260)
+++ branches/maven2_multimodule/isis-fish/src/resources/interpreter.properties 2008-07-28 20:27:38 UTC (rev 1261)
@@ -1,23 +0,0 @@
-# -------------------------------------------------------------------
-# Copyright 2002-2005 Delft University of Technology.
-#
-# Licensed under the Lesser General Purpose, (the "License");
-# The properties in this file control the interpreter
-# -------------------------------------------------------------------
-
-# -------------------------------------------------------------------
-# Copyright 2002-2005 Delft University of Technology.
-#
-# Licensed under the Lesser General Purpose, (the "License");
-# The properties in this file control the interpreter
-# -------------------------------------------------------------------
-
-# Interpreter Factory------------------------------------------------
-#interpreter.operation.factory=nl.tudelft.simulation.dsol.interpreter.operations.InterpreterFactory
-#interpreter.operation.factory=nl.tudelft.simulation.dsol.interpreter.operations.reflection.ReflectionFactory
-interpreter.operation.factory=nl.tudelft.simulation.dsol.interpreter.process.ProcessFactory
-interpreter.operation.oracle=umontreal.iro.lecuyer.simprocs.dsol.SSJInterpretationOracle
-
-# Interpreter Log Level----------------------------------------------
-interpreter.logLevel=WARNING
-
Deleted: branches/maven2_multimodule/isis-fish/src/resources/lutintrace.xml
===================================================================
--- branches/maven2_multimodule/isis-fish/src/resources/lutintrace.xml 2008-07-28 20:25:31 UTC (rev 1260)
+++ branches/maven2_multimodule/isis-fish/src/resources/lutintrace.xml 2008-07-28 20:27:38 UTC (rev 1261)
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-
-<!DOCTYPE aspectwerkz PUBLIC
- "-//AspectWerkz//DTD//EN"
- "http://aspectwerkz.codehaus.org/dtd/aspectwerkz2.dtd">
-
-<aspectwerkz>
- <system id="trace">
- <aspect class="org.codelutin.util.LutinTrace">
- <pointcut name="executeMethod">
- execution(* fr.ifremer.isisfish.datastore..*(..))
- || execution(* fr.ifremer.isisfish.simulator..*(..))
- || execution(* fr.ifremer.isisfish.types..*(..))
- || execution(* org.codelutin.util..*(..))
- || execution(* org.codelutin.xml..*(..))
- || execution(* org.codelutin.topia..*(..))
- || execution(* org.codelutin.math.matrix..*(..))
- || execution(* org.swixat..*(..))
- </pointcut>
- </aspect>
- </system>
-</aspectwerkz>
Deleted: branches/maven2_multimodule/isis-fish/src/xmi/isis-fish.properties
===================================================================
--- branches/maven2_multimodule/isis-fish/src/xmi/isis-fish.properties 2008-07-28 20:25:31 UTC (rev 1260)
+++ branches/maven2_multimodule/isis-fish/src/xmi/isis-fish.properties 2008-07-28 20:27:38 UTC (rev 1261)
@@ -1,6 +0,0 @@
-model.tagvalue.org.codelutin.math.matrix.MatrixND=fr.ifremer.isisfish.types.hibernate.MatrixType(name,dim,dimNames,semantics,data)
-model.tagvalue.fr.ifremer.isisfish.types.Month=fr.ifremer.isisfish.types.hibernate.MonthType
-model.tagvalue.fr.ifremer.isisfish.types.Date=fr.ifremer.isisfish.types.hibernate.DateType
-model.tagvalue.fr.ifremer.isisfish.types.TimeUnit=fr.ifremer.isisfish.types.hibernate.TimeUnitType
-model.tagvalue.fr.ifremer.isisfish.types.RangeOfValues=fr.ifremer.isisfish.types.hibernate.RangeOfValuesType
-model.tagvalue.java.lang.String=text
Deleted: branches/maven2_multimodule/isis-fish/src/xmi/isis-fish.zargo
===================================================================
(Binary files differ)
1
0
r1260 - branches/maven2_multimodule/isis-fish/isis-fish-entities
by tchemit@users.labs.libre-entreprise.org 28 Jul '08
by tchemit@users.labs.libre-entreprise.org 28 Jul '08
28 Jul '08
Author: tchemit
Date: 2008-07-28 20:25:31 +0000 (Mon, 28 Jul 2008)
New Revision: 1260
Modified:
branches/maven2_multimodule/isis-fish/isis-fish-entities/pom.xml
Log:
nom du module isis-fish-entities
Modified: branches/maven2_multimodule/isis-fish/isis-fish-entities/pom.xml
===================================================================
--- branches/maven2_multimodule/isis-fish/isis-fish-entities/pom.xml 2008-07-28 20:12:33 UTC (rev 1259)
+++ branches/maven2_multimodule/isis-fish/isis-fish-entities/pom.xml 2008-07-28 20:25:31 UTC (rev 1260)
@@ -14,7 +14,7 @@
<version>3.1.6-SNAPSHOT</version>
</parent>
- <artifactId>isis-fish-dto</artifactId>
+ <artifactId>isis-fish-entities</artifactId>
<dependencies>
<dependency>
@@ -67,7 +67,7 @@
<!-- *** Project Information ************************************* -->
<!-- ************************************************************* -->
- <name>isis-fish-entites</name>
+ <name>isis-fish-entities</name>
<version>3.1.6-SNAPSHOT</version>
<description>isis-fish entities module</description>
1
0