it.amattioli.dominate
Interface OptLockEntity<I extends Serializable>

Show UML class diagram
Type Parameters:
I - The entity id property class
All Superinterfaces:
Entity<I>
All Known Implementing Classes:
EntityImpl

public interface OptLockEntity<I extends Serializable>
extends Entity<I>

This interface adds to Entity another property, called version, that can be used for optimistic lock purposes.

Author:
a.mattioli

Method Summary
 Long getVersion()
           
 void setVersion(Long version)
           
 
Methods inherited from interface it.amattioli.dominate.Entity
getId, setId
 

Method Detail

getVersion

Long getVersion()

setVersion

void setVersion(Long version)


Copyright © 2011. All Rights Reserved.