NAME
OpenERP::OOM::Schema
SYNOPSYS
DESCRIPTION
METHODS
class
Provides the OpenERP::OOM::Class class object requested. This will load the class into memory.
my $accounts = $schema->class('Accounts');
timeout
Set the timeout - passes through to the $self->client->openerp_rpc->timeout() method underneath.
PROPERTIES
openerp_connect
This should be populated with a hash of the OpenERP connection details.
<openerp_connect>
username admin
password admin
dbname company-database
host openerp-server
</openerp_connect>
link_provider
Out of the box the links to the external database are generated each time the link is followed. It's generally a good idea to provide your own provider that provides a cached connection for the link.
NOTE: this could do with more detail to explain it better.
link_config
This is the configuration for the externals links. Typcially it is setup with the connection information if the default link provider is used. If another link provider is provided this won't be necessary.
client
The XMLRPC client that talks to OpenERP.
link
Provides a link to another part of the database.
$schema->link('DBIC')
provide_link
A default implementation of a link provider that loads up an OpenERP::OOM::Link::$class on the fly. This is slow so you normally don't want to use this.
COPYRIGHT & LICENSE
Copyright (C) 2011 OpusVL
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.