[Csvtosql-cvs] csvtosql_jdk50/src/net/sf/csv2sql/idgenerators IdGenerator.java, 1.1, 1.2 Incrementa
Brought to you by:
davideconsonni
|
From: consonni d. <dav...@us...> - 2006-10-11 18:23:26
|
Update of /cvsroot/csvtosql/csvtosql_jdk50/src/net/sf/csv2sql/idgenerators In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv13942/src/net/sf/csv2sql/idgenerators Modified Files: IdGenerator.java Incremental.java Time.java Log Message: no message Index: IdGenerator.java =================================================================== RCS file: /cvsroot/csvtosql/csvtosql_jdk50/src/net/sf/csv2sql/idgenerators/IdGenerator.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** IdGenerator.java 25 Apr 2005 10:53:19 -0000 1.1 --- IdGenerator.java 11 Oct 2006 18:23:19 -0000 1.2 *************** *** 1,18 **** /* ! Copyright (C) 2004 Davide Consonni <dco...@en...> ! This program is free software; you can redistribute it and/or modify ! it under the terms of the GNU General Public License as published by ! the Free Software Foundation; either version 2 of the License, or ! (at your option) any later version. ! This program is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! GNU General Public License for more details. ! You should have received a copy of the GNU General Public License ! along with this program; if not, write to the Free Software ! Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package net.sf.csv2sql.idgenerators; --- 1,18 ---- /* ! Copyright (C) 2006 Davide Consonni <dav...@us...> ! This library is free software; you can redistribute it and/or ! modify it under the terms of the GNU Lesser General Public ! License as published by the Free Software Foundation; either ! version 2.1 of the License, or (at your option) any later version. ! This library 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 ! Lesser General Public License for more details. ! You should have received a copy of the GNU Lesser General Public ! License along with this library; if not, write to the Free Software ! Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ package net.sf.csv2sql.idgenerators; *************** *** 24,28 **** * <b>Extend this class</b> to define a new id generator, you must implement * the <code>getID()</code> method, with must return a unique id ! * @author <a href="mailto:dco...@en...">Davide Consonni</a> */ public interface IdGenerator { --- 24,28 ---- * <b>Extend this class</b> to define a new id generator, you must implement * the <code>getID()</code> method, with must return a unique id ! * @author <a href="mailto:dav...@us...">Davide Consonni</a> */ public interface IdGenerator { Index: Time.java =================================================================== RCS file: /cvsroot/csvtosql/csvtosql_jdk50/src/net/sf/csv2sql/idgenerators/Time.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Time.java 25 Apr 2005 10:53:19 -0000 1.1 --- Time.java 11 Oct 2006 18:23:19 -0000 1.2 *************** *** 1,18 **** /* ! Copyright (C) 2004 Davide Consonni <dco...@en...> ! This program is free software; you can redistribute it and/or modify ! it under the terms of the GNU General Public License as published by ! the Free Software Foundation; either version 2 of the License, or ! (at your option) any later version. ! This program is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! GNU General Public License for more details. ! You should have received a copy of the GNU General Public License ! along with this program; if not, write to the Free Software ! Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package net.sf.csv2sql.idgenerators; --- 1,18 ---- /* ! Copyright (C) 2006 Davide Consonni <dav...@us...> ! This library is free software; you can redistribute it and/or ! modify it under the terms of the GNU Lesser General Public ! License as published by the Free Software Foundation; either ! version 2.1 of the License, or (at your option) any later version. ! This library 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 ! Lesser General Public License for more details. ! You should have received a copy of the GNU Lesser General Public ! License along with this library; if not, write to the Free Software ! Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ package net.sf.csv2sql.idgenerators; *************** *** 25,29 **** * note: max value is <code>Long.MAX_VALUE</code> * @see IdGenerator ! * @author <a href="mailto:dco...@en...">Davide Consonni</a> */ public class Time implements IdGenerator { --- 25,29 ---- * note: max value is <code>Long.MAX_VALUE</code> * @see IdGenerator ! * @author <a href="mailto:dav...@us...">Davide Consonni</a> */ public class Time implements IdGenerator { Index: Incremental.java =================================================================== RCS file: /cvsroot/csvtosql/csvtosql_jdk50/src/net/sf/csv2sql/idgenerators/Incremental.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Incremental.java 25 Apr 2005 10:53:19 -0000 1.1 --- Incremental.java 11 Oct 2006 18:23:19 -0000 1.2 *************** *** 1,18 **** /* ! Copyright (C) 2004 Davide Consonni <dco...@en...> ! This program is free software; you can redistribute it and/or modify ! it under the terms of the GNU General Public License as published by ! the Free Software Foundation; either version 2 of the License, or ! (at your option) any later version. ! This program is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! GNU General Public License for more details. ! You should have received a copy of the GNU General Public License ! along with this program; if not, write to the Free Software ! Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package net.sf.csv2sql.idgenerators; --- 1,18 ---- /* ! Copyright (C) 2006 Davide Consonni <dav...@us...> ! This library is free software; you can redistribute it and/or ! modify it under the terms of the GNU Lesser General Public ! License as published by the Free Software Foundation; either ! version 2.1 of the License, or (at your option) any later version. ! This library 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 ! Lesser General Public License for more details. ! You should have received a copy of the GNU Lesser General Public ! License along with this library; if not, write to the Free Software ! Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ package net.sf.csv2sql.idgenerators; *************** *** 25,33 **** * note: max value is <code>Long.MAX_VALUE</code> * @see IdGenerator ! * @author <a href="mailto:dco...@en...">Davide Consonni</a> */ public class Incremental implements IdGenerator { ! private long currentId = 0; /** --- 25,33 ---- * note: max value is <code>Long.MAX_VALUE</code> * @see IdGenerator ! * @author <a href="mailto:dav...@us...">Davide Consonni</a> */ public class Incremental implements IdGenerator { ! private long currentId = 0; /** *************** *** 36,40 **** public long getID() { return currentId++; ! } } --- 36,40 ---- public long getID() { return currentId++; ! } } |