org.caleigo.core.meta
Class MetaFieldRelation

java.lang.Object
  extended byorg.caleigo.core.AbstractEntityDescriptor
      extended byorg.caleigo.core.meta.AbstractMetaEntityDescriptor
          extended byorg.caleigo.core.meta.MetaFieldRelation
All Implemented Interfaces:
IEntityDescriptor, java.io.Serializable

public class MetaFieldRelation
extends AbstractMetaEntityDescriptor

MetaFieldRelation is the descriptor for MetaFieldRelationEntity objects.

Version:
1.0.0
Author:
dennis
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.caleigo.core.AbstractEntityDescriptor
AbstractEntityDescriptor.DeleteEntityAction, AbstractEntityDescriptor.Dezerializer, AbstractEntityDescriptor.StoreEntityAction
 
Field Summary
static IFieldDescriptor EntityRelation
          The EntityRelation field (index=0) has the data type STRING(100).
static MetaFieldRelation instance
          The singleton instance for the MetaFieldRelation entity descriptor.
static IFieldDescriptor ReferenceEntity
          The ReferenceEntity field (index=1) has the data type STRING(50).
static IFieldDescriptor ReferenceField
          The ReferenceField field (index=2) has the data type STRING(50).
static IFieldDescriptor TargetEntity
          The TargetEntity field (index=3) has the data type STRING(50).
static IFieldDescriptor TargetField
          The TargetField field (index=4) has the data type STRING(50).
 
Fields inherited from class org.caleigo.core.AbstractEntityDescriptor
CACHEABLE, CREATABLE, DELETABLE, EDITABLE, LISTABLE, SCANABLE, SELECTABLE
 
Fields inherited from interface org.caleigo.core.IEntityDescriptor
CUSTOM_ENTITY, DELETE_ACTION, LINK_ENTITY, MASTER_ENTITY, NO_TIME_LIMIT, SLAVE_ENTITY, STATIC_ENTITY, STORE_ACTION
 
Method Summary
static MetaFieldRelationEntity create()
          Creates a new MetaFieldRelationEntity with default values set
static MetaFieldRelationEntity create(IDataProvider propertySource)
          Creates a new MetaFieldRelationEntity, setting any field values avaivlable from the provided IDataProvider.
static MetaFieldRelationEntity load(Qualifier identityQualifier)
          Loads a single MetaFieldRelationEntity instance identified by by the provided identity-qualifier from the default data source.
static MetaFieldRelationEntity load(java.lang.String aEntityRelation, java.lang.String aReferenceEntity, java.lang.String aReferenceField, java.lang.String aTargetEntity, java.lang.String aTargetField)
          Loads a single MetaFieldRelationEntity instance identified by by the provided identity field values from the default data source.
 
Methods inherited from class org.caleigo.core.AbstractEntityDescriptor
addEntityAction, contains, createCalculatedFieldDescriptors, createDeleteAction, createEntity, createEntity, createEntityRelation, createEntityRelation, createEntityRelation, createFieldDescriptor, createFieldRelation, createStoreAction, defineEntityActions, getAction, getAction, getActionCount, getActions, getCacheTime, getCodeName, getDataFieldCount, getDataSourceDescriptor, getDisplayName, getEntityClass, getEntityRelation, getEntityRelationCount, getEntityRelationIndex, getEntityRelations, getEntityType, getFieldCount, getFieldDescriptor, getFieldDescriptor, getFieldDescriptors, getFieldIndex, getFieldIndex, getHomeClass, getJNDIName, getNaturalOrder, getRemoteClass, getSourceName, isCacheable, isCreatable, isDeletable, isEditable, isListable, isScanable, isSelectable, loadEntity, loadSelection, setCacheTime, setFlags, toString, writeReplace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

instance

public static final MetaFieldRelation instance
The singleton instance for the MetaFieldRelation entity descriptor. Access it as MetaFieldRelation.instance anywhere in the code.


EntityRelation

public static final IFieldDescriptor EntityRelation
The EntityRelation field (index=0) has the data type STRING(100). EntityRelation is a required identity field.


ReferenceEntity

public static final IFieldDescriptor ReferenceEntity
The ReferenceEntity field (index=1) has the data type STRING(50). ReferenceEntity is a required identity field.


ReferenceField

public static final IFieldDescriptor ReferenceField
The ReferenceField field (index=2) has the data type STRING(50). ReferenceField is a required identity field.


TargetEntity

public static final IFieldDescriptor TargetEntity
The TargetEntity field (index=3) has the data type STRING(50). TargetEntity is a required identity field.


TargetField

public static final IFieldDescriptor TargetField
The TargetField field (index=4) has the data type STRING(50). TargetField is a required identity field.

Method Detail

create

public static MetaFieldRelationEntity create()
Creates a new MetaFieldRelationEntity with default values set


create

public static MetaFieldRelationEntity create(IDataProvider propertySource)
Creates a new MetaFieldRelationEntity, setting any field values avaivlable from the provided IDataProvider.


load

public static MetaFieldRelationEntity load(java.lang.String aEntityRelation,
                                           java.lang.String aReferenceEntity,
                                           java.lang.String aReferenceField,
                                           java.lang.String aTargetEntity,
                                           java.lang.String aTargetField)
Loads a single MetaFieldRelationEntity instance identified by by the provided identity field values from the default data source. Returns null if no entity could be identified by field values.


load

public static MetaFieldRelationEntity load(Qualifier identityQualifier)
Loads a single MetaFieldRelationEntity instance identified by by the provided identity-qualifier from the default data source. Returns null if no entity could be identified by the provided qualifier.



Copyright © 2005 Caleigo. All Rights Reserved.