ozone API

org.ozoneDB
Class OzoneObjectFactory

java.lang.Object
  extended byorg.ozoneDB.AbstractFactory
      extended byorg.ozoneDB.OzoneObjectFactory

public final class OzoneObjectFactory
extends AbstractFactory

Factory pattern class for creating ozone objects.

You can use this class for retrieving objects from the database where the type is not known beforehand.

A factory has a bit of a schizophrenic nature: on the client-side it 'links' to an ExternalDatabase, while on the server-side it does so to the Database that holds the instances that the factory creates. Note however that a factory running inside an Ozone server can also be linked to an External database outside that server (userclient -> server A -> server B). In that case such a factory would be 'linked' to an ExternalDatabase.

The idea behind factories is threefold:

The differences in client side and server side operation are: