/** For internal use only. */ public static void initMeta() { try { metaClass.setSuperMetaClass(DbSMSStructuralFeature.metaClass); metaClass.setIcon("dboodatamember.gif"); fAssociationEnd.setJField(DbOODataMember.class.getDeclaredField("m_associationEnd")); fAssociationEnd.setVisibleInScreen(false); fVisibility.setJField(DbOODataMember.class.getDeclaredField("m_visibility")); fVisibility.setScreenOrder("<initialValue"); fType.setJField(DbOODataMember.class.getDeclaredField("m_type")); fType.setFlags(MetaField.COPY_REFS | MetaField.INTEGRABLE_BY_NAME); fType.setRendererPluginName("DbFullNameInTip;DbOOAdt"); fElementType.setJField(DbOODataMember.class.getDeclaredField("m_elementType")); fElementType.setFlags(MetaField.COPY_REFS | MetaField.INTEGRABLE_BY_NAME); fTypeUse.setJField(DbOODataMember.class.getDeclaredField("m_typeUse")); fTypeUseStyle.setJField(DbOODataMember.class.getDeclaredField("m_typeUseStyle")); fStatic.setJField(DbOODataMember.class.getDeclaredField("m_static")); fCommonItem.setJField(DbOODataMember.class.getDeclaredField("m_commonItem")); fDomain.setJField(DbOODataMember.class.getDeclaredField("m_domain")); fAssociationEnd.setOppositeRel(DbOOAssociationEnd.fAssociationMember); fType.setOppositeRel(DbOOAdt.fTypedDataMembers); fElementType.setOppositeRel(DbOOAdt.fTypedElementDataMembers); fCommonItem.setOppositeRel(DbORCommonItem.fFields); fDomain.setOppositeRel(DbORDomain.fFields); } catch (Exception e) { throw new RuntimeException("Meta init"); } }
/** For internal use only. */ public static void initMeta() { try { metaClass.setSuperMetaClass(DbSMSSemanticalObject.metaClass); metaClass.setIcon("dborapartition.gif"); fTablespace.setJField(DbORAAbsPartition.class.getDeclaredField("m_tablespace")); fTablespace.setFlags(MetaField.INTEGRABLE_BY_NAME); fTablespace.setRendererPluginName("DbORATablespace"); fTablespace.setOppositeRel(DbORATablespace.fAbsPartitions); } catch (Exception e) { throw new RuntimeException("Meta init"); } }
/** @return metaclass */ public MetaClass getStereotypeMetaClass() throws DbException { if (stereotypeMetaClass == null) { stereotypeMetaClass = MetaClass.find(getMetaClassName()); if (stereotypeMetaClass == null) return DbSMSSemanticalObject.metaClass; } return stereotypeMetaClass; }
/** * @param name java.lang.String * @return metafield */ public final MetaField getMetaField(String name) { if (fieldMap == null) { MetaField[] fields = metaClass.getAllMetaFields(); fieldMap = new HashMap(fields.length + fields.length / 2); for (int i = 0; i < fields.length; i++) fieldMap.put(fields[i].getJName(), fields[i]); } return (MetaField) fieldMap.get(name); }
/** For internal use only. */ public static void initMeta() { try { metaClass.setSuperMetaClass(DbORTrigger.metaClass); } catch (Exception e) { throw new RuntimeException("Meta init"); } }
/** For internal use only. */ public static void initMeta() { try { metaClass.setSuperMetaClass(DbSMSAssociationGo.metaClass); } catch (Exception e) { throw new RuntimeException("Meta init"); } }
/** For internal use only. */ public static void initMeta() { try { metaClass.setSuperMetaClass(DbSemanticalObject.metaClass); metaClass.setIcon("dbsmsumlstereotype.gif"); fStereotypedObjects.setJField(DbSMSStereotype.class.getDeclaredField("m_stereotypedObjects")); fSubStereotypes.setJField(DbSMSStereotype.class.getDeclaredField("m_subStereotypes")); fSuperStereotypes.setJField(DbSMSStereotype.class.getDeclaredField("m_superStereotypes")); fIcon.setJField(DbSMSStereotype.class.getDeclaredField("m_icon")); fIcon.setRendererPluginName("SrImage;StereotypeIcon"); fBuiltIn.setJField(DbSMSStereotype.class.getDeclaredField("m_builtIn")); fBuiltIn.setEditable(false); fMetaClassName.setJField(DbSMSStereotype.class.getDeclaredField("m_metaClassName")); fMetaClassName.setRendererPluginName("SMSSemanticalMetaClass"); fSubStereotypes.setOppositeRel(DbSMSStereotype.fSuperStereotypes); fSuperStereotypes.setOppositeRel(DbSMSStereotype.fSubStereotypes); } catch (Exception e) { throw new RuntimeException("Meta init"); } }
/** For internal use only. */ public static void initMeta() { try { metaClass.setSuperMetaClass(DbSMSStyle.metaClass); fOr_nameDescriptor.setJField( DbORCommonItemStyle.class.getDeclaredField("m_or_nameDescriptor")); fLineColorDbORCommonItem.setJField( DbORCommonItemStyle.class.getDeclaredField("m_lineColorDbORCommonItem")); fDescriptorFontDbORCommonItem.setJField( DbORCommonItemStyle.class.getDeclaredField("m_descriptorFontDbORCommonItem")); fDashStyleDbORCommonItem.setJField( DbORCommonItemStyle.class.getDeclaredField("m_dashStyleDbORCommonItem")); fTextColorDbORCommonItem.setJField( DbORCommonItemStyle.class.getDeclaredField("m_textColorDbORCommonItem")); fHighlightDbORCommonItem.setJField( DbORCommonItemStyle.class.getDeclaredField("m_highlightDbORCommonItem")); fBackgroundColorDbORCommonItem.setJField( DbORCommonItemStyle.class.getDeclaredField("m_backgroundColorDbORCommonItem")); fOr_commonItemLengthDecimalsDisplay.setJField( DbORCommonItemStyle.class.getDeclaredField("m_or_commonItemLengthDecimalsDisplay")); fOr_commonItemLengthDecimalsFont.setJField( DbORCommonItemStyle.class.getDeclaredField("m_or_commonItemLengthDecimalsFont")); fReferringProjectCommonItem.setJField( DbORCommonItemStyle.class.getDeclaredField("m_referringProjectCommonItem")); fOr_commonItemNullValueFont.setJField( DbORCommonItemStyle.class.getDeclaredField("m_or_commonItemNullValueFont")); fOr_commonItemTypeFont.setJField( DbORCommonItemStyle.class.getDeclaredField("m_or_commonItemTypeFont")); fOr_commonItemTypeDisplay.setJField( DbORCommonItemStyle.class.getDeclaredField("m_or_commonItemTypeDisplay")); fOr_commonItemNullValueDisplay.setJField( DbORCommonItemStyle.class.getDeclaredField("m_or_commonItemNullValueDisplay")); fReferringProjectCommonItem.setOppositeRel(DbSMSProject.fOrDefaultCommonItemStyle); } catch (Exception e) { throw new RuntimeException("Meta init"); } }