com.moximedia.aims
Class SqlConnection

java.lang.Object
  extended bycom.moximedia.aims.SqlConnection
All Implemented Interfaces:
java.io.Serializable

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

The SqlConnection object is usually instantiated at IMF startup time based on the contents of the $IMF/WEB-INF/sql-connections.xml file. It is used by IMF's data linking routines to display data from related database tables, or to find spatial data based on information in related database tables. Connection pooling is used to optimize database access performance.

Author:
Doug Cates
See Also:
Serialized Form

Constructor Summary
SqlConnection()
          Creates a new instance of SqlConnection
 
Method Summary
 void close()
          Closes the connection pool associated with this object.
 java.sql.Connection getConnection()
           
 java.lang.String getConnectionName()
           
protected  java.lang.String getConnectionString()
           
 java.lang.String getDriver()
           
protected  java.lang.String getPassword()
           
 java.lang.String getUser()
           
 void initialize()
           
 boolean isValid()
           
 void setConnectionName(java.lang.String name)
           
 void setConnectionString(java.lang.String connectionString)
           
 void setDriver(java.lang.String driver)
           
 void setPassword(java.lang.String password)
           
 void setUser(java.lang.String user)
           
 void setXmlAttribute(java.lang.String tag, java.lang.String name, java.lang.String value)
          Sets one of the attributes of this object using a string value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlConnection

public SqlConnection()
Creates a new instance of SqlConnection

Method Detail

getConnection

public java.sql.Connection getConnection()

close

public void close()
Closes the connection pool associated with this object.


getConnectionString

protected java.lang.String getConnectionString()

setConnectionString

public void setConnectionString(java.lang.String connectionString)

getDriver

public java.lang.String getDriver()

setDriver

public void setDriver(java.lang.String driver)

getConnectionName

public java.lang.String getConnectionName()

setConnectionName

public void setConnectionName(java.lang.String name)

getPassword

protected java.lang.String getPassword()

setPassword

public void setPassword(java.lang.String password)

getUser

public java.lang.String getUser()

setUser

public void setUser(java.lang.String user)

isValid

public boolean isValid()

setXmlAttribute

public void setXmlAttribute(java.lang.String tag,
                            java.lang.String name,
                            java.lang.String value)
Sets one of the attributes of this object using a string value. This method should only be called from the SAX event handler.

Parameters:
tag - The XML element tag containing this attribute.
name - The XML attribute name.
value - The XML attribute value.

initialize

public void initialize()


Internet Mapping Framework for ArcIMS Java Object Model API (v5.1.00)
Copyright © 2006 Moxi Media Inc. and Province of British Columbia. All Rights Reserved.