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;
 
Operation patterns for JDOQL serialization

Author(s):
tiwe
public class JDOQLTemplates extends JavaTemplates {
    public JDOQLTemplates() {
        // String
        add(."{0}.indexOf({1}) > -1", 25);
        add(."{0l}.equals({1l})");
        add(."{0} == \"\"", 25);
        add(."{0}.like({1})");
        
        // Date
        add(.."{0}.getDay()");
        
        // other
        add(."{0} {1}");
    }
New to GrepCode? Check out our FAQ X