db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject cvs commit: db-ojb/src/samples/org/apache/ojb/tutorial2 Application.java
Date Wed, 24 Nov 2004 22:29:09 GMT
tomdz       2004/11/24 14:29:09

  Modified:    src/samples/org/apache/ojb/tutorial2 Tag: OJB_1_0_RELEASE
                        Application.java
  Log:
  Removed dependency to TestHelper (which is part of the unit tests)
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.3.2.1   +4 -9      db-ojb/src/samples/org/apache/ojb/tutorial2/Application.java
  
  Index: Application.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/samples/org/apache/ojb/tutorial2/Application.java,v
  retrieving revision 1.3
  retrieving revision 1.3.2.1
  diff -u -r1.3 -r1.3.2.1
  --- Application.java	23 Jun 2004 07:13:14 -0000	1.3
  +++ Application.java	24 Nov 2004 22:29:09 -0000	1.3.2.1
  @@ -19,7 +19,6 @@
   import java.io.InputStreamReader;
   import java.util.Vector;
   
  -import org.apache.ojb.broker.TestHelper;
   import org.apache.ojb.broker.util.ui.AsciiSplash;
   import org.apache.ojb.odmg.OJB;
   import org.odmg.Database;
  @@ -31,15 +30,11 @@
    */
   public class Application
   {
  +    /** The name of the database, i.e. the jcd-alias (including username and password)
*/
  +    private static final String DATABASE_NAME = "default#sa#";
  +
       /** The use cases */
       private Vector useCases;
  -    /** The name of the database */
  -    private static String databaseName;
  -
  -	static
  -	{
  -        databaseName = TestHelper.DEF_DATABASE_NAME;
  -	}
   
       /**
        * Creates a new application object.
  @@ -53,7 +48,7 @@
           // open database
           try
           {
  -            db.open(databaseName, Database.OPEN_READ_WRITE);
  +            db.open(DATABASE_NAME, Database.OPEN_READ_WRITE);
           }
           catch (ODMGException ex)
           {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message