Sha256: dd78b0e769cd277d042111e4bb54af5dd12e566c1f612e438ff2ffb822c48587
Contents?: true
Size: 1.66 KB
Versions: 3
Compression:
Stored size: 1.66 KB
Contents
module Neo4j module Core module Node # Delete the node and all its relationship. # # It might raise an exception if this method was called without a Transaction, # or if it failed to delete the node (it maybe was already deleted). # # If this method raise an exception you may also get an exception when the transaction finish. # This method is defined in the Java::OrgNeo4jKernel::impl.core.NodeProxy which is return by Neo4j::Node.new # # @return nil or raise an exception def del _rels.each { |r| r.del } delete nil end # This method can be used to access the none wrapped neo4j node/relationship java object. # Notice that this method is defined in the Java::OrgNeo4jKernel::impl.core.NodeProxy or RelationshipProxy which is return by Neo4j::Node.new # @return the java node/relationship object representing this object unless it is already the java object. def _java_node self end # Same as Neo4j::Node#exist? or Neo4j::Relationship#exist? # @return [true, false] if the node exists in the database def exist? Neo4j::Node.exist?(self) end # Tries to load the wrapper object for this node by calling the class #wrapper method. # This allows you to create a custom Ruby wrapper class around the Neo4j::Node. # This is for example done in the <tt>neo4j<//t> ruby gem <tt>Neo4j::NodeMixin</tt> # @return a wrapper object or self def wrapper self.class.respond_to?(:wrapper) ? self.class.wrapper(node) : self end def class Neo4j::Node end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
neo4j-core-0.0.2-java | lib/neo4j-core/node/node.rb |
neo4j-core-0.0.1-java | lib/neo4j-core/node/node.rb |
neo4j-core-2.0.0.alpha.1-java | lib/neo4j-core/node/node.rb |