org.caleigo.core.meta
Class MetaDataSourceDescriptor

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

public class MetaDataSourceDescriptor
extends AbstractMetaEntityDescriptor

MetaDataSourceDescriptor is the descriptor for MetaDataSourceDescriptorEntity 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 CodeName
          The CodeName field (index=1) has the data type STRING(50).
static IFieldDescriptor DisplayName
          The DisplayName field (index=2) has the data type STRING(50).
static MetaDataSourceDescriptor instance
          The singleton instance for the MetaDataSourceDescriptor entity descriptor.
static IFieldDescriptor ReadOnly
          The ReadOnly field (index=4) has the data type BOOLEAN.
static IFieldDescriptor SourceName
          The SourceName field (index=0) has the data type STRING(50).
static IFieldDescriptor Version
          The Version field (index=3) has the data type STRING(20).
 
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 MetaDataSourceDescriptorEntity create()
          Creates a new MetaDataSourceDescriptorEntity with default values set
static MetaDataSourceDescriptorEntity create(IDataProvider propertySource)
          Creates a new MetaDataSourceDescriptorEntity, setting any field values avaivlable from the provided IDataProvider.
static MetaDataSourceDescriptorEntity load(Qualifier identityQualifier)
          Loads a single MetaDataSourceDescriptorEntity instance identified by by the provided identity-qualifier from the default data source.
static MetaDataSourceDescriptorEntity load(java.lang.String aSourceName)
          Loads a single MetaDataSourceDescriptorEntity 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 MetaDataSourceDescriptor instance
The singleton instance for the MetaDataSourceDescriptor entity descriptor. Access it as MetaDataSourceDescriptor.instance anywhere in the code.


SourceName

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


CodeName

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


DisplayName

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


Version

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


ReadOnly

public static final IFieldDescriptor ReadOnly
The ReadOnly field (index=4) has the data type BOOLEAN. ReadOnly is a required field.

Method Detail

create

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


create

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


load

public static MetaDataSourceDescriptorEntity load(java.lang.String aSourceName)
Loads a single MetaDataSourceDescriptorEntity 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 MetaDataSourceDescriptorEntity load(Qualifier identityQualifier)
Loads a single MetaDataSourceDescriptorEntity 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.