org.opensync.engine.server
Class DefaultFunction

java.lang.Object
  extended byorg.opensync.engine.server.DefaultFunction
All Implemented Interfaces:
Function

public abstract class DefaultFunction
extends java.lang.Object
implements Function

The default implementation of the function interface. It gives basic features like simple access to a source.


Constructor Summary
DefaultFunction()
          Construct a DefaultFunction
 
Method Summary
protected  java.sql.Connection getConnection(java.lang.String source)
          Get a SQL Connection from the source source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultFunction

public DefaultFunction()
Construct a DefaultFunction

Method Detail

getConnection

protected java.sql.Connection getConnection(java.lang.String source)
                                     throws java.sql.SQLException
Get a SQL Connection from the source source. Warning : The source source must have a BD connector

Parameters:
source - The name of the source used in the config.xml file
Throws:
java.sql.SQLException


Copyright © 2004 sourceforge. All Rights Reserved.