Top Description Fields Constructors Methods
org.jooq.impl

pack-priv final Class QualifiedName

extends AbstractName
Class Inheritance
Static Imports
org.jooq.Name.Quoted.DEFAULT, .Name.Quoted.MIXED, org.jooq.impl.Tools.allMatch, .Tools.map, .Tools.stringLiteral

The default implementation for a qualified SQL identifier.
Author
Lukas Eder

Field Summary

Modifier and TypeField and Description
private transient Integer
private final UnqualifiedName[]
Inherited from org.jooq.impl.AbstractName:
NO_NAME

Constructor Summary

AccessConstructor and Description
pack-priv
QualifiedName(String[] qualifiedName)

pack-priv
QualifiedName(String[] qualifiedName, Name.Quoted quoted)

pack-priv
QualifiedName(Name[] qualifiedName)

private
QualifiedName(UnqualifiedName[] qualifiedName)

Method Summary

Modifier and TypeMethod and Description
public final void
accept(Context<?> ctx)

Implements org.jooq.QueryPartInternal.accept.

This QueryPart can accept a Context object in order to render a SQL string or to bind its variables.
public final boolean
empty()

Implements org.jooq.Name.empty.

Whether this is the empty name.
public final String
first()

Implements org.jooq.Name.first.

Get the first segment of the qualified name (usually a Catalog or Schema name).
public final String[]
getName()

Implements org.jooq.Name.getName.

The qualified name of this SQL identifier.
public int
hashCode()

Implements abstract org.jooq.impl.AbstractName.hashCode.

Implements org.jooq.QueryPart.hashCode.

Generate a hash code from this QueryPart.
private static final UnqualifiedName[]
last(Name[] qualifiedName)

public final String
last()

Implements org.jooq.Name.last.

Get the last segment of the qualified name (usually a Table, Field, or Parameter name).
private static final UnqualifiedName[]
names(String[] qualifiedName, Name.Quoted quoted)

private static final String[]
nonEmpty(String[] qualifiedName)

private static final Name[]
nonEmpty(Name[] names)

public final Name[]
parts()

Implements org.jooq.Name.parts.

Get the individual, unqualified name parts of this name.
public final boolean
qualified()

Implements org.jooq.Name.qualified.

Whether this is a qualified name.
public final Name
qualifier()

Implements org.jooq.Name.qualifier.

This name's qualifier (if it is qualified()), or null.
public final boolean
qualifierQualified()

Implements org.jooq.Name.qualifierQualified.

Whether this is a qualified name and the qualifier() is also a qualified name.
public final Name.Quoted
quoted()

Implements org.jooq.Name.quoted.

Whether this is a quoted name.
public final Name
quotedName()

Implements org.jooq.Name.quotedName.

This name, quoted.
public final Name
unqualifiedName()

Implements org.jooq.Name.unqualifiedName.

This name, unqualified.
public final Name
unquotedName()

Implements org.jooq.Name.unquotedName.

This name, unquoted.
Inherited from org.jooq.impl.AbstractName:
appendappendasasasasMaterializedasNotMaterializedcompareToequalsequalsIgnoreCasefieldsfieldsfieldsfieldsfieldsfieldsfieldsfieldsfieldsfieldsfieldsfieldsfieldsfieldsfieldsfieldsfieldsfieldsfieldsfieldsfieldsfieldsfieldsfieldsfieldsfieldsfieldsfieldsfieldsfieldsfieldsfieldsfieldsfieldsfieldsfieldsfieldsfieldsfieldsfieldsfieldsfieldsfieldsfieldsfieldsfieldsfieldsfields

Field Detail

hashback to summary
private transient Integer hash
qualifiedNameback to summary
private final UnqualifiedName[] qualifiedName

Constructor Detail

QualifiedNameback to summary
pack-priv QualifiedName(String[] qualifiedName)
QualifiedNameback to summary
pack-priv QualifiedName(String[] qualifiedName, Name.Quoted quoted)
QualifiedNameback to summary
pack-priv QualifiedName(Name[] qualifiedName)
QualifiedNameback to summary
private QualifiedName(UnqualifiedName[] qualifiedName)

Method Detail

acceptback to summary
public final void accept(Context<?> ctx)

Implements org.jooq.QueryPartInternal.accept.

Doc from org.jooq.QueryPartInternal.accept.

This QueryPart can accept a Context object in order to render a SQL string or to bind its variables.

Annotations
@Override
emptyback to summary
public final boolean empty()

Implements org.jooq.Name.empty.

Doc from org.jooq.Name.empty.

Whether this is the empty name.

An unnamed object will have an "" empty string as its name. If a table has no explicit schema, it will be located in the default schema whose name is "".

Annotations
@Override
firstback to summary
public final String first()

Implements org.jooq.Name.first.

Doc from org.jooq.Name.first.

Get the first segment of the qualified name (usually a Catalog or Schema name).

Annotations
@Override
getNameback to summary
public final String[] getName()

Implements org.jooq.Name.getName.

Doc from org.jooq.Name.getName.

The qualified name of this SQL identifier.

Annotations
@Override
hashCodeback to summary
public int hashCode()

Implements abstract org.jooq.impl.AbstractName.hashCode.

Implements org.jooq.QueryPart.hashCode.

Doc from org.jooq.QueryPart.hashCode.

Generate a hash code from this QueryPart.

In general, QueryPart hash codes are the same as the hash codes generated from toString(). This guarantees consistent behaviour with equals(Object)

Some QueryPart implementations may choose to override this behaviour for improved performance, as toString() is an expensive operation, if called many times.

Returns:int

The QueryPart hash code

Annotations
@Override
lastback to summary
private static final UnqualifiedName[] last(Name[] qualifiedName)
lastback to summary
public final String last()

Implements org.jooq.Name.last.

Doc from org.jooq.Name.last.

Get the last segment of the qualified name (usually a Table, Field, or Parameter name).

Annotations
@Override
namesback to summary
private static final UnqualifiedName[] names(String[] qualifiedName, Name.Quoted quoted)
nonEmptyback to summary
private static final String[] nonEmpty(String[] qualifiedName)
nonEmptyback to summary
private static final Name[] nonEmpty(Name[] names)
partsback to summary
public final Name[] parts()

Implements org.jooq.Name.parts.

Doc from org.jooq.Name.parts.

Get the individual, unqualified name parts of this name.

Annotations
@Override
qualifiedback to summary
public final boolean qualified()

Implements org.jooq.Name.qualified.

Doc from org.jooq.Name.qualified.

Whether this is a qualified name.

This is true as soon as getName() has a length of more than 1 and qualifier() is not null.

Annotations
@Override
qualifierback to summary
public final Name qualifier()

Implements org.jooq.Name.qualifier.

Doc from org.jooq.Name.qualifier.

This name's qualifier (if it is qualified()), or null.

Annotations
@Override
qualifierQualifiedback to summary
public final boolean qualifierQualified()

Implements org.jooq.Name.qualifierQualified.

Doc from org.jooq.Name.qualifierQualified.

Whether this is a qualified name and the qualifier() is also a qualified name.

This is true as soon as getName() has a length of more than 2 and qualifier() is not null and its qualified() property is also true.

Annotations
@Override
quotedback to summary
public final Name.Quoted quoted()

Implements org.jooq.Name.quoted.

Doc from org.jooq.Name.quoted.

Whether this is a quoted name.

Annotations
@Override
quotedNameback to summary
public final Name quotedName()

Implements org.jooq.Name.quotedName.

Doc from org.jooq.Name.quotedName.

This name, quoted.

Annotations
@Override
unqualifiedNameback to summary
public final Name unqualifiedName()

Implements org.jooq.Name.unqualifiedName.

Doc from org.jooq.Name.unqualifiedName.

This name, unqualified.

Annotations
@Override
unquotedNameback to summary
public final Name unquotedName()

Implements org.jooq.Name.unquotedName.

Doc from org.jooq.Name.unquotedName.

This name, unquoted.

Annotations
@Override