|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.server.repository.structures.Statement
public class Statement
Provides read and write access to a statement stored in the repository as well as the the statement's uri Statement data is cached in memory and is not persisted to the repository until commit is called or a batch commit (via the Batchable interface) is performed.
Batchable| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.openanzo.jdbc.utils.batchable.Batchable |
|---|
Batchable.BatchGroup, Batchable.BatchOperation, Batchable.BatchOperationSet, Batchable.NullBatch |
| Field Summary |
|---|
| Fields inherited from interface org.openanzo.jdbc.utils.batchable.Batchable |
|---|
EMPTY_BATCH |
| Method Summary | |
|---|---|
void |
commit()
Commit the changes for this statement into the database threw a BatchExecutor |
static Statement |
createStatement(RepositoryConnection repositoryConnection,
org.openrdf.model.Statement statement,
java.lang.Long modified,
java.lang.Long namedGraphId)
Create a new Statement for provided data |
java.lang.Long |
getId()
Get unique ID for this statement |
java.lang.Long |
getModified()
Get the timestamp when this statement was modified |
java.lang.Long |
getNamedGraphId()
Get the ID for the NamedGraph that this statement belongs |
org.openrdf.model.Statement |
getStatement()
Get the Anzo statement object |
boolean |
isStored()
Is this statement stored in the database |
java.util.List<Batchable.BatchOperation> |
listBatchOperations()
Get the current list of batch operations for this object |
void |
remove(java.lang.Long modified)
Remove this statement from the database at the given timestamp |
static java.util.List<Statement> |
selectAllStatements(RepositoryConnection repositoryConnection,
boolean includeInferredStatements)
Returns a list of all Statements in the statements table. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static Statement createStatement(RepositoryConnection repositoryConnection,
org.openrdf.model.Statement statement,
java.lang.Long modified,
java.lang.Long namedGraphId)
throws AnzoException
repositoryConnection - Repository connection to run queries againststatement - Statement containing statement datamodified - Timestamp when statement was creatednamedGraphId - ID for NamedGraph that this statement belongs
AnzoExceptionpublic boolean isStored()
public java.lang.Long getId()
public void remove(java.lang.Long modified)
modified - Timestamp when statement was removedpublic java.lang.Long getModified()
public java.lang.Long getNamedGraphId()
public static java.util.List<Statement> selectAllStatements(RepositoryConnection repositoryConnection,
boolean includeInferredStatements)
throws AnzoException
repositoryConnection - connection to databaseincludeInferredStatements - include inferred statements in the list
AnzoException
public void commit()
throws RdbException
RdbExceptionpublic java.util.List<Batchable.BatchOperation> listBatchOperations()
Batchable
listBatchOperations in interface Batchablepublic java.lang.String toString()
toString in class java.lang.Objectpublic org.openrdf.model.Statement getStatement()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||