org.meta2project.model.debug
Class DebugSession
java.lang.Object
org.meta2project.model.debug.DebugSession
- All Implemented Interfaces:
- Session
public class DebugSession
- extends java.lang.Object
- implements Session
- Author:
- Anton Malykh
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
session
protected Session session
DebugSession
public DebugSession(Session session)
openConnection
public Connection openConnection()
- Description copied from interface:
Session
- Open an autocommit connection for the ontobox session. An autocommit connection writes down all changes on ontobase
without rollback ability. A connection must be closed after using.
- Specified by:
openConnection
in interface Session
- Returns:
- new autocommin connection
- See Also:
Connection.close()
openTransaction
public Connection openTransaction()
- Description copied from interface:
Session
- Open a transaction connection for the ontobox session. During closing a transaction connection it can be
commited or can be rolled back. A connection must be closed after using
(the Connection.close method for commit or the Connection.closeRollback method for rollback).
- Specified by:
openTransaction
in interface Session
- Returns:
- new transaction connection
- See Also:
Connection.close()
,
Connection.closeRollback()
getListenerManager
public BoxListenerManager getListenerManager()
- Specified by:
getListenerManager
in interface Session
close
public void close()
- Description copied from interface:
Session
- Close the ontobox session.
- Specified by:
close
in interface Session
wrapConnection
protected Connection wrapConnection(Connection con)
wrapOntology
public Ontology wrapOntology(Ontology ontology)
wrapOntologies
public java.util.Collection<Ontology> wrapOntologies(java.util.Collection<Ontology> ontologies)
wrapType
public Type wrapType(Type type)
unwrapType
public static Type unwrapType(Type type)
wrapTypes
public java.util.Collection<Type> wrapTypes(java.util.Collection<Type> types)
wrapOntClass
public OntClass wrapOntClass(OntClass cl)
unwrapOntClass
public static OntClass unwrapOntClass(OntClass cl)
wrapOntClasses
public java.util.Collection<OntClass> wrapOntClasses(java.util.Collection<OntClass> cls)
unwrapOntClasses
public static java.util.Collection<OntClass> unwrapOntClasses(java.util.Collection<OntClass> cls)
wrapOntClasses
public OntClass[] wrapOntClasses(OntClass[] cls)
unwrapOntClasses
public static OntClass[] unwrapOntClasses(OntClass[] cls)
wrapTProperty
public TProperty wrapTProperty(TProperty tprop)
unwrapTProperty
public static TProperty unwrapTProperty(TProperty tprop)
wrapTProperties
public java.util.Collection<TProperty> wrapTProperties(java.util.Collection<TProperty> tprops)
unwrapTProperties
public static java.util.Collection<TProperty> unwrapTProperties(java.util.Collection<TProperty> tprops)
wrapOProperty
public OProperty wrapOProperty(OProperty oprop)
unwrapOProperty
public static OProperty unwrapOProperty(OProperty oprop)
wrapOProperties
public java.util.Collection<OProperty> wrapOProperties(java.util.Collection<OProperty> oprops)
unwrapOProperties
public static java.util.Collection<OProperty> unwrapOProperties(java.util.Collection<OProperty> oprops)
wrapOntObject
public OntObject wrapOntObject(OntObject obj)
unwrapOntObject
public static OntObject unwrapOntObject(OntObject obj)
wrapOntObjects
public java.util.List<OntObject> wrapOntObjects(java.util.Collection<OntObject> objs)
getBox
public Box getBox()
- Specified by:
getBox
in interface Session