File: Remote.pod

package info (click to toggle)
libtangram-perl 2.04-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 572 kB
  • ctags: 495
  • sloc: perl: 5,061; makefile: 36
file content (23 lines) | stat: -rw-r--r-- 669 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
=head1 NAME

Tangram::Remote - represent persistent objects in client space

=head1 SYNOPSIS

   use Tangram;

   $remote = $storage->remote( $class );
   @remotes = $storage->remote( @classes );

   ... $remote->{$field} ...

=head1 DESCRIPTION

A Remote object is a client-side representation of an object that
resides in a database.  It has the same fields as a normal object of
the same class - as declared in the Schema associated to the database
the Remote was obtained from.  The values of the fields are not normal
Perl values, but L<Tangram::Expr>s that will be evaluated on the
database server side.

Remote objects are somewhat similar to SQL table aliases.