org.ujorm.orm
Class AbstractMetaModel

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

public abstract class AbstractMetaModel
extends org.ujorm.implementation.quick.QuickUjo

Abstract Metamodel

Author:
Pavel Ponec
See Also:
Serialized Form

Constructor Summary
AbstractMetaModel()
           
 
Method Summary
<UJO extends AbstractMetaModel,VALUE>
VALUE
get(org.ujorm.UjoProperty<UJO,VALUE> property)
          Getter based on one UjoProperty
protected
<UJO extends org.ujorm.Ujo,VALUE>
void
changeDefault(UJO ujo, org.ujorm.UjoProperty<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(java.lang.CharSequence text)
          Returns true, if the argument text is not null and not empty.
protected  boolean isFilled(java.lang.Object value)
          Returns true, if the argument text is not null and not empty.
 boolean readAuthorization(org.ujorm.UjoAction action, org.ujorm.UjoProperty property, java.lang.Object value)
           
 boolean readOnly()
          Property values can be readed only
 void setReadOnly(boolean recurse)
          Set a read-only state.
 void writeValue(org.ujorm.UjoProperty property, java.lang.Object value)
           
 
Methods inherited from class org.ujorm.implementation.quick.QuickUjo
newListProperty, newListProperty, newProperty, newProperty, newProperty, newProperty, newProperty, newProperty, readValue
 
Methods inherited from class org.ujorm.extensions.AbstractUjo
clone, equals, init, init, 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 can be readed only


setReadOnly

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


checkReadOnly

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

Throws:
java.lang.UnsupportedOperationException

writeValue

public void writeValue(org.ujorm.UjoProperty property,
                       java.lang.Object value)
Specified by:
writeValue in interface org.ujorm.Ujo
Overrides:
writeValue in class org.ujorm.implementation.quick.QuickUjo

changeDefault

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


readAuthorization

public boolean readAuthorization(org.ujorm.UjoAction action,
                                 org.ujorm.UjoProperty property,
                                 java.lang.Object value)
Specified by:
readAuthorization in interface org.ujorm.Ujo
Overrides:
readAuthorization in class org.ujorm.extensions.AbstractUjo

isFilled

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


isFilled

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


get

public <UJO extends AbstractMetaModel,VALUE> VALUE get(org.ujorm.UjoProperty<UJO,VALUE> property)
Getter based on one UjoProperty



Copyright © 2011. All Rights Reserved.