NAME
DBIx::Jello::Class - persisted DBIx::Jello-based classes
DESCRIPTION
You don't use DBIx::Jello::Class directly, you'll be given subclasses of it from DBIx::Jello proper.
CLASS METHODS
Your generated classes will have the following methods
- dbh()
-
returns the dbh we're connected to
- table()
-
returns the table name in the database.
- new( key => value, key => value )
-
Create a new instance of this class. Any key/value pairs will be used as the initial state of the instance.
- retrieve(id)
-
retrieve an instance of the class by ID
- search( ... )
-
Search for instances
INSTANCE METHODS
- id
-
returns the (read-only) ID of the instance
- get( param )
-
returns the value of the named parameter of the instance
- set( param, value [ param, value, param, value ... ] )
-
sets the named param to the passed value. Can be passed a hash to set many params.
AUTOLOAD
DBIx::Jello::Class objects provide an AUTOLOAD method that can get/set any parameter. Just call $instance->foo( 'bar' ) to set the 'foo' param to 'bar', and $instance->foo() to get the value of the foo param.
AUTHOR
Tom Insam <tom@jerakeen.org>