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

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

Serving Software Downloads in 956 Categories, Downloaded 50.185.361 Times

Myco::Entity 1.22

  Date Added: March 05, 2010  |  Visits: 947

Myco::Entity

Report Broken Link
Printer Friendly Version


Product Homepage
Download (89 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
Link Indexing  -  Free for all Links 2.2
Free For All Links script allows you to set up a web page where your user can add links in various categories.Newest links are added to the top of each category. A running total of the number of links present as well as the time when the last link...
 
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  -  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  -  Rudiments 0.30
Rudiments is a C++ class library providing base classes for things such as daemons, clients, and servers, and wrapper classes for the standard C functions for things like semaphores, regular expressions, and signal handling. In the early days of...
593.92 KB  
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  
Libraries  -  CL-PDF 2.1
CL-PDF is a cross-platform Common Lisp library for generating PDF files. It does not need any third-party tools from Adobe or others. It is used by cl-typesetting to provide a complete typesetting system..
696.32 KB  
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  
Audio Tools  -  Jakuk 1.2
Jajuk is a Java music organizer for all platforms. The main goal of this project is to provide a fully-featured application to advanced users with large or scattered music collections. Jajuk supports MP3, OGG Vorbis, AU, AIFF, WAV and SPEEX audio...
10.2 MB  
Arcade Style Games  -  KBall Final 2004
KBall is a game of skill and reflexes, non violent, suitable for all ages. The idea is to move a ball around the map, without falling, without running out of time, and getting the prizes, in order to reach the exit. The map has different...
68.61 KB  
Networking Tools  -  vHost 3.31r1
vHost is a one-step solution for all virtual hosting needs. It enables a Linux/BSD server with single or multiple IP addresses to function as unlimited virtual hosts with HTTP, FTP, SMTP, POP3, IMAP, and other virtual services extendible via...
256 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
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  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.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...
3.88 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