Package com.sun.jdo.spi.persistence.support.sqlstore.sql.generator

Examples of com.sun.jdo.spi.persistence.support.sqlstore.sql.generator.UpdateQueryPlan


    /** */
    private UpdateQueryPlan getUpdateQueryPlanForUpdate(
            UpdateObjectDescImpl desc, SQLStoreManager store)
    {
        String key = getSortedFieldNumbers(desc.getUpdatedFields());
        UpdateQueryPlan plan;
        synchronized(updateQueryPlanCache) {
            plan = (UpdateQueryPlan)updateQueryPlanCache.get(key);
            if (plan == null) {
                plan = buildQueryPlan(store, desc);
                updateQueryPlanCache.put(key, plan);
View Full Code Here


     *
     * @return A new query plan. The returned plan will be readonly.
     */
    private UpdateQueryPlan buildQueryPlan(SQLStoreManager store,
                                           UpdateObjectDescImpl desc) {
        UpdateQueryPlan plan;

        plan = new UpdateQueryPlan(desc, store);
        plan.build(true);

        // Initialize the text for all statements. After this point,
        // the plan and its related data structures will be readonly.
        plan.getStatements();

        return plan;
    }
View Full Code Here

    /** */
    private UpdateQueryPlan getUpdateQueryPlanForUpdate(
            UpdateObjectDescImpl desc, SQLStoreManager store)
    {
        String key = getSortedFieldNumbers(desc.getUpdatedFields());
        UpdateQueryPlan plan;
        synchronized(updateQueryPlanCache) {
            plan = (UpdateQueryPlan)updateQueryPlanCache.get(key);
            if (plan == null) {
                plan = buildQueryPlan(store, desc);
                updateQueryPlanCache.put(key, plan);
View Full Code Here

     *
     * @return A new query plan. The returned plan will be readonly.
     */
    private UpdateQueryPlan buildQueryPlan(SQLStoreManager store,
                                           UpdateObjectDescImpl desc) {
        UpdateQueryPlan plan;

        plan = new UpdateQueryPlan(desc, store);
        plan.build(true);

        // Initialize the text for all statements. After this point,
        // the plan and its related data structures will be readonly.
        plan.getStatements();

        return plan;
    }
View Full Code Here

TOP

Related Classes of com.sun.jdo.spi.persistence.support.sqlstore.sql.generator.UpdateQueryPlan

Copyright © 2018 www.massapicom. 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.