All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.jsqlparser.statement.create.function.CreateFunction Maven / Gradle / Ivy

Go to download

JSqlParser parses an SQL statement and translate it into a hierarchy of Java classes. The generated hierarchy can be navigated using the Visitor Pattern.

The newest version!
/*-
 * #%L
 * JSQLParser library
 * %%
 * Copyright (C) 2004 - 2020 JSQLParser
 * %%
 * Dual licensed under GNU LGPL 2.1 or Apache License 2.0
 * #L%
 */
package net.sf.jsqlparser.statement.create.function;

import java.util.Collection;
import java.util.List;

import net.sf.jsqlparser.statement.CreateFunctionalStatement;

/**
 * A {@code CREATE PROCEDURE} statement
 */
public class CreateFunction extends CreateFunctionalStatement {

    public CreateFunction() {
        super("FUNCTION");
    }

    public CreateFunction(List functionDeclarationParts) {
        this(false, functionDeclarationParts);
    }

    public CreateFunction(boolean orReplace, List functionDeclarationParts) {
        super(orReplace, "FUNCTION", functionDeclarationParts);
    }

    @Override
    public CreateFunction withFunctionDeclarationParts(List functionDeclarationParts) {
        return (CreateFunction) super.withFunctionDeclarationParts(functionDeclarationParts);
    }

    @Override
    public CreateFunction addFunctionDeclarationParts(String... functionDeclarationParts) {
        return (CreateFunction) super.addFunctionDeclarationParts(functionDeclarationParts);
    }

    @Override
    public CreateFunction addFunctionDeclarationParts(Collection functionDeclarationParts) {
        return (CreateFunction) super.addFunctionDeclarationParts(functionDeclarationParts);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy