Examples of StructureMapping


Examples of ca.weblite.objc.mappers.StructureMapping

       
        addMapping(new ScalarMapping(), "cCiIsSfdlLqQB[:b?#v".split(""));
        addMapping(new StringMapping(), "*".split(""));
        addMapping(new PointerMapping(), "^");
        addMapping(new NSObjectMapping(), "@");
        addMapping(new StructureMapping(), "{");
       
       
       
       
       
View Full Code Here

Examples of de.fraunhofer.esk.openetcs.sysml2b.transformation.StructureMapping

    MapToText map2t = new MapToText();
    map2t.create(p, project);
  }
 
  private void createMachineFile(Block block, Comment comment) {
    StructureMapping mapping = new StructureMapping();
   
    writeToFile(block.getBase_Class().getName() + ".mch", mapping.createMachine(block, comment).toString());
  }
View Full Code Here

Examples of org.eclipse.persistence.mappings.structures.StructureMapping

    /**
     * Build and structure mapping and add it to the descriptor.
     */
    @Override
    public void process() {
        StructureMapping mapping = new StructureMapping();
        setMapping(mapping);
       
        // Process the @Column or column element if there is one.
        // A number of methods depend on this field so it must be
        // initialized before any further processing can take place.
        m_field = new ObjectRelationalDatabaseField(getDatabaseField(getDescriptor().getPrimaryTable(), MetadataLogger.COLUMN));
               
        mapping.setField(m_field);
        mapping.setIsReadOnly(m_field.isReadOnly());
       
        mapping.setReferenceClassName(getReferenceClassName());
        mapping.setAttributeName(getAttributeName());   
       
        // Will check for PROPERTY access
        setAccessorMethods(mapping);
               
        // Process a @ReturnInsert and @ReturnUpdate (to log a warning message)
View Full Code Here

Examples of org.eclipse.persistence.mappings.structures.StructureMapping

                            arrayMapping.setStructureName(top.targetTypeName());
                            ordt.addMapping(arrayMapping);
                        }
                    }
                    else if (top.isRecord()) {
                        StructureMapping structureMapping = new StructureMapping();
                        structureMapping.setAttributeName(lFieldName);
                        structureMapping.setFieldName(lFieldName);
                        structureMapping.setReferenceClassName(((RecordHelper)top).recordName().toLowerCase());
                        ordt.addMapping(structureMapping);
                    }
                }
                else {
                    ordt.addDirectMapping(lFieldName, lFieldName);
View Full Code Here

Examples of org.eclipse.persistence.mappings.structures.StructureMapping

                            descriptorMap.get(objectTypeNameAlias2);
                        if (ordt2 != null) {
                            DatabaseMapping dm = ordt2.getMappingForAttributeName(attributeName);
                            if (dm == null) {
                                ordt2.addFieldOrdering(fieldName);
                                StructureMapping structMapping = new StructureMapping();
                                structMapping.setFieldName(fieldName);
                                structMapping.setAttributeName(attributeName);
                                structMapping.setReferenceClassName(ordt.getJavaClassName());
                                ordt2.addMapping(structMapping);
                            }
                            // last attribute, pop ObjectTypeHelper off stack
                            int numAttributes2 = objectTypeHelper2.decrNumAttributes();
                            if (numAttributes2 == 0) {
View Full Code Here

Examples of org.eclipse.persistence.mappings.structures.StructureMapping

     * INTERNAL:
     * Build and structure mapping and add it to the descriptor.
     */
    @Override
    public void process() {
        StructureMapping mapping = new StructureMapping();
        setMapping(mapping);
       
        // Process the @Column or column element if there is one.
        // A number of methods depend on this field so it must be
        // initialized before any further processing can take place.
        m_field = new ObjectRelationalDatabaseField(getDatabaseField(getDescriptor().getPrimaryTable(), MetadataLogger.COLUMN));
               
        mapping.setField(m_field);
        mapping.setIsReadOnly(m_field.isReadOnly());
       
        mapping.setReferenceClassName(getReferenceClassName());
        mapping.setAttributeName(getAttributeName());   
       
        // Will check for PROPERTY access
        setAccessorMethods(mapping);
               
        // Process a @ReturnInsert and @ReturnUpdate (to log a warning message)
View Full Code Here

Examples of org.eclipse.persistence.mappings.structures.StructureMapping

                            descriptorMap.get(objectTypeNameAlias2);
                        if (ordt2 != null) {
                            DatabaseMapping dm = ordt2.getMappingForAttributeName(attributeName);
                            if (dm == null) {
                                ordt2.addFieldOrdering(fieldName);
                                StructureMapping structMapping = new StructureMapping();
                                structMapping.setFieldName(fieldName);
                                structMapping.setAttributeName(attributeName);
                                structMapping.setReferenceClassName(ordt.getJavaClassName());
                                ordt2.addMapping(structMapping);
                            }
                            // last attribute, pop ObjectTypeHelper off stack
                            int numAttributes2 = objectTypeHelper2.decrNumAttributes();
                            if (numAttributes2 == 0) {
View Full Code Here

Examples of org.eclipse.persistence.mappings.structures.StructureMapping

                            arrayMapping.setStructureName(top.targetTypeName());
                            ordt.addMapping(arrayMapping);
                        }
                    }
                    else if (top.isRecord()) {
                        StructureMapping structureMapping = new StructureMapping();
                        structureMapping.setAttributeName(lFieldName);
                        structureMapping.setFieldName(lFieldName);
                        structureMapping.setReferenceClassName(((RecordHelper)top).recordName().toLowerCase());
                        ordt.addMapping(structureMapping);
                    }
                }
                else {
                    ordt.addDirectMapping(lFieldName, lFieldName);
View Full Code Here

Examples of org.eclipse.persistence.mappings.structures.StructureMapping

    /**
     * Build and structure mapping and add it to the descriptor.
     */
    @Override
    public void process() {
        StructureMapping mapping = new StructureMapping();
        setMapping(mapping);
       
        // Process the @Column or column element if there is one.
        // A number of methods depend on this field so it must be
        // initialized before any further processing can take place.
        m_field = new ObjectRelationalDatabaseField(getDatabaseField(getDescriptor().getPrimaryTable(), MetadataLogger.COLUMN));
               
        mapping.setField(m_field);
        mapping.setIsReadOnly(m_field.isReadOnly());
       
        mapping.setReferenceClassName(getReferenceClassName());
        mapping.setAttributeName(getAttributeName());   
       
        // Will check for PROPERTY access
        setAccessorMethods(mapping);
               
        // Process a @ReturnInsert and @ReturnUpdate (to log a warning message)
View Full Code Here

Examples of org.eclipse.persistence.mappings.structures.StructureMapping

    /**
     * Build and structure mapping and add it to the descriptor.
     */
    @Override
    public void process() {
        StructureMapping mapping = new StructureMapping();
        setMapping(mapping);
       
        // Process the @Column or column element if there is one.
        // A number of methods depend on this field so it must be
        // initialized before any further processing can take place.
        m_field = new ObjectRelationalDatabaseField(getDatabaseField(getDescriptor().getPrimaryTable(), MetadataLogger.COLUMN));
               
        mapping.setField(m_field);
        mapping.setIsReadOnly(m_field.isReadOnly());
       
        mapping.setReferenceClassName(getReferenceClassName());
        mapping.setAttributeName(getAttributeName());   
       
        // Will check for PROPERTY access
        setAccessorMethods(mapping);
               
        // Process a @ReturnInsert and @ReturnUpdate (to log a warning message)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.