com.ivata.mask.web.demo.catalog
Class CatalogSession

java.lang.Object
  extended bycom.ivata.mask.web.demo.catalog.CatalogSession
All Implemented Interfaces:
com.ivata.mask.persistence.PersistenceSession, java.io.Serializable

public final class CatalogSession
extends java.lang.Object
implements com.ivata.mask.persistence.PersistenceSession

Normally, a persistence session is analagous to a database transaction, grouping together like persistence actions unless they fail. This is just a dummy for the demo, however, and has no real functionality :-)

Since:
ivata masks 0.3 (2004-11-12)
Version:
$Revision: 1.6 $
Author:
Colin MacLeod colin.macleod@ivata.com
See Also:
Serialized Form

Constructor Summary
CatalogSession()
           
 
Method Summary
 void cancel()
          This method doesn't really do anything.
 void close()
           Implements persistence session method.
 java.sql.Connection getConnection()
           Implements persistence session method.
 java.lang.Object getSystemSession()
          Refer to PersistenceSession.getSystemSession().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CatalogSession

public CatalogSession()
Method Detail

cancel

public void cancel()
This method doesn't really do anything. :-)

Specified by:
cancel in interface com.ivata.mask.persistence.PersistenceSession
See Also:
PersistenceSession.cancel()

close

public void close()
           throws com.ivata.mask.persistence.PersistenceException

Implements persistence session method. Does nothing for this demo implementation.

Specified by:
close in interface com.ivata.mask.persistence.PersistenceSession
Throws:
com.ivata.mask.persistence.PersistenceException
See Also:
PersistenceSession.close()

getConnection

public java.sql.Connection getConnection()
                                  throws com.ivata.mask.persistence.PersistenceException

Implements persistence session method. Does nothing for this demo implementation.

Specified by:
getConnection in interface com.ivata.mask.persistence.PersistenceSession
Returns:
nothing is ever returned as the exception is always thrown,
Throws:
com.ivata.mask.persistence.PersistenceException - always thrown since this method is unsupported in this demo.
See Also:
PersistenceSession.getConnection()

getSystemSession

public java.lang.Object getSystemSession()
Refer to PersistenceSession.getSystemSession().

Specified by:
getSystemSession in interface com.ivata.mask.persistence.PersistenceSession
Returns:
Refer to PersistenceSession.getSystemSession().


Copyright © 2001-2005 ivata limited. All Rights Reserved.