ADF-BCEO介绍马平资深技术顾问甲骨文开发者计划<在此处插入图片>ADF-BCEntitiesObjectCharacteristicsofEntityObjectsEntityobjects:RepresentarowinadatabasetableorotherdatasourceHandledatabasecachingContainattributesrepresentingthedatabasecolumnsEncapsulateattribute-levelandentity-ancontaincustombusinessmethodsUsingEntityObjectstoPersistDataCustomersEOIdNameStatusEmailEntityobjectAttributesDatabasetableStatusList(GoldSilverPlatinum)CUSTOMERSCreatingEntityObjectsfromTables,Views,orSynonymsWhenyoucreateanentityobject,JDeveloper:InterrogatesthedatadictionaryforinformationaboutattributeNames,types,relationshipsbasedonprimary/foreignkeyrelationships,Infersprimarykey,ponentdefinitionfile(<EO_name>.xml)CreatesoptionalJavafilesifselected,suchasentityobjectclass<EO_name>,ifapplicable(<Association_name>)–theseshouldberenamedModifyingtheDefaultBehaviorofEntityObjectsWithdeclarativesettings,youcan:DefineattributecontrolhintsUsealternatekeyentityconstraintsRefactor(renameormove)objectsCreateandpublisheventsValidateuserinput(presentedinalaterlesson)Manyothermodificationsarepossiblewithcoding,suchas:OverridingbaseclassmethodsImplementingcalculationandrecalculationofesstodatainrelatedentityobjectsMaybebasedondatabaseconstraintsMaybeindependentofdatabaseconstraintsAreusedindefiningvalidationsandLOVmetadataConsistofasource(master)andadestination(detail)entitySourceDestinationOrdersPersonsFkASAssociationPersonsEOOrdersEOCreatingAssociationsAutomaticallycreatedwhencreating2ndEOwithforeignkeyCreatingAssociationsUsingtheCreateAssociationwizard
adf-bceo介绍 来自淘豆网www.taodocs.com转载请标明出处.