org.openanzo.server.repository.indexer
Class StatementWrapper

java.lang.Object
  extended by org.openanzo.server.repository.indexer.StatementWrapper

public class StatementWrapper
extends java.lang.Object

Utility class for wrapping statements to be indexed.

Author:
Wing Yung (wingyung@us.ibm.com)

Constructor Summary
StatementWrapper(java.lang.Long graphId, java.lang.Long subjectId, java.lang.Long predicateId, java.lang.Long objectId, java.lang.Long modified)
          Create a new StatementWrapper
StatementWrapper(org.openrdf.model.URI graphURI, java.lang.Long graphId, org.openrdf.model.Resource subject, java.lang.Long subjectId, org.openrdf.model.URI predicate, java.lang.Long predicateId, org.openrdf.model.Value object, java.lang.Long objectId, java.lang.Long modified)
          Create a new StatementWrapper
 
Method Summary
 java.lang.Long getGraphId()
          Get the NamedGraph URI ID
 org.openrdf.model.URI getGraphURI()
          Get the NamedGraph URI
 java.lang.String getId()
          Get the ID of this statement
 java.lang.Long getModified()
          Get the modification timestamp
 org.openrdf.model.Value getObject()
          Get the statements object
 java.lang.Long getObjectId()
          Get the Object ID
 org.openrdf.model.URI getPredicate()
          Get the statements predicate
 java.lang.Long getPredicateId()
          Get the predicate ID
 org.openrdf.model.Statement getStatement()
          Get a Statement representation of this wrapper
 org.openrdf.model.Resource getSubject()
          Get the statements subject
 java.lang.Long getSubjectId()
          Get the subject ID
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StatementWrapper

public StatementWrapper(org.openrdf.model.URI graphURI,
                        java.lang.Long graphId,
                        org.openrdf.model.Resource subject,
                        java.lang.Long subjectId,
                        org.openrdf.model.URI predicate,
                        java.lang.Long predicateId,
                        org.openrdf.model.Value object,
                        java.lang.Long objectId,
                        java.lang.Long modified)
Create a new StatementWrapper

Parameters:
graphURI - NamedGraph's URI
graphId - ID of NamedGraph's URI
subject - Subject of statement
subjectId - ID of subject
predicate - Predicate of statement
predicateId - ID of predicate
object - Object of statement
objectId - ID of object
modified - Timestamp of modifiction

StatementWrapper

public StatementWrapper(java.lang.Long graphId,
                        java.lang.Long subjectId,
                        java.lang.Long predicateId,
                        java.lang.Long objectId,
                        java.lang.Long modified)
Create a new StatementWrapper

Parameters:
graphId - ID of NamedGraph's URI
subjectId - ID of subject
predicateId - ID of predicate
objectId - ID of object
modified - Timestamp of modifiction
Method Detail

getStatement

public org.openrdf.model.Statement getStatement()
Get a Statement representation of this wrapper

Returns:
a Statement representation of this wrapper

getId

public java.lang.String getId()
Get the ID of this statement

Returns:
the ID of this statement

getObject

public org.openrdf.model.Value getObject()
Get the statements object

Returns:
the statements object

getPredicate

public org.openrdf.model.URI getPredicate()
Get the statements predicate

Returns:
the statements predicate

getSubject

public org.openrdf.model.Resource getSubject()
Get the statements subject

Returns:
the statements subject

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getGraphURI

public org.openrdf.model.URI getGraphURI()
Get the NamedGraph URI

Returns:
the NamedGraph URI

getObjectId

public java.lang.Long getObjectId()
Get the Object ID

Returns:
the Object ID

getModified

public java.lang.Long getModified()
Get the modification timestamp

Returns:
the modification timestamp

getGraphId

public java.lang.Long getGraphId()
Get the NamedGraph URI ID

Returns:
the NamedGraph URI ID

getPredicateId

public java.lang.Long getPredicateId()
Get the predicate ID

Returns:
the predicate ID

getSubjectId

public java.lang.Long getSubjectId()
Get the subject ID

Returns:
the subject ID


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