Myco::Entity 1.22
Sponsored Links
Myco::Entity 1.22 Ranking & Summary
File size:
0.10 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
640
Date added:
2006-10-20
Publisher:
Charles Owens
Myco::Entity 1.22 description
Myco::Entity is a common base class for all Myco entity classes.
SYNOPSIS
### Entity class definition
package Myco::Foo;
use base qw(Myco::Entity);
# Start building metadata
my $metadata = Myco::Entity::Meta->new
( name => __PACKAGE__,
tangram => { table => Foo }
);
$metadata->add_attribute(name => attr1, type => string);
$metadata->add_attribute(name => attr2, type => string);
# class-specific methods defined ...
#
# Fill in $schema with all added_attributes and discover other metadata
$metadata->activate_class;
### Entity class usage
use Myco::Foo;
# Constructor
$obj = Myco::Foo->new;
$obj = Myco::Foo->new(attr1 => value, attr2 => value);
# Access class metadata (see Myco::Entity::Meta)
$meta = Myco::Foo->introspect;
$meta = $obj->introspect;
# Accessors
$obj->get_attr1; # get attribute value
$obj->set_attr1(value); # set attribute value
# Instance methods
$id = $obj->save; # update objects state in persistent
# storage, create new record if needed;
# returns objects Tangram id
$obj->destroy;
$obj->modify(attr1 => val, attr2 => val);
$object_id = $obj->id;
$obj->is_transient; # returns true if object is in Tangram
# transient storage
## object retrieval (see class Myco documentation
# for full detail)
$obj = Myco->load($object_id);
# fetch all objects of given type
@objects = Myco->select(ref $obj);
Provides, via inheritence, common interface in support of basic lifecycle needs for myco entity objects.
This is accomplished through the encapsulation of the CPAN module Class::Tangram which provides a basis for "in-memory" object behavior. Consult its documentation for details on schema definition syntax, getter/setter behavior, check functions, etc.
The common interface for object persistence behavior (referred within myco as "transaction" behavior) is provided through defintion of a handful of related instance methods. This is done with reliance on the services of the class Myco, which encapsulates the functionality of Tangram::Storage and provides system-wide connection handling.
SYNOPSIS
### Entity class definition
package Myco::Foo;
use base qw(Myco::Entity);
# Start building metadata
my $metadata = Myco::Entity::Meta->new
( name => __PACKAGE__,
tangram => { table => Foo }
);
$metadata->add_attribute(name => attr1, type => string);
$metadata->add_attribute(name => attr2, type => string);
# class-specific methods defined ...
#
# Fill in $schema with all added_attributes and discover other metadata
$metadata->activate_class;
### Entity class usage
use Myco::Foo;
# Constructor
$obj = Myco::Foo->new;
$obj = Myco::Foo->new(attr1 => value, attr2 => value);
# Access class metadata (see Myco::Entity::Meta)
$meta = Myco::Foo->introspect;
$meta = $obj->introspect;
# Accessors
$obj->get_attr1; # get attribute value
$obj->set_attr1(value); # set attribute value
# Instance methods
$id = $obj->save; # update objects state in persistent
# storage, create new record if needed;
# returns objects Tangram id
$obj->destroy;
$obj->modify(attr1 => val, attr2 => val);
$object_id = $obj->id;
$obj->is_transient; # returns true if object is in Tangram
# transient storage
## object retrieval (see class Myco documentation
# for full detail)
$obj = Myco->load($object_id);
# fetch all objects of given type
@objects = Myco->select(ref $obj);
Provides, via inheritence, common interface in support of basic lifecycle needs for myco entity objects.
This is accomplished through the encapsulation of the CPAN module Class::Tangram which provides a basis for "in-memory" object behavior. Consult its documentation for details on schema definition syntax, getter/setter behavior, check functions, etc.
The common interface for object persistence behavior (referred within myco as "transaction" behavior) is provided through defintion of a handful of related instance methods. This is done with reliance on the services of the class Myco, which encapsulates the functionality of Tangram::Storage and provides system-wide connection handling.
Myco::Entity 1.22 Screenshot
Myco::Entity 1.22 Keywords
Entity 1.22
For All
entity classes
Common base
base class
class
Myco
entity
object
common
base
Myco::Entity
MycoEntity
Myco::Entity 1.22
Libraries
Programming
Bookmark Myco::Entity 1.22
Myco::Entity 1.22 Copyright
WareSeeker periodically updates pricing and software information of Myco::Entity 1.22 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Myco::Entity 1.22 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
world baseball classic
classic industries
classified ads
classmates
for all mankind
classic auto trader
entity relationship
mycoke
classical guitar
custom entity classes
abstract base class
common base amplifier
for all seasons
gym class heroes
entity hantu
classzone
for all mankind jeans
mycokerewards
Related Software
Myco::Devel is a Perl module for myco Developers Guide. Free Download
Myco is a Perl module that contains the myco object framework. Free Download
XML::Mini::TreeComponent is a Perl implementation of the XML::Mini TreeComponent API. Free Download
C++ base is a base class suite contains several powerful c++ base classes for basic encapsulation. Free Download
omniORB is an Object Request Broker (ORB) which implements version 2.6 of the Common Object Request Broker Architecture (CORBA). Free Download
SWF::Element is a set of classes of SWF tags and elements. Free Download
MyPageKit::Common is a Perl model class containing code common across site. Free Download
CMU Common Lisp is a common Lisp compiler and runtime Free Download
Latest Software
Popular Software
Favourite Software