db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From henn...@apache.org
Subject cvs commit: jakarta-turbine-torque/src/java/org/apache/torque/pool TorqueClassicDataSource.java
Date Thu, 09 Jan 2003 13:38:54 GMT
henning     2003/01/09 05:38:54

  Modified:    src/java/org/apache/torque/pool TorqueClassicDataSource.java
  Log:
  Added some docs about the fields in TCDS.
  
  Revision  Changes    Path
  1.7       +24 -1     jakarta-turbine-torque/src/java/org/apache/torque/pool/TorqueClassicDataSource.java
  
  Index: TorqueClassicDataSource.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-torque/src/java/org/apache/torque/pool/TorqueClassicDataSource.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- TorqueClassicDataSource.java	9 Jan 2003 13:33:51 -0000	1.6
  +++ TorqueClassicDataSource.java	9 Jan 2003 13:38:54 -0000	1.7
  @@ -87,16 +87,20 @@
   {
       /** Pools keyed by username. */
       private static Map pools = new HashMap();
  +
  +    /** Counter used to create an internal unique name od the Data Source */
       private static int cpdsCounter;
   
       /** DataSource Name used to find the ConnectionPoolDataSource */
       private String dataSourceName;
  +
       /** Description */
       private String description;
   
       /** Login TimeOut in seconds */
       private int loginTimeout;
   
  +    /** Pool Data Source that is used to fetch connections */
       private ConnectionPoolDataSource cpds;
   
       /** Log stream */
  @@ -105,12 +109,31 @@
       /** Environment that may be used to set up a jndi initial context. */
       private Properties jndiEnvironment;
   
  +    /** Maximum Number of Connections cached in this Data Source */
       private int defaultMaxConnections;
  +
  +    /**
  +     * Maximum Number of Connections for a specified User in this Data
  +     * Source
  +     */
       private Properties perUserMaxConnections;
  +
  +    /** Maximum lifetime of a database connection */
       private int maxExpiryTime;
  +
  +    /**
  +     * time to wait when initiating a connection
  +     * for the database to respond 
  +     */
       private int connectionWaitTimeout;
  +
  +    /** Interval (in seconds) that the monitor thread reports the pool state */
       private int logInterval;
  +
  +    /** Do connections from this pool are auto-committing? */
       private boolean defaultAutoCommit;
  +    
  +    /** Are connections from this pool read-only? */
       private boolean defaultReadOnly;
   
       /**
  
  
  

Mime
View raw message