org.ontobox.box.base
Class BaseBox

java.lang.Object
  extended by org.ontobox.box.base.BaseBox
All Implemented Interfaces:
Box
Direct Known Subclasses:
FastBox

public abstract class BaseBox
extends java.lang.Object
implements Box

Author:
Anton Malykh

Field Summary
 
Fields inherited from interface org.ontobox.box.Box
DMAP_TYPE, LEGACY_NAME, MAX_CARD, MIN_CARD, ONTOBOX_URI
 
Constructor Summary
BaseBox()
           
 
Method Summary
<T> T
client(BoxClient<T> client)
          Run ontobox client
<T> T
clientRO(BoxClient<T> client)
          Run read-only ontobox client
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ontobox.box.Box
close, getListenerManager, work, workAutocommit, workRO
 

Constructor Detail

BaseBox

public BaseBox()
Method Detail

client

public <T> T client(BoxClient<T> client)
Description copied from interface: Box
Run ontobox client

Specified by:
client in interface Box
Type Parameters:
T - return type
Parameters:
client - client
Returns:
client's result

clientRO

public <T> T clientRO(BoxClient<T> client)
Description copied from interface: Box
Run read-only ontobox client

Specified by:
clientRO in interface Box
Type Parameters:
T - return type
Parameters:
client - client
Returns:
client's result