public class DatabaseReadOnlyNetwork extends DatabaseNetwork
MAX_SIZE, MAX_TEXT| Constructor and Description |
|---|
DatabaseReadOnlyNetwork(javax.persistence.EntityManager entityManager,
boolean isShortTerm) |
| Modifier and Type | Method and Description |
|---|---|
void |
addVertex(Vertex vertex)
Add the existing vertex to the network.
|
Vertex |
createVertex(java.lang.Object data)
Find the exiting vertex, or create a temporary one for primitives.
|
int |
executeNativeQuery(java.lang.String sql)
Execute and commit the native query.
|
int |
executeQuery(java.lang.String jpql)
Execute and commit the update query.
|
Vertex |
findByData(java.lang.Object data)
Return the vertex with the given data.
|
Vertex |
findById(java.lang.Number id)
Return the vertex with the given name.
|
Data |
findData(Data data)
Return the lob data.
|
boolean |
isReadOnly() |
void |
merge(Network network)
Merge the vertices and relations of the network into this network.
|
void |
removeProperty(java.lang.String propertyName)
Remove the property setting to the current transaction.
|
void |
removeRelationship(Relationship relationship)
Remove the relationship from the network.
|
void |
removeVertex(Vertex vertex)
Remove the vertex from the network.
|
void |
removeVertexAndReferences(Vertex vertex)
Remove the vertex and all references to it from the network.
|
void |
resume()
Resume the network after a save.
|
void |
save()
Commit memory to the database.
|
void |
saveProperty(java.lang.String propertyName,
java.lang.String value,
boolean startup)
Save the property setting to the current transaction.
|
void |
setHints(javax.persistence.Query query) |
allActive, clear, countAll, countAllLike, findAll, findAll, findAllInstances, findAllLike, findAllLike, findAllQuery, findAllQuery, findAllQuery, findAllRelationshipsTo, findAllRelationshipsTo, findAllRelationshipsTo, findByName, findByNativeQuery, getCriteriaBuilder, getEntityManager, getParent, resetSize, search, setEntityManager, setParent, sizeassociateCaseInsensitivity, associateCaseInsensitivity, checkReduction, clone, createAnonymousSpeaker, createFormula, createFragment, createInstance, createInstance, createMeta, createName, createNewObject, createObject, createParagraph, createParagraph, createPattern, createPattern, createPrimitive, createSentence, createSentence, createSentence, createSentence, createSpeaker, createTemplate, createTemporyVertex, createTimestamp, createUniqueSpeaker, createVertex, createVertex, createWord, getBot, getVerticesByData, importMerge, importVertex, isShortTerm, merge, parseFragment, setBot, setShortTerm, toStringpublic DatabaseReadOnlyNetwork(javax.persistence.EntityManager entityManager,
boolean isShortTerm)
public boolean isReadOnly()
isReadOnly in interface NetworkisReadOnly in class AbstractNetworkpublic void resume()
resume in interface Networkresume in class DatabaseNetworkpublic int executeNativeQuery(java.lang.String sql)
executeNativeQuery in interface NetworkexecuteNativeQuery in class DatabaseNetworkpublic int executeQuery(java.lang.String jpql)
executeQuery in interface NetworkexecuteQuery in class DatabaseNetworkpublic void save()
save in interface Networksave in class DatabaseNetworkpublic void addVertex(Vertex vertex)
addVertex in interface NetworkaddVertex in class DatabaseNetworkpublic Vertex createVertex(java.lang.Object data)
createVertex in interface NetworkcreateVertex in class AbstractNetworkpublic void saveProperty(java.lang.String propertyName,
java.lang.String value,
boolean startup)
saveProperty in interface NetworksaveProperty in class DatabaseNetworkpublic void removeProperty(java.lang.String propertyName)
removeProperty in interface NetworkremoveProperty in class DatabaseNetworkpublic void removeVertex(Vertex vertex)
removeVertex in interface NetworkremoveVertex in class DatabaseNetworkpublic void removeVertexAndReferences(Vertex vertex)
removeVertexAndReferences in interface NetworkremoveVertexAndReferences in class DatabaseNetworkpublic void removeRelationship(Relationship relationship)
removeRelationship in interface NetworkremoveRelationship in class DatabaseNetworkpublic void setHints(javax.persistence.Query query)
setHints in class DatabaseNetworkpublic Vertex findByData(java.lang.Object data)
findByData in interface NetworkfindByData in class DatabaseNetworkpublic Vertex findById(java.lang.Number id)
findById in interface NetworkfindById in class DatabaseNetworkpublic Data findData(Data data)
findData in interface NetworkfindData in class DatabaseNetworkpublic void merge(Network network)
merge in interface Networkmerge in class DatabaseNetwork