crafterm    2003/08/01 03:11:30

  Modified:    datasource/src/java/org/apache/avalon/excalibur/datasource
                        InformixDataSource.java
  Log:
  Fixing incorrect type.
  
  Patch submitted by: [EMAIL PROTECTED]
  
  Revision  Changes    Path
  1.17      +6 -2      
avalon-excalibur/datasource/src/java/org/apache/avalon/excalibur/datasource/InformixDataSource.java
  
  Index: InformixDataSource.java
  ===================================================================
  RCS file: 
/home/cvs/avalon-excalibur/datasource/src/java/org/apache/avalon/excalibur/datasource/InformixDataSource.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- InformixDataSource.java   20 May 2003 20:44:43 -0000      1.16
  +++ InformixDataSource.java   1 Aug 2003 10:11:30 -0000       1.17
  @@ -174,7 +174,7 @@
           setProperty(pooledDataSource, "IfxCPMInitPoolSize", new 
Integer(poolController.getAttributeAsInteger( "init", 5 ) ) );
           setProperty(pooledDataSource, "IfxCPMMinPoolSize", new 
Integer(poolController.getAttributeAsInteger( "min", 5 ) ) );
           setProperty(pooledDataSource, "IfxCPMMaxPoolSize", new 
Integer(poolController.getAttributeAsInteger( "max", 10 ) ) );
  -        setProperty(pooledDataSource, "IfxCPMServiceInterval", new Integer( 100 ) );
  +        setProperty(pooledDataSource, "IfxCPMServiceInterval", new Long( 100 ) );
           setProperty(pooledDataSource, "ServerName",  conf.getChild( "servername" 
).getValue() );
           setProperty(pooledDataSource, "DatabaseName", conf.getChild( "dbname" 
).getValue() );
           setProperty(pooledDataSource, "IfxIFXHOST", conf.getChild( "host" 
).getValue() );
  @@ -266,6 +266,10 @@
           if ( value instanceof Integer )
           {
               valueClass = Integer.TYPE;
  +        }
  +        else if ( value instanceof Long )
  +        {
  +            valueClass = Long.TYPE;
           }
           
           try
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to