FileDocCategorySizeDatePackage
EJBQLASTFactory.javaAPI DocGlassfish v2 API3833Fri May 04 22:34:50 BST 2007com.sun.jdo.spi.persistence.support.ejb.ejbqlc

EJBQLASTFactory

public class EJBQLASTFactory extends ASTFactory
Factory to create and connect EJBQLAST nodes.
author
Michael Bouschen

Fields Summary
private static EJBQLASTFactory
factory
The singleton EJBQLASTFactory instance.
private static final ResourceBundle
msgs
I18N support.
Constructors Summary
protected EJBQLASTFactory()
Constructor. EJBQLASTFactory is a singleton, please use {@link #getInstance} to get the factory instance.

        this.theASTNodeTypeClass = EJBQLAST.class;
        this.theASTNodeType = this.theASTNodeTypeClass.getName();
    
Methods Summary
public persistence.antlr.collections.ASTcreate()
Overwrites superclass method to create the correct AST instance.

        return new EJBQLAST();
    
public persistence.antlr.collections.ASTcreate(persistence.antlr.collections.AST tr)
Overwrites superclass method to create the correct AST instance.

 
        return create((EJBQLAST)tr);
    
public EJBQLASTcreate(EJBQLAST tr)
Creates a clone of the specified EJBQLAST instance.

 
        try {
            return (tr==null) ? null : (EJBQLAST)tr.clone();
        }
        catch(CloneNotSupportedException ex) {
            throw new EJBQLException(
                I18NHelper.getMessage(msgs, "ERR_UnexpectedExceptionClone"), ex); //NOI18N
        }
    
public static com.sun.jdo.spi.persistence.support.ejb.ejbqlc.EJBQLASTFactorygetInstance()
Get an instance of EJBQLASTFactory.

return
an instance of EJBQLASTFactory

    
                        
       
    
        return factory;