org.jooq.Name Maven / Gradle / Ivy
Show all versions of payment-retries-plugin Show documentation
/*
* Copyright (c) 2009-2016, Data Geekery GmbH (http://www.datageekery.com)
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Other licenses:
* -----------------------------------------------------------------------------
* Commercial licenses for this work are available. These replace the above
* ASL 2.0 and offer limited warranties, support, maintenance, and commercial
* database integrations.
*
* For more information, please visit: http://www.jooq.org/licenses
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package org.jooq;
import static org.jooq.SQLDialect.CUBRID;
// ...
import static org.jooq.SQLDialect.FIREBIRD;
import static org.jooq.SQLDialect.FIREBIRD_3_0;
import static org.jooq.SQLDialect.H2;
// ...
import static org.jooq.SQLDialect.HSQLDB;
// ...
// ...
import static org.jooq.SQLDialect.POSTGRES;
// ...
// ...
// ...
import java.util.function.BiFunction;
import java.util.function.Function;
import javax.annotation.Generated;
import org.jooq.conf.Settings;
/**
* A SQL identifier QueryPart
.
*
* A Name
is a {@link QueryPart} that renders a SQL identifier
* according to the settings specified in {@link Settings#getRenderNameStyle()}.
*
* @author Lukas Eder
*/
public interface Name extends QueryPart {
/**
* Get the first segment of the qualified name (usually a {@link Catalog} or {@link Schema} name).
*/
String first();
/**
* Get the last segment of the qualified name (usually a {@link Table}, {@link Field}, or {@link Parameter} name).
*/
String last();
/**
* Whether this is a qualified name.
*
* This is true
as soon as {@link #getName()} has a length of more than 1
.
*/
boolean qualified();
/**
* The qualified name of this SQL identifier.
*/
String[] getName();
/**
* Create a {@link WindowDefinition} from this name.
*
* This creates a window definition that can be
*
* - declared in the
WINDOW
clause (see
* {@link SelectWindowStep#window(WindowDefinition...)}
* - referenced from the
OVER
clause (see
* {@link AggregateFunction#over(WindowDefinition)}
*
*/
@Support({ CUBRID, FIREBIRD_3_0, POSTGRES })
WindowDefinition as(WindowSpecification window);
/**
* Specify a subselect to refer to by the Name
to form a common
* table expression.
*
* Column names are implicitly inherited from the SELECT
* statement.
*/
@Support({ FIREBIRD, H2, HSQLDB, POSTGRES })
CommonTableExpression as(Select select);
/**
* Add a list of fields to this name to make this name a
* {@link DerivedColumnList}.
*
* The DerivedColumnList
can then be used along with a
* subselect to form a {@link CommonTableExpression} to be used with
* WITH
clauses.
*/
@Support({ FIREBIRD, H2, HSQLDB, POSTGRES })
DerivedColumnList fields(String... fieldNames);
/**
* Add a list of fields to this name to make this name a
* {@link DerivedColumnList}.
*
* The DerivedColumnList
can then be used along with a
* subselect to form a {@link CommonTableExpression} to be used with
* WITH
clauses.
*
* This works in a similar way as {@link #fields(String...)}, except
* that all column names are produced by a function that receives the CTE's
* {@link Select} columns and their column indexes as input.
*/
@Support({ FIREBIRD, H2, HSQLDB, POSTGRES })
DerivedColumnList fields(Function super Field>, ? extends String> fieldNameFunction);
/**
* Add a list of fields to this name to make this name a
* {@link DerivedColumnList}.
*
* The DerivedColumnList
can then be used along with a
* subselect to form a {@link CommonTableExpression} to be used with
* WITH
clauses.
*
* This works in a similar way as {@link #fields(String...)}, except
* that all column names are produced by a function that receives the CTE's
* {@link Select} columns as input.
*/
@Support({ FIREBIRD, H2, HSQLDB, POSTGRES })
DerivedColumnList fields(BiFunction super Field>, ? super Integer, ? extends String> fieldNameFunction);
// [jooq-tools] START [fields]
/**
* Add a list of fields to this name to make this name a
* {@link DerivedColumnList}.
*
* The DerivedColumnList
can then be used along with a
* subselect to form a {@link CommonTableExpression} to be used with
* WITH
clauses.
*/
@Generated("This method was generated using jOOQ-tools")
@Support({ FIREBIRD, H2, HSQLDB, POSTGRES })
DerivedColumnList1 fields(String fieldName1);
/**
* Add a list of fields to this name to make this name a
* {@link DerivedColumnList}.
*
* The DerivedColumnList
can then be used along with a
* subselect to form a {@link CommonTableExpression} to be used with
* WITH
clauses.
*/
@Generated("This method was generated using jOOQ-tools")
@Support({ FIREBIRD, H2, HSQLDB, POSTGRES })
DerivedColumnList2 fields(String fieldName1, String fieldName2);
/**
* Add a list of fields to this name to make this name a
* {@link DerivedColumnList}.
*
* The DerivedColumnList
can then be used along with a
* subselect to form a {@link CommonTableExpression} to be used with
* WITH
clauses.
*/
@Generated("This method was generated using jOOQ-tools")
@Support({ FIREBIRD, H2, HSQLDB, POSTGRES })
DerivedColumnList3 fields(String fieldName1, String fieldName2, String fieldName3);
/**
* Add a list of fields to this name to make this name a
* {@link DerivedColumnList}.
*
* The DerivedColumnList
can then be used along with a
* subselect to form a {@link CommonTableExpression} to be used with
* WITH
clauses.
*/
@Generated("This method was generated using jOOQ-tools")
@Support({ FIREBIRD, H2, HSQLDB, POSTGRES })
DerivedColumnList4 fields(String fieldName1, String fieldName2, String fieldName3, String fieldName4);
/**
* Add a list of fields to this name to make this name a
* {@link DerivedColumnList}.
*
* The DerivedColumnList
can then be used along with a
* subselect to form a {@link CommonTableExpression} to be used with
* WITH
clauses.
*/
@Generated("This method was generated using jOOQ-tools")
@Support({ FIREBIRD, H2, HSQLDB, POSTGRES })
DerivedColumnList5 fields(String fieldName1, String fieldName2, String fieldName3, String fieldName4, String fieldName5);
/**
* Add a list of fields to this name to make this name a
* {@link DerivedColumnList}.
*
* The DerivedColumnList
can then be used along with a
* subselect to form a {@link CommonTableExpression} to be used with
* WITH
clauses.
*/
@Generated("This method was generated using jOOQ-tools")
@Support({ FIREBIRD, H2, HSQLDB, POSTGRES })
DerivedColumnList6 fields(String fieldName1, String fieldName2, String fieldName3, String fieldName4, String fieldName5, String fieldName6);
/**
* Add a list of fields to this name to make this name a
* {@link DerivedColumnList}.
*
* The DerivedColumnList
can then be used along with a
* subselect to form a {@link CommonTableExpression} to be used with
* WITH
clauses.
*/
@Generated("This method was generated using jOOQ-tools")
@Support({ FIREBIRD, H2, HSQLDB, POSTGRES })
DerivedColumnList7 fields(String fieldName1, String fieldName2, String fieldName3, String fieldName4, String fieldName5, String fieldName6, String fieldName7);
/**
* Add a list of fields to this name to make this name a
* {@link DerivedColumnList}.
*
* The DerivedColumnList
can then be used along with a
* subselect to form a {@link CommonTableExpression} to be used with
* WITH
clauses.
*/
@Generated("This method was generated using jOOQ-tools")
@Support({ FIREBIRD, H2, HSQLDB, POSTGRES })
DerivedColumnList8 fields(String fieldName1, String fieldName2, String fieldName3, String fieldName4, String fieldName5, String fieldName6, String fieldName7, String fieldName8);
/**
* Add a list of fields to this name to make this name a
* {@link DerivedColumnList}.
*
* The DerivedColumnList
can then be used along with a
* subselect to form a {@link CommonTableExpression} to be used with
* WITH
clauses.
*/
@Generated("This method was generated using jOOQ-tools")
@Support({ FIREBIRD, H2, HSQLDB, POSTGRES })
DerivedColumnList9 fields(String fieldName1, String fieldName2, String fieldName3, String fieldName4, String fieldName5, String fieldName6, String fieldName7, String fieldName8, String fieldName9);
/**
* Add a list of fields to this name to make this name a
* {@link DerivedColumnList}.
*
* The DerivedColumnList
can then be used along with a
* subselect to form a {@link CommonTableExpression} to be used with
* WITH
clauses.
*/
@Generated("This method was generated using jOOQ-tools")
@Support({ FIREBIRD, H2, HSQLDB, POSTGRES })
DerivedColumnList10 fields(String fieldName1, String fieldName2, String fieldName3, String fieldName4, String fieldName5, String fieldName6, String fieldName7, String fieldName8, String fieldName9, String fieldName10);
/**
* Add a list of fields to this name to make this name a
* {@link DerivedColumnList}.
*
* The DerivedColumnList
can then be used along with a
* subselect to form a {@link CommonTableExpression} to be used with
* WITH
clauses.
*/
@Generated("This method was generated using jOOQ-tools")
@Support({ FIREBIRD, H2, HSQLDB, POSTGRES })
DerivedColumnList11 fields(String fieldName1, String fieldName2, String fieldName3, String fieldName4, String fieldName5, String fieldName6, String fieldName7, String fieldName8, String fieldName9, String fieldName10, String fieldName11);
/**
* Add a list of fields to this name to make this name a
* {@link DerivedColumnList}.
*
* The DerivedColumnList
can then be used along with a
* subselect to form a {@link CommonTableExpression} to be used with
* WITH
clauses.
*/
@Generated("This method was generated using jOOQ-tools")
@Support({ FIREBIRD, H2, HSQLDB, POSTGRES })
DerivedColumnList12 fields(String fieldName1, String fieldName2, String fieldName3, String fieldName4, String fieldName5, String fieldName6, String fieldName7, String fieldName8, String fieldName9, String fieldName10, String fieldName11, String fieldName12);
/**
* Add a list of fields to this name to make this name a
* {@link DerivedColumnList}.
*
* The DerivedColumnList
can then be used along with a
* subselect to form a {@link CommonTableExpression} to be used with
* WITH
clauses.
*/
@Generated("This method was generated using jOOQ-tools")
@Support({ FIREBIRD, H2, HSQLDB, POSTGRES })
DerivedColumnList13 fields(String fieldName1, String fieldName2, String fieldName3, String fieldName4, String fieldName5, String fieldName6, String fieldName7, String fieldName8, String fieldName9, String fieldName10, String fieldName11, String fieldName12, String fieldName13);
/**
* Add a list of fields to this name to make this name a
* {@link DerivedColumnList}.
*
* The DerivedColumnList
can then be used along with a
* subselect to form a {@link CommonTableExpression} to be used with
* WITH
clauses.
*/
@Generated("This method was generated using jOOQ-tools")
@Support({ FIREBIRD, H2, HSQLDB, POSTGRES })
DerivedColumnList14 fields(String fieldName1, String fieldName2, String fieldName3, String fieldName4, String fieldName5, String fieldName6, String fieldName7, String fieldName8, String fieldName9, String fieldName10, String fieldName11, String fieldName12, String fieldName13, String fieldName14);
/**
* Add a list of fields to this name to make this name a
* {@link DerivedColumnList}.
*
* The DerivedColumnList
can then be used along with a
* subselect to form a {@link CommonTableExpression} to be used with
* WITH
clauses.
*/
@Generated("This method was generated using jOOQ-tools")
@Support({ FIREBIRD, H2, HSQLDB, POSTGRES })
DerivedColumnList15 fields(String fieldName1, String fieldName2, String fieldName3, String fieldName4, String fieldName5, String fieldName6, String fieldName7, String fieldName8, String fieldName9, String fieldName10, String fieldName11, String fieldName12, String fieldName13, String fieldName14, String fieldName15);
/**
* Add a list of fields to this name to make this name a
* {@link DerivedColumnList}.
*
* The DerivedColumnList
can then be used along with a
* subselect to form a {@link CommonTableExpression} to be used with
* WITH
clauses.
*/
@Generated("This method was generated using jOOQ-tools")
@Support({ FIREBIRD, H2, HSQLDB, POSTGRES })
DerivedColumnList16 fields(String fieldName1, String fieldName2, String fieldName3, String fieldName4, String fieldName5, String fieldName6, String fieldName7, String fieldName8, String fieldName9, String fieldName10, String fieldName11, String fieldName12, String fieldName13, String fieldName14, String fieldName15, String fieldName16);
/**
* Add a list of fields to this name to make this name a
* {@link DerivedColumnList}.
*
* The DerivedColumnList
can then be used along with a
* subselect to form a {@link CommonTableExpression} to be used with
* WITH
clauses.
*/
@Generated("This method was generated using jOOQ-tools")
@Support({ FIREBIRD, H2, HSQLDB, POSTGRES })
DerivedColumnList17 fields(String fieldName1, String fieldName2, String fieldName3, String fieldName4, String fieldName5, String fieldName6, String fieldName7, String fieldName8, String fieldName9, String fieldName10, String fieldName11, String fieldName12, String fieldName13, String fieldName14, String fieldName15, String fieldName16, String fieldName17);
/**
* Add a list of fields to this name to make this name a
* {@link DerivedColumnList}.
*
* The DerivedColumnList
can then be used along with a
* subselect to form a {@link CommonTableExpression} to be used with
* WITH
clauses.
*/
@Generated("This method was generated using jOOQ-tools")
@Support({ FIREBIRD, H2, HSQLDB, POSTGRES })
DerivedColumnList18 fields(String fieldName1, String fieldName2, String fieldName3, String fieldName4, String fieldName5, String fieldName6, String fieldName7, String fieldName8, String fieldName9, String fieldName10, String fieldName11, String fieldName12, String fieldName13, String fieldName14, String fieldName15, String fieldName16, String fieldName17, String fieldName18);
/**
* Add a list of fields to this name to make this name a
* {@link DerivedColumnList}.
*
* The DerivedColumnList
can then be used along with a
* subselect to form a {@link CommonTableExpression} to be used with
* WITH
clauses.
*/
@Generated("This method was generated using jOOQ-tools")
@Support({ FIREBIRD, H2, HSQLDB, POSTGRES })
DerivedColumnList19 fields(String fieldName1, String fieldName2, String fieldName3, String fieldName4, String fieldName5, String fieldName6, String fieldName7, String fieldName8, String fieldName9, String fieldName10, String fieldName11, String fieldName12, String fieldName13, String fieldName14, String fieldName15, String fieldName16, String fieldName17, String fieldName18, String fieldName19);
/**
* Add a list of fields to this name to make this name a
* {@link DerivedColumnList}.
*
* The DerivedColumnList
can then be used along with a
* subselect to form a {@link CommonTableExpression} to be used with
* WITH
clauses.
*/
@Generated("This method was generated using jOOQ-tools")
@Support({ FIREBIRD, H2, HSQLDB, POSTGRES })
DerivedColumnList20 fields(String fieldName1, String fieldName2, String fieldName3, String fieldName4, String fieldName5, String fieldName6, String fieldName7, String fieldName8, String fieldName9, String fieldName10, String fieldName11, String fieldName12, String fieldName13, String fieldName14, String fieldName15, String fieldName16, String fieldName17, String fieldName18, String fieldName19, String fieldName20);
/**
* Add a list of fields to this name to make this name a
* {@link DerivedColumnList}.
*
* The DerivedColumnList
can then be used along with a
* subselect to form a {@link CommonTableExpression} to be used with
* WITH
clauses.
*/
@Generated("This method was generated using jOOQ-tools")
@Support({ FIREBIRD, H2, HSQLDB, POSTGRES })
DerivedColumnList21 fields(String fieldName1, String fieldName2, String fieldName3, String fieldName4, String fieldName5, String fieldName6, String fieldName7, String fieldName8, String fieldName9, String fieldName10, String fieldName11, String fieldName12, String fieldName13, String fieldName14, String fieldName15, String fieldName16, String fieldName17, String fieldName18, String fieldName19, String fieldName20, String fieldName21);
/**
* Add a list of fields to this name to make this name a
* {@link DerivedColumnList}.
*
* The DerivedColumnList
can then be used along with a
* subselect to form a {@link CommonTableExpression} to be used with
* WITH
clauses.
*/
@Generated("This method was generated using jOOQ-tools")
@Support({ FIREBIRD, H2, HSQLDB, POSTGRES })
DerivedColumnList22 fields(String fieldName1, String fieldName2, String fieldName3, String fieldName4, String fieldName5, String fieldName6, String fieldName7, String fieldName8, String fieldName9, String fieldName10, String fieldName11, String fieldName12, String fieldName13, String fieldName14, String fieldName15, String fieldName16, String fieldName17, String fieldName18, String fieldName19, String fieldName20, String fieldName21, String fieldName22);
// [jooq-tools] END [fields]
/**
* {@inheritDoc}
*/
@Override
boolean equals(Object other);
/**
* Compare this name with another one ignoring case.
*/
boolean equalsIgnoreCase(Name other);
}