org.okiproject.serviceapi.sql
Class SqlFactory

java.lang.Object
  |
  +--org.okiproject.serviceapi.sql.SqlFactory
All Implemented Interfaces:
java.io.Serializable

public class SqlFactory
extends java.lang.Object
implements java.io.Serializable

Copyright (c) 2001 Massachusetts Institute of Technology

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

$Source: /cvs/oki/org/okiproject/serviceapi/doc/sql/org/okiproject/serviceapi/sql/SqlFactory.html,v $

See Also:
Serialized Form

Constructor Summary
SqlFactory()
           
 
Method Summary
static SqlFactory getDefaultSqlFactory(org.okiproject.serviceapi.common.Agent agent)
          Method getDefaultSqlFactory
static SqlFactory getSqlFactory(org.okiproject.serviceapi.common.Agent agent, java.util.Map props)
          Method getSqlFactory
 Connection newConnection(java.util.Map props)
          Method newConnection
 Connection newConnection(java.lang.String database, java.lang.String username, java.lang.String password)
          Method newConnection
 Connection newConnection(java.lang.String databaseURL, java.lang.String driverName, java.lang.String username, java.lang.String password)
          Method newConnection
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlFactory

public SqlFactory()
Method Detail

getDefaultSqlFactory

public static SqlFactory getDefaultSqlFactory(org.okiproject.serviceapi.common.Agent agent)
                                       throws java.lang.Exception
Method getDefaultSqlFactory
Parameters:
agent -  
Returns:
 
Throws:
java.lang.Exception -  

getSqlFactory

public static SqlFactory getSqlFactory(org.okiproject.serviceapi.common.Agent agent,
                                       java.util.Map props)
                                throws java.lang.Exception
Method getSqlFactory
Parameters:
agent -  
props -  
Returns:
 
Throws:
java.lang.Exception -  

newConnection

public Connection newConnection(java.lang.String databaseURL,
                                java.lang.String driverName,
                                java.lang.String username,
                                java.lang.String password)
                         throws java.lang.Exception
Method newConnection
Parameters:
databaseURL -  
driverName -  
username -  
password -  
Returns:
org.okiproject.serviceapi.sql.Connection
Throws:
java.lang.Exception -  

newConnection

public Connection newConnection(java.lang.String database,
                                java.lang.String username,
                                java.lang.String password)
                         throws java.lang.Exception
Method newConnection
Parameters:
database -  
username -  
password -  
Returns:
org.okiproject.serviceapi.sql.Connection
Throws:
java.lang.Exception -  

newConnection

public Connection newConnection(java.util.Map props)
                         throws java.lang.Exception
Method newConnection
Parameters:
props -  
Returns:
org.okiproject.serviceapi.sql.Connection
Throws:
java.lang.Exception -