org.openanzo.jastor
Class DatasetThingFactory

java.lang.Object
  extended by org.openanzo.jastor.DatasetThingFactory
Direct Known Subclasses:
OWL11Factory, RDFSFactory

public class DatasetThingFactory
extends java.lang.Object

A basic factory that provides create methods for building block OWL types.

Author:
Joe Betz, Ben Szekely (bhszekel@us.ibm.com)

Field Summary
static AnzoValueFactory valueFactory
          Reference to static Anzo valueFactory
 
Constructor Summary
DatasetThingFactory()
           
 
Method Summary
static void clearCache()
          Remove all objects from static cache of this factory.
static void clearCaches(java.lang.Class<DatasetThing> type)
          Clear the property caches of the individual objects cached in this factory.
static DatasetThing createDatasetThing(org.openrdf.model.Resource resource, org.openrdf.model.URI _namedGraphUri, IDataset dataset)
          Create a new DatasetThing if one doesn't already exist
static DatasetThing createDatasetThing(java.lang.String uri, org.openrdf.model.URI _namedGraphUri, IDataset dataset)
          Create a new DatasetThing if one doesn't already exist
static DatasetThing getDatasetThing(org.openrdf.model.Resource resource, org.openrdf.model.URI _namedGraphUri, IDataset dataset)
          Create a new DatasetThing if one doesn't already exist
static DatasetThing getDatasetThing(java.lang.String uri, org.openrdf.model.URI _namedGraphUri, IDataset dataset)
          Create a new DatasetThing if one doesn't already exist
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

valueFactory

public static AnzoValueFactory valueFactory
Reference to static Anzo valueFactory

Constructor Detail

DatasetThingFactory

public DatasetThingFactory()
Method Detail

createDatasetThing

public static DatasetThing createDatasetThing(org.openrdf.model.Resource resource,
                                              org.openrdf.model.URI _namedGraphUri,
                                              IDataset dataset)
                                       throws JastorException
Create a new DatasetThing if one doesn't already exist

Parameters:
resource - Resource of object
_namedGraphUri - NamedGraph's URI where resource resides
dataset - Dataset containing data
Returns:
new DatasetThingImpl
Throws:
JastorException - if dataset or resource parameter is null

createDatasetThing

public static DatasetThing createDatasetThing(java.lang.String uri,
                                              org.openrdf.model.URI _namedGraphUri,
                                              IDataset dataset)
                                       throws JastorException
Create a new DatasetThing if one doesn't already exist

Parameters:
uri - String representation of Resource for object
_namedGraphUri - NamedGraph's URI where resource resides
dataset - Dataset containing data
Returns:
new DatasetThingImpl
Throws:
JastorException - if dataset or uri parameter is null

getDatasetThing

public static DatasetThing getDatasetThing(org.openrdf.model.Resource resource,
                                           org.openrdf.model.URI _namedGraphUri,
                                           IDataset dataset)
                                    throws JastorException
Create a new DatasetThing if one doesn't already exist

Parameters:
resource - Resource of object
_namedGraphUri - NamedGraph's URI where resource resides
dataset - Dataset containing data
Returns:
new DatasetThingImpl
Throws:
JastorException - if dataset or resource parameter is null

getDatasetThing

public static DatasetThing getDatasetThing(java.lang.String uri,
                                           org.openrdf.model.URI _namedGraphUri,
                                           IDataset dataset)
                                    throws JastorException
Create a new DatasetThing if one doesn't already exist

Parameters:
uri - String representation of Resource for object
_namedGraphUri - NamedGraph's URI where resource resides
dataset - Dataset containing data
Returns:
new DatasetThingImpl
Throws:
JastorException - if dataset or uri parameter is null

clearCache

public static void clearCache()
Remove all objects from static cache of this factory.


clearCaches

public static void clearCaches(java.lang.Class<DatasetThing> type)
Clear the property caches of the individual objects cached in this factory.

Parameters:
type - if not null, clear caches of objects of this type only


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.