NAME

DBIx::ObjectMapper::Session

SYNOPSIS

my $session = $mapper->begin_session;

DESCRIPTION

METHODS

new

create a new session instance.

ATTRIBUTES

  • engine

    a engine object which subclass of DBIx::ObjectMapper::Engine.

  • autocommit

    Defaults to True. the session will commit changes to the engine after destroy the session object.

    if False, you call "commit" methods, then the session will commit changes to the engine,

  • autoflush

  • share_object

  • no_cache

  • cache

  • search_class

  • change_checker

uow

accessor for a DBIx::ObjectMapper::Session::UnitOfWork object.

engine

accessor for a engine object.

autocommit

autoflush

add

Place an object in the Session.

add_all

Add the list of objects to this Session.

delete

Mark a object as deleted. The database delete operation occurs on flush().

detach

Remove the object from this Session.

get

flush

Flush all the object changes to the database.

commit

Flush pending changes and commit the current transaction.

rollback

rollback the current transaction.

start_transaction

txn

transaction

AUTHOR

Eisuke Oishi

COPYRIGHT

Copyright 2010 Eisuke Oishi

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.