Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright (c) 2009 Mysema Ltd.
  * All rights reserved.
  * 
  */
 package com.mysema.query.jdoql.dml;
 
 import  javax.jdo.PersistenceManager;
 
UpdateClause implementation for JDO

Author(s):
tiwe
public class JDOQLUpdateClause implements UpdateClause<JDOQLUpdateClause>{
    
    private static final JDOQLTemplates DEFAULT_TEMPLATES = new JDOQLTemplates();
    
    private final QueryMetadata md = new DefaultQueryMetadata();
    
    private final PersistenceManager pm;
    
    private final JDOQLTemplates templates;
    
    public JDOQLUpdateClause(PersistenceManager pmPEntity<?> entity){
        this(pmentity);
    }
    
    public JDOQLUpdateClause(PersistenceManager pmPEntity<?> entityJDOQLTemplates templates){
        this. = pm;
        this. = templates;
        .addFrom(entity);        
    }
    @Override
    public long execute() {
        // TODO : implement
        throw new RuntimeException("Not yet implemented");
    }
    @SuppressWarnings("unchecked")
    @Override
    public <T> JDOQLUpdateClause set(Path<T> path, T value) {
        .addProjection(((Expr<T>)path).eq(value));
        return this;
    }
    @Override
    public JDOQLUpdateClause where(EBoolean... o) {
        .addWhere(o);
        return this;
    }
New to GrepCode? Check out our FAQ X