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:
java.io.Serializable, UjoCloneable, UjoTextable, Ujo
Direct Known Subclasses:
MetaColumn

public class MetaRelation2Many
extends AbstractMetaModel

The database/object relation to many.

Author:
Pavel Ponec
See Also:
Serialized Form

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
 
Constructor Summary
MetaRelation2Many()
           
MetaRelation2Many(MetaTable table, UjoProperty tableProperty, MetaRelation2Many param)
           
 
Method Summary
 OrmHandler getHandler()
          OrmHandler
 UjoProperty getProperty()
          Returns a column property
 MetaTable getTable()
           
 java.lang.Class<OrmUjo> getTableClass()
          Returns a class of column table.
 java.lang.Object getValue(Ujo ujo)
          Get property value
 boolean isColumn()
          It is a DB column (either a value of a foreign key), not a relation to many.
 boolean isForeignKey()
          Is it a Foreign Key ?
 java.lang.String toString()
          Column name.
 
Methods inherited from class org.ujoframework.orm.AbstractMetaModel
get, changeDefault, checkReadOnly, isUsable, isUsable, readAuthorization, readOnly, setReadOnly, writeValue
 
Methods inherited from class org.ujoframework.implementation.quick.QuickUjo
newListProperty, 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 (either a value of a foreign key), not a relation to many.


isForeignKey

public boolean isForeignKey()
Is it a Foreign Key ?


getProperty

public final UjoProperty getProperty()
Returns a column property


getTable

public final MetaTable getTable()

getTableClass

public final java.lang.Class<OrmUjo> getTableClass()
Returns a class of column table.


getValue

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


getHandler

public OrmHandler getHandler()
OrmHandler


toString

public java.lang.String toString()
Column name.

Overrides:
toString in class AbstractUjo


Copyright © 2010. All Rights Reserved.