org.trippi.impl.mpt
Class MPTSessionFactory

java.lang.Object
  extended by org.trippi.impl.mpt.MPTSessionFactory
All Implemented Interfaces:
TriplestoreSessionFactory

public class MPTSessionFactory
extends java.lang.Object
implements TriplestoreSessionFactory


Constructor Summary
MPTSessionFactory(org.apache.commons.dbcp.BasicDataSource pool, org.nsdl.mptstore.core.DatabaseAdaptor adaptor, int fetchSize)
           
 
Method Summary
 void close()
          Free up any system resources allocated by the session factory.
 java.lang.String[] listTripleLanguages()
           
 java.lang.String[] listTupleLanguages()
           
 TriplestoreSession newSession()
          Get a new session.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MPTSessionFactory

public MPTSessionFactory(org.apache.commons.dbcp.BasicDataSource pool,
                         org.nsdl.mptstore.core.DatabaseAdaptor adaptor,
                         int fetchSize)
Method Detail

newSession

public TriplestoreSession newSession()
                              throws TrippiException
Description copied from interface: TriplestoreSessionFactory
Get a new session.

Specified by:
newSession in interface TriplestoreSessionFactory
Throws:
TrippiException

listTripleLanguages

public java.lang.String[] listTripleLanguages()
Specified by:
listTripleLanguages in interface TriplestoreSessionFactory

listTupleLanguages

public java.lang.String[] listTupleLanguages()
Specified by:
listTupleLanguages in interface TriplestoreSessionFactory

close

public void close()
           throws TrippiException
Description copied from interface: TriplestoreSessionFactory
Free up any system resources allocated by the session factory.

Specified by:
close in interface TriplestoreSessionFactory
Throws:
TrippiException