KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > genimen > djeneric > test > strong > impl > TestSessionImpl


1 package com.genimen.djeneric.test.strong.impl;
2
3 // THIS FILE CAN BE MODIFED SAFELY
4
// THIS FILE WILL NEVER BE OVERWRITTEN BY THE STRONGTYPER
5

6 import com.genimen.djeneric.repository.exceptions.ObjectNotDefinedException;
7
8 public class TestSessionImpl extends TestAbstractSessionImpl
9 {
10
11   protected TestSessionImpl(TestPersistenceManager mgr) throws ObjectNotDefinedException
12   {
13     super(mgr);
14   }
15
16   // Uncomment and modify the following code to activate your own sub classes:
17
/*
18    public DjObject createObject(DjExtent extent) throws DjenericException
19    {
20    if(!isValid())
21    throw new Exception("Session closed");
22    DjObject po = null;
23    // for example:
24    if(extent == _customerExtent)
25    {
26    po = new SubClassedCustomerImpl(this, _customerExtent);
27    cacheObject(po);
28    }
29    else
30    po = super.createObject(extent);
31    return po;
32    }
33
34    */

35
36 }
Popular Tags