org.ujorm.orm
Class AbstractMetaModel

java.lang.Object
  extended by org.ujorm.extensions.SuperAbstractUjo
      extended by org.ujorm.extensions.AbstractUjo
          extended by org.ujorm.orm.AbstractMetaModel
All Implemented Interfaces:
Serializable, UjoCloneable, UjoTextable, Ujo
Direct Known Subclasses:
MetaDatabase, MetaIndex, MetaParams, MetaPKey, MetaProcedure, MetaRelation2Many, MetaRoot, MetaSelect, MetaTable, MoreParams

public abstract class AbstractMetaModel
extends AbstractUjo

Abstract Metamodel

Author:
Pavel Ponec
See Also:
Serialized Form

Constructor Summary
AbstractMetaModel()
           
 
Method Summary
<UJO extends AbstractMetaModel,VALUE>
VALUE
get(Key<UJO,VALUE> property)
          Getter based on one Key
protected
<UJO extends Ujo,VALUE>
void
changeDefault(UJO ujo, Key<UJO,VALUE> property, VALUE value)
          Assign a 'valid value' over a default UJO property value only
 boolean checkReadOnly(boolean exception)
          Test a read-only state
protected  boolean isFilled(CharSequence text)
          Returns true, if the argument text is not null and not empty.
protected  boolean isFilled(Object value)
          Returns true, if the argument text is not null and not empty.
 boolean readAuthorization(UjoAction action, Key property, Object value)
           
 boolean readOnly()
          Property values are locked to read-only.
 void setReadOnly(boolean recurse)
          Set a read-only state.
 void writeValue(Key property, Object value)
           
 
Methods inherited from class org.ujorm.extensions.AbstractUjo
newCamelFactory, newFactory, readValue
 
Methods inherited from class org.ujorm.extensions.SuperAbstractUjo
clone, equals, init, init, readKeys, readProperties, readUjoManager, readValueString, toString, writeValueString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractMetaModel

public AbstractMetaModel()
Method Detail

readOnly

public boolean readOnly()
Property values are locked to read-only.


setReadOnly

public void setReadOnly(boolean recurse)
Set a read-only state.


checkReadOnly

public boolean checkReadOnly(boolean exception)
                      throws UnsupportedOperationException
Test a read-only state

Throws:
UnsupportedOperationException

writeValue

public void writeValue(Key property,
                       Object value)
Specified by:
writeValue in interface Ujo
Overrides:
writeValue in class AbstractUjo

changeDefault

protected <UJO extends Ujo,VALUE> void changeDefault(UJO ujo,
                                                     Key<UJO,VALUE> property,
                                                     VALUE value)
Assign a 'valid value' over a default UJO property value only


readAuthorization

public boolean readAuthorization(UjoAction action,
                                 Key property,
                                 Object value)
Specified by:
readAuthorization in interface Ujo
Overrides:
readAuthorization in class SuperAbstractUjo

isFilled

protected boolean isFilled(CharSequence text)
Returns true, if the argument text is not null and not empty.


isFilled

protected boolean isFilled(Object value)
Returns true, if the argument text is not null and not empty.


get

public <UJO extends AbstractMetaModel,VALUE> VALUE get(Key<UJO,VALUE> property)
Getter based on one Key



Copyright © 2012. All Rights Reserved.