Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.872.788 Times

Myco::Entity 1.22

  Date Added: March 05, 2010  |  Visits: 634

Myco::Entity

Report Broken Link
Printer Friendly Version


Product Homepage
Download (73 downloads)



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..

Requirements: No special requirements
Platforms: Linux
Keyword: Base Class Class Common Common Base Entity For All Libraries Myco Mycoentity Object Programming Value
Users rating: 0/10

License: Freeware Size: 102.4 KB
USER REVIEWS
More Reviews or Write Review


MYCO::ENTITY RELATED
Libraries  -  MyPageKit::Common 1.18
MyPageKit::Common is a Perl model class containing code common across site. This class contains methods that are common across the site, such as authentication and session key generation. This particular class is an example class that is used...
133.12 KB  
Libraries  -  Class::Cloneable 0.03
Class::Cloneable is a base class for Cloneable objects. SYNOPSIS package MyObject; our @ISA = (Class::Cloneable); # calling clone on an instance of MyObject # will give you full deep-cloning functionality This module provides a flexible...
8.19 KB  
Libraries  -  AxKit2::Plugin 1.1
AxKit2::Plugin is a base class for all plugins. An AxKit2 plugin allows you to hook into various parts of processing requests and modify the behaviour of that request. This class is the base class for all plugins and this document covers both...
645.12 KB  
Libraries  -  Persistent::Base 0.52
Persistent::Base is an Abstract Persistent Base Class. SYNOPSIS ### we are a subclass of ... ### use Persistent::Base; @ISA = qw(Persistent::Base); ABSTRACT This is an abstract class used by the Persistent framework of classes to...
38.91 KB  
Libraries  -  XML::SAX::Base 1.02
XML::SAX::Base is a base Perl class with SAX Drivers and Filters. SYNOPSIS package MyFilter; use XML::SAX::Base; @ISA = (XML::SAX::Base); This module has a very simple task - to be a base class for PerlSAX drivers and filters. Its default...
20.48 KB  
Libraries  -  Curses::UI::Widget 0.95
Curses::UI::Widget is a base class for all widgets. CLASS HIERARCHY Curses::UI::Widget - base class SYNOPSIS This class is not used directly by somebody who is building an application using Curses::UI. Its a base class that is expanded by...
143.36 KB  
Libraries  -  Games::AlphaBeta::Position 0.4.6
Games::AlphaBeta::Position is a base Position class for use with Games::AlphaBeta. SYNOPSIS package My::GamePos; use base qw(Games::AlphaBeta::Position); sub apply { ... } sub endpos { ... } # optional sub evaluate { ... } sub findmoves...
12.29 KB  
Miscellaneous  -  AbstractFactory 1.0
This script has a base Factory class that is meant to be subclassed and then define a default implementation to return, as well as module's to search for the class implementation.
 
Utilities  -  SLAX Frodo Edition 5.1.8
SLAX Frodo edition is the console base for all other SLAX releases. SLAX Frodo Edition doesnt contain almost anything, only full working Linux command prompt and drivers. Some people prefer modified versions of SLAX, designed to provide some...
53 MB  
Audio Tools  -  SmartTagFix 0.1
SmartTagFix is a simple utility that fills in missing ID3 tags for all MP3s within a directory structure. It uses the file name, directory name, and a bit of "common sense" to guess the correct labels. Most MP3 players depend on the id3 tag to...
358.4 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.11.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
2.73 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB