org.apache.lenya.transaction
Interface Versionable

All Superinterfaces:
Lockable
All Known Subinterfaces:
Transactionable

public interface Versionable
extends Lockable

A versionable object.

Version:
$Id: Versionable.java 567462 2007-08-19 20:31:38Z andreas $

Method Summary
 void checkin()
          Checks the object in.
 void checkout()
          Checks the object out.
 boolean hasChanged()
          Checks if the object has been changed since it has been locked.
 boolean isCheckedOut()
           
 boolean isCheckedOutBySession()
           
 
Methods inherited from interface org.apache.lenya.transaction.Lockable
getLock, isLocked, lock, unlock
 

Method Detail

checkin

void checkin()
             throws TransactionException
Checks the object in.

Throws:
TransactionException - if an error occurs.

checkout

void checkout()
              throws TransactionException
Checks the object out.

Throws:
TransactionException - if an error occurs.

isCheckedOut

boolean isCheckedOut()
                     throws TransactionException
Returns:
if the object is checked out.
Throws:
TransactionException - if an error occurs.

isCheckedOutBySession

boolean isCheckedOutBySession()
                              throws TransactionException
Returns:
if the object is checked out by its session.
Throws:
TransactionException - if an error occurs.

hasChanged

boolean hasChanged()
                   throws TransactionException
Checks if the object has been changed since it has been locked.

Returns:
A boolean value.
Throws:
TransactionException - if an error occurs.


Copyright © 1999-2006 Apache Software Foundation. All Rights Reserved.