Examples of clone()


Examples of org.apache.openjpa.jdbc.identifier.DBIdentifier.clone()

                        DeferredEmbeddableOverrides dfm =
                            getDeferredFieldMappingInfo(
                                AnnotationPersistenceMappingParser.
                                getEmbeddedClassType(basefm, _override),
                                basefm, _override, true);
                        dfm._defTable = sTable.clone();
                        dfm._attrName = _override;
                    }
                }
            } else if (elem instanceof ClassMapping) {
                ClassMapping cm = (ClassMapping) elem;
View Full Code Here

Examples of org.apache.openjpa.jdbc.kernel.JDBCFetchConfiguration.clone()

        sel.wherePrimaryKey(sm.getObjectId(), vers.getClassMapping(), store);

        // No need to lock version field (i.e. optimistic), except when version update is required (e.g. refresh)
        JDBCFetchConfiguration fetch = store.getFetchConfiguration();
        if (!updateVersion && fetch.getReadLockLevel() >= MixedLockLevels.LOCK_PESSIMISTIC_READ) {
            fetch = (JDBCFetchConfiguration) fetch.clone();
            fetch.setReadLockLevel(MixedLockLevels.LOCK_NONE);
        }
        Result res = sel.execute(store, fetch);
        try {
            if (!res.next())
View Full Code Here

Examples of org.apache.openjpa.jdbc.schema.SchemaGroup.clone()

   
    protected SchemaGroup getSchemaGroup()
    throws Exception {
        // parse in the schema group, then clone it, and test against clone
        SchemaGroup group = parseSchemaGroup();
        return (SchemaGroup) group.clone();
    }
   
    public static void main(String[] args) {
        //main(TestSchemaClone.class);
    }
View Full Code Here

Examples of org.apache.pdfbox.util.Matrix.clone()

        textMatrix.setValue( 1, 0, c.floatValue() );
        textMatrix.setValue( 1, 1, d.floatValue() );
        textMatrix.setValue( 2, 0, e.floatValue() );
        textMatrix.setValue( 2, 1, f.floatValue() );
        context.setTextMatrix( textMatrix );
        context.setTextLineMatrix( textMatrix.clone() );
    }

    @Override
    public String getName()
    {
View Full Code Here

Examples of org.apache.pig.FuncSpec.clone()

                this.getExpression().deepCopy(lgExpPlan),
                this.getFieldSchema().deepCopy());
        try {
            FuncSpec origFuncSpec = this.getFuncSpec();
            if (origFuncSpec != null ) {
                ((CastExpression)copy).setFuncSpec(origFuncSpec.clone());
            }
        } catch(CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return copy;
View Full Code Here

Examples of org.apache.pig.backend.hadoop.executionengine.physicalLayer.plans.PhysicalPlan.clone()

                if (rightMapPlan.getSuccessors(rightLoader) == null || rightMapPlan.getSuccessors(rightLoader).isEmpty())
                    // Load - Join case.
                    rightPipelinePlan = null;
               
                else{ // We got something on right side. Yank it and set it as inner plan of right input.
                    rightPipelinePlan = rightMapPlan.clone();
                    PhysicalOperator root = rightPipelinePlan.getRoots().get(0);
                    rightPipelinePlan.disconnect(root, rightPipelinePlan.getSuccessors(root).get(0));
                    rightPipelinePlan.remove(root);
                    rightMapPlan.trimBelow(rightLoader);
                }
View Full Code Here

Examples of org.apache.pig.backend.hadoop.executionengine.physicalLayer.relationalOperators.CombinerPackager.clone()

                combinePlan.connect(cfe, clr);

                // Change the package operator in the reduce plan to
                // be the POCombiner package, as it needs to act
                // differently than the regular package operator.
                pack.setPkgr(pkgr.clone());
            } catch (Exception e) {
                int errCode = 2018;
                String msg = "Internal error. Unable to introduce the combiner for optimization.";
                throw new OptimizerException(msg, errCode, PigException.BUG, e);
            }
View Full Code Here

Examples of org.apache.pig.impl.logicalLayer.schema.Schema.clone()

       
        if(mUserDefinedSchema != null) {
            forEachClone.mUserDefinedSchema = new ArrayList<Schema>();
            for (Iterator<Schema> it = mUserDefinedSchema.iterator(); it.hasNext();) {
                Schema s = it.next();
                forEachClone.mUserDefinedSchema.add(s != null ? s.clone() : null);
            }
        }
        return forEachClone;
    }
View Full Code Here

Examples of org.apache.pig.impl.util.UDFContext.clone()

            // Set the thread UDFContext so registered classes are available.
            final UDFContext udfContext = UDFContext.getUDFContext();
            Thread jcThread = new Thread(jc, "JobControl") {
                @Override
                public void run() {
                    UDFContext.setUdfContext(udfContext.clone()); //PIG-2576
                    super.run();
                }
            };

            jcThread.setUncaughtExceptionHandler(jctExceptionHandler);
View Full Code Here

Examples of org.apache.pluto.container.PortletPreference.clone()

        PortletPreference p = defaultPreferences.get(key);
        if (p != null) {
            if (LOG.isDebugEnabled()) {
                LOG.debug("Resetting preference for key: " + key);
            }
            preferences.put(key,p.clone());
        }      
        // Remove preference if default values are not defined (PLT.14.1).
        else {
          if (LOG.isDebugEnabled()) {
            LOG.debug("Resetting preference to null for key: " + key);
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.