org.ujorm.implementation.orm
Class OrmTableLockable<U extends OrmTableLockable>

java.lang.Object
  extended by org.ujorm.extensions.SuperAbstractUjo
      extended by org.ujorm.extensions.AbstractUjo
          extended by org.ujorm.implementation.quick.QuickUjo
              extended by org.ujorm.implementation.orm.OrmTable<U>
                  extended by org.ujorm.implementation.orm.OrmTableLockable<U>
All Implemented Interfaces:
Serializable, UjoCloneable, UjoLockable, UjoTextable, ExtendedOrmUjo<U>, OrmUjo, Ujo

public abstract class OrmTableLockable<U extends OrmTableLockable>
extends OrmTable<U>
implements UjoLockable

An abstract implementation of the OrmUjo with an object locking support.

Since:
Ujorm 1.48
See Also:
Serialized Form

Constructor Summary
OrmTableLockable()
           
 
Method Summary
 void lock()
          
 boolean readOnly()
          
 void writeValue(Key<?,?> key, Object value)
          A write method checking a lock sigh.
 
Methods inherited from class org.ujorm.implementation.orm.OrmTable
get, newCamelFactory, newFactory, newKey, newKey, newKey, newKey, newKey, newKey, newKeyDefault, newProperty, newProperty, newProperty, newProperty, newProperty, newProperty, newProperty, newProperty, newRelation, newRelation, newRelation, newRelation, readAuthorization, readChangedProperties, readFK, readSession, set, writeSession
 
Methods inherited from class org.ujorm.implementation.quick.QuickUjo
newListKey, newListKey, newListProperty, newListProperty, newListProperty, newListProperty
 
Methods inherited from class org.ujorm.extensions.AbstractUjo
readValue
 
Methods inherited from class org.ujorm.extensions.SuperAbstractUjo
clone, equals, init, init, readKeys, readUjoManager, readValueString, toString, writeValueString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ujorm.Ujo
readAuthorization, readKeys, readValue
 

Constructor Detail

OrmTableLockable

public OrmTableLockable()
Method Detail

lock

public void lock()

Specified by:
lock in interface UjoLockable

readOnly

public boolean readOnly()

Specified by:
readOnly in interface UjoLockable

writeValue

public void writeValue(Key<?,?> key,
                       Object value)
                throws UnsupportedOperationException
A write method checking a lock sigh.

Specified by:
writeValue in interface UjoLockable
Specified by:
writeValue in interface Ujo
Overrides:
writeValue in class OrmTable<U extends OrmTableLockable>
Throws:
UnsupportedOperationException


Copyright 2013, Pavel Ponec