ORDB::CPANTS::Prereq - ORDB::CPANTS class for the prereq table
TO BE COMPLETED
# Returns 'ORDB::CPANTS'
my $namespace = ORDB::CPANTS::Prereq->base;
Normally you will only need to work directly with a table class,
and only with one ORLite package.
However, if for some reason you need to work with multiple ORLite packages
at the same time without hardcoding the root namespace all the time, you
can determine the root namespace from an object or table class with the
# Returns 'prereq'
While you should not need the name of table for any simple operations,
from time to time you may need it programatically. If you do need it,
you can use the C
method to get the table name.
my $object = ORDB::CPANTS::Prereq->load( $id );
If your table has single column primary key, a C method will be
generated in the class. If there is no primary key, the method is not
The C method provides a shortcut mechanism for fetching a single
object based on the value of the primary key. However it should only
be used for cases where your code trusts the record to already exists.
It returns a C object, or throws an exception if the
object does not exist.
# Get all objects in list context
my @list = ORDB::CPANTS::Prereq->select;
# Get a subset of objects in scalar context
my $array_ref = ORDB::CPANTS::Prereq->select(
'where id > ? order by id',