org.ujoframework.orm.metaModel
Class MetaRelation2Many

java.lang.Object
  extended by org.ujoframework.extensions.AbstractUjo
      extended by org.ujoframework.implementation.quick.QuickUjo
          extended by org.ujoframework.orm.AbstractMetaModel
              extended by org.ujoframework.orm.metaModel.MetaRelation2Many
All Implemented Interfaces:
UjoCloneable, UjoTextable, Ujo
Direct Known Subclasses:
MetaColumn

public class MetaRelation2Many
extends AbstractMetaModel

The database/object relation to many.

Author:
Pavel Ponec

Field Summary
static Property<MetaRelation2Many,java.lang.String> ID
          The meta-model ID.
static Property<MetaRelation2Many,java.lang.String> NAME
          The database column name.
static Property<MetaRelation2Many,MetaTable> TABLE
          DB table
static Property<MetaRelation2Many,UjoProperty> TABLE_PROPERTY
          Table property
 
Fields inherited from class org.ujoframework.implementation.quick.QuickUjo
data
 
Constructor Summary
MetaRelation2Many()
           
MetaRelation2Many(MetaTable table, UjoProperty tableProperty, MetaRelation2Many param)
           
 
Method Summary
 OrmHandler getHandler()
          OrmHandler
 UjoProperty getProperty()
          Returns a column property
 java.lang.Object getValue(Ujo ujo)
          Get property value
 boolean isColumn()
          It is a DB column
 boolean isForeignKey()
          Is it a Foreign Key ?
 java.lang.String toString()
          A String representation.
 
Methods inherited from class org.ujoframework.orm.AbstractMetaModel
get, changeDefault, isUsable, isUsable, readAuthorization, readOnly, setReadOnly, testReadOnly, writeValue
 
Methods inherited from class org.ujoframework.implementation.quick.QuickUjo
newListProperty, newProperty, newProperty, newProperty, newProperty, newProperty, newProperty, readValue
 
Methods inherited from class org.ujoframework.extensions.AbstractUjo
clone, equals, init, init, readProperties, readUjoManager, readValueString, writeValueString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ID

public static final Property<MetaRelation2Many,java.lang.String> ID
The meta-model ID.


NAME

public static final Property<MetaRelation2Many,java.lang.String> NAME
The database column name. If an appropriate UjoProperty is a relation to another ORM object with more primary keys, then the several names can be separated by a space or comma character.


TABLE_PROPERTY

public static final Property<MetaRelation2Many,UjoProperty> TABLE_PROPERTY
Table property


TABLE

public static final Property<MetaRelation2Many,MetaTable> TABLE
DB table

Constructor Detail

MetaRelation2Many

public MetaRelation2Many()

MetaRelation2Many

public MetaRelation2Many(MetaTable table,
                         UjoProperty tableProperty,
                         MetaRelation2Many param)
Method Detail

isColumn

public boolean isColumn()
It is a DB column


isForeignKey

public boolean isForeignKey()
Is it a Foreign Key ?


getProperty

public final UjoProperty getProperty()
Returns a column property


getValue

public final java.lang.Object getValue(Ujo ujo)
Get property value


getHandler

public OrmHandler getHandler()
OrmHandler


toString

public java.lang.String toString()
Description copied from class: AbstractUjo
A String representation.

Overrides:
toString in class AbstractUjo


Copyright © 2009. All Rights Reserved.