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;
 
 
Default implementation of the JDOQLQuery interface

Parameters:
<A>
Author(s):
tiwe
public final class JDOQLQueryImpl extends AbstractJDOQLQuery<JDOQLQueryImplimplements JDOQLQuery{
    
    
Create a detached JDOQLQueryImpl instance The query can be attached via the clone method

Parameters:
persistenceManager
    public JDOQLQueryImpl() {
        super(null.new DefaultQueryMetadata(), false);
    }

    
Create a new JDOQLQueryImpl instance

Parameters:
persistenceManager PersistenceManager instance to use
templates JDOQLTemplates to use
detach detached results or not
    public JDOQLQueryImpl(PersistenceManager persistenceManagerJDOQLTemplates templatesboolean detach) {
        super(persistenceManagertemplatesnew DefaultQueryMetadata(), detach);
    }
    
    
Create a new JDOQLQueryImpl instance

Parameters:
persistenceManager PersistenceManager instance to use
detach detached results or not
    public JDOQLQueryImpl(PersistenceManager persistenceManagerboolean detach) {
        super(persistenceManager.new DefaultQueryMetadata(), detach);
    }
    
    
Create a new JDOQLQueryImpl instance

Parameters:
persistenceManager PersistenceManager instance to use
    public JDOQLQueryImpl(PersistenceManager persistenceManager) {
        super(persistenceManager.new DefaultQueryMetadata(), false);
    }
    
    

Parameters:
persistenceManager
templates
metadata
detach
    protected JDOQLQueryImpl(PersistenceManager persistenceManagerJDOQLTemplates templatesQueryMetadata metadataboolean detach) {
        super(persistenceManagertemplatesmetadatadetach);
    }
    
    
Clone the state of this query to a new JDOQLQueryImpl instance with the given PersistenceManager

Parameters:
persistenceManager
Returns:
    public JDOQLQueryImpl clone(PersistenceManager persistenceManager){
        return new JDOQLQueryImpl(persistenceManagergetTemplates(), getMetadata().clone(), isDetach());
    }
    
New to GrepCode? Check out our FAQ X