WebObjects 5.2.3

com.webobjects.eocontrol
Class EOGenericRecord

java.lang.Object
  extended bycom.webobjects.eocontrol.EOCustomObject
      extended bycom.webobjects.eocontrol.EOGenericRecord
All Implemented Interfaces:
EODeferredFaulting, EOEnterpriseObject, EOFaulting, EOKeyValueCoding, EOKeyValueCodingAdditions, EORelationshipManipulation, EOValidation, NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions, NSValidation, Serializable

public class EOGenericRecord
extends EOCustomObject

EOGenericRecordは一般的なエンタープライズオブジェクトのクラスです。 オブジェクトに特別な処理が必要ない場合に使われます。 このクラスは、エンタープライズオブジェクトの基本的な性質を定義しているEOEnterpriseObjectインターフェースを実装しています。 EOGerericRecordオブジェクトは、一般的なレコードのメタデータを持つEOClassDescriptionを持ちます。 メタデータにはエンティティ名、属性名とリレーションシップ名が含まれます。 レコードはプロパティを属性名とリレーションシップ名をキーにした辞書で保持します。

アプリケーションがリレーショナルデータベースにアクセスするときは、EOAccessレイヤーのモデル関連クラスがレコードとデータベース行をマッピングするのに重要な役割を果たします。 EOModelがカスタマイズされたエンタープライズオブジェクトのクラスを持たない場合、EODatabaseChannelはモデルを利用して、データベースサーバからフェッチしたオブジェクトでEOGenericRecordオブジェクトを生成します。 EODatabaseChannelは各EOGenericRecordオブジェクトにEOEntityClassDescriptionを設定し、関連するモデルオブジェクト(EOModel, EODatabaseChannel, EOEntityClassDescription)へリンクさせます。

詳細は EOGenericRecordConcepts を参照してください。

See Also:
EOModel, EODatabaseChannel, EOEntityClassDescription, Serialized Form

Nested Class Summary
 
Nested classes inherited from class com.webobjects.eocontrol.EOKeyValueCodingAdditions
EOKeyValueCodingAdditions.DefaultImplementation, EOKeyValueCodingAdditions.Utility
 
Nested classes inherited from class com.webobjects.foundation.NSKeyValueCoding
NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.Null, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.ValueAccessor
 
Nested classes inherited from class com.webobjects.foundation.NSValidation
NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException
 
Field Summary
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
KeyPathSeparator
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding
NullValue
 
Constructor Summary
EOGenericRecord()
          Default constructor.
EOGenericRecord(EOClassDescription classDescription)
          Create a new instance and assigns it classDescription
EOGenericRecord(EOEditingContext editingContext, EOClassDescription classDescription, EOGlobalID gid)
          Deprecated. the default or 0 argument constructor should be used instead
 
Method Summary
 EOClassDescription classDescription()
          Returns the EOClassDescription registered for the receiver's class by invoking the EOClassDescription static method classDescriptionForClass.
static boolean usesDeferredFaultCreation()
          Returns true, specifying that EOGenericRecords use deferred faulting.
 
Methods inherited from class com.webobjects.eocontrol.EOCustomObject
addObjectToBothSidesOfRelationshipWithKey, addObjectToPropertyWithKey, allPropertyKeys, attributeKeys, awakeFromClientUpdate, awakeFromFetch, awakeFromInsertion, canAccessFieldsDirectly, changesFromSnapshot, classDescriptionForDestinationKey, clearFault, clearProperties, deleteRuleForRelationshipKey, editingContext, entityName, eoDescription, eoShallowDescription, equals, excludeObjectFromPropertyWithKey, faultHandler, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hashCode, includeObjectIntoPropertyWithKey, inverseForRelationshipKey, invokeRemoteMethod, isFault, isToManyKey, opaqueState, ownsDestinationObjectsForRelationshipKey, prepareValuesForClient, propagateDeleteWithEditingContext, readResolve, reapplyChangesFromDictionary, removeObjectFromBothSidesOfRelationshipWithKey, removeObjectFromPropertyWithKey, shouldUseStoredAccessors, snapshot, storedValueForKey, takeStoredValueForKey, takeValueForKey, takeValueForKeyPath, takeValuesFromDictionary, takeValuesFromDictionaryWithMapping, toManyRelationshipKeys, toOneRelationshipKeys, toString, turnIntoFault, unableToSetNullForKey, updateFromSnapshot, userPresentableDescription, validateClientUpdate, validateForDelete, validateForInsert, validateForSave, validateForUpdate, validateTakeValueForKeyPath, validateValueForKey, valueForKey, valueForKeyPath, valuesForKeys, valuesForKeysWithMapping, willChange, willRead, willReadRelationship
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EOGenericRecord

public EOGenericRecord(EOEditingContext editingContext,
                       EOClassDescription classDescription,
                       EOGlobalID gid)
Deprecated. the default or 0 argument constructor should be used instead


EOGenericRecord

public EOGenericRecord(EOClassDescription classDescription)
Create a new instance and assigns it classDescription

Parameters:
classDescription - Contains the metadata for the EOGenericRecord.

EOGenericRecord

public EOGenericRecord()
Default constructor.

Method Detail

classDescription

public EOClassDescription classDescription()
Description copied from class: EOCustomObject
Returns the EOClassDescription registered for the receiver's class by invoking the EOClassDescription static method classDescriptionForClass.

Specified by:
classDescription in interface EOEnterpriseObject
Overrides:
classDescription in class EOCustomObject
Returns:
the EOClassDescription registered for the receiver's class.

usesDeferredFaultCreation

public static boolean usesDeferredFaultCreation()
Returns true, specifying that EOGenericRecords use deferred faulting. Note that deferred faulting offers performance benefits.

Returns:
true
See Also:
EODeferredFaulting

Last updated Thu Oct 21 15:04:16 PDT 2004.

Copyright © 2004 Apple Computer, Inc.