com.caucho.amber
Class AmberContext

java.lang.Object
  extended by com.caucho.amber.AmberContext

public class AmberContext
extends java.lang.Object

Context for amber.


Method Summary
static void close()
          Closes the connection.
static AmberContext create(AmberFactory factory)
          Creates a new amber context.
static AmberConnection getConnection()
          Gets the current connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static AmberContext create(AmberFactory factory)
Creates a new amber context.


getConnection

public static AmberConnection getConnection()
                                     throws java.sql.SQLException
Gets the current connection.

Throws:
java.sql.SQLException

close

public static void close()
Closes the connection.