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, size
associateCaseInsensitivity, 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, toString
public DatabaseReadOnlyNetwork(javax.persistence.EntityManager entityManager, boolean isShortTerm)
public boolean isReadOnly()
isReadOnly
in interface Network
isReadOnly
in class AbstractNetwork
public void resume()
resume
in interface Network
resume
in class DatabaseNetwork
public int executeNativeQuery(java.lang.String sql)
executeNativeQuery
in interface Network
executeNativeQuery
in class DatabaseNetwork
public int executeQuery(java.lang.String jpql)
executeQuery
in interface Network
executeQuery
in class DatabaseNetwork
public void save()
save
in interface Network
save
in class DatabaseNetwork
public void addVertex(Vertex vertex)
addVertex
in interface Network
addVertex
in class DatabaseNetwork
public Vertex createVertex(java.lang.Object data)
createVertex
in interface Network
createVertex
in class AbstractNetwork
public void saveProperty(java.lang.String propertyName, java.lang.String value, boolean startup)
saveProperty
in interface Network
saveProperty
in class DatabaseNetwork
public void removeProperty(java.lang.String propertyName)
removeProperty
in interface Network
removeProperty
in class DatabaseNetwork
public void removeVertex(Vertex vertex)
removeVertex
in interface Network
removeVertex
in class DatabaseNetwork
public void removeVertexAndReferences(Vertex vertex)
removeVertexAndReferences
in interface Network
removeVertexAndReferences
in class DatabaseNetwork
public void removeRelationship(Relationship relationship)
removeRelationship
in interface Network
removeRelationship
in class DatabaseNetwork
public void setHints(javax.persistence.Query query)
setHints
in class DatabaseNetwork
public Vertex findByData(java.lang.Object data)
findByData
in interface Network
findByData
in class DatabaseNetwork
public Vertex findById(java.lang.Number id)
findById
in interface Network
findById
in class DatabaseNetwork
public Data findData(Data data)
findData
in interface Network
findData
in class DatabaseNetwork
public void merge(Network network)
merge
in interface Network
merge
in class DatabaseNetwork