Nano::Node

Persistable Entity

Persistable Entity Super Class

method: drop method: load method: save method: serialize

use Nano::Node;

my $node = Nano::Node->new(
  id => '0000001',
);

# $node->save;

Nano::Types

id: ro, opt, Str nano: ro, opt, Nano

This package provides a persistable entity super class. It is meant to be subclassed but can be used directly as well.

The drop method removes the prior persisted object data.

drop() : Object

=example-1 drop

# given: synopsis

$node = $node->drop;

The load method reloads and returns an object from source.

load() : Object

=example-1 load

# given: synopsis

$node->save;

$node = $node->load;

The save method commits the object data to the storage backend.

save() : Str

=example-1 save

# given: synopsis

my $term = $node->save;

The serialize method returns a persistence representaton of the invocant. Circular dependencies can result in a deep recursion error, however, circular dependencies can be persisted if modeled properly. Note: blessed objects which are neither Nano::Node nor Nano::Nodes will be ignored.

serialize() : HashRef

=example-1 serialize

# given: synopsis

my $serial = $node->serialize;

16 POD Errors

The following errors were encountered while parsing the POD:

Around line 10:

Unknown directive: =name

Around line 16:

Unknown directive: =tagline

Around line 22:

Unknown directive: =abstract

Around line 28:

Unknown directive: =includes

Around line 37:

Unknown directive: =synopsis

Around line 49:

Unknown directive: =libraries

Around line 55:

Unknown directive: =attributes

Around line 62:

Unknown directive: =description

Around line 69:

Unknown directive: =method

Around line 73:

Unknown directive: =signature

Around line 85:

Unknown directive: =method

Around line 89:

Unknown directive: =signature

Around line 103:

Unknown directive: =method

Around line 107:

Unknown directive: =signature

Around line 119:

Unknown directive: =method

Around line 126:

Unknown directive: =signature