APIdia Launch Partner
Top Description Inners Fields Constructors Methods
io.github.spannm.jackcess.impl.query

public abstract Class QueryImpl

extends Object
implements Query
Class Inheritance
All Implemented Interfaces
io.github.spannm.jackcess.query.Query
Known Direct Subclasses
io.github.spannm.jackcess.impl.query.QueryImpl.UnknownQueryImpl, io.github.spannm.jackcess.impl.query.UnionQueryImpl, io.github.spannm.jackcess.impl.query.UpdateQueryImpl, io.github.spannm.jackcess.impl.query.BaseSelectQueryImpl, io.github.spannm.jackcess.impl.query.DataDefinitionQueryImpl, io.github.spannm.jackcess.impl.query.PassthroughQueryImpl
Imports
io.github.spannm.jackcess.DataType, .RowId, io.github.spannm.jackcess.impl.DatabaseImpl, .RowIdImpl, .RowImpl, io.github.spannm.jackcess.query.Query, io.github.spannm.jackcess.util.ToStringBuilder, java.util.ArrayList, .Collection, .Iterator, .List, java.util.logging.Level, .Logger

Base class for classes which encapsulate information about an Access query. The toSQLString() method can be used to convert this object into the actual SQL string which this query data represents.

Nested and Inner Type Summary

Modifier and TypeClass and Description
protected static class
private class
QueryImpl.Join

Table data provided by a join expression.

public static class
QueryImpl.Row

Struct containing the information from a single row of the system query table.

protected abstract static class
protected abstract static class
private static class
QueryImpl.SimpleTable

Table data provided by a single table expression.

private abstract static class
QueryImpl.TableSource

Base type of something which provides table data in a query

private static class

Field Summary

Modifier and TypeField and Description
private static final QueryImpl.Row
protected static final Logger
private final String
private final int
private final int
private final List<QueryImpl.Row>
private final Query.Type

Constructor Summary

AccessConstructor and Description
protected
QueryImpl(String name, List<QueryImpl.Row> rows, int objectId, int objectFlag, Query.Type type)

Method Summary

Modifier and TypeMethod and Description
public static QueryImpl

Returns:

a Query instance for the given query data
create
(int
the flag indicating the type of the query
objectFlag
,
String
the name of the query
name
,
List<QueryImpl.Row>
the rows from the system query table containing the data describing this query
rows
,
int
the unique object id of this query
objectId
)

Creates a concrete Query instance from the given query data.

protected static List<QueryImpl.Row>
filterRowsByFlag(List<QueryImpl.Row> rows, final short flag)

protected static List<QueryImpl.Row>
filterRowsByNotFlag(List<QueryImpl.Row> rows, final short flag)

protected List<QueryImpl.Row>
private static QueryImpl.Row
protected QueryImpl.Row
protected String
protected String
protected List<String>
protected List<QueryImpl.Row>
protected QueryImpl.Row
protected static int
getIntValue(Integer i, int def)

protected List<QueryImpl.Row>
public final String
getName()

Implements io.github.spannm.jackcess.query.Query.getName.

Returns the name of the query.

public int
public int
getObjectId()

Implements io.github.spannm.jackcess.query.Query.getObjectId.

Returns the unique object id of the query.

protected List<QueryImpl.Row>
protected List<String>
public String
protected List<QueryImpl.Row>
public List<String>
private static Short
protected QueryImpl.Row
protected QueryImpl.Row
public List<QueryImpl.Row>
getRows()

Returns the rows from the system query table from which the query information was derived.

protected List<QueryImpl.Row>
private static List<QueryImpl.Row>
protected static short
getShortValue(Short s, int def)

protected List<QueryImpl.Row>
public Query.Type
getType()

Implements io.github.spannm.jackcess.query.Query.getType.

Returns the type of the query.

public QueryImpl.Row
protected QueryImpl.Row
protected String
protected QueryImpl.Row
protected boolean
hasFlag(int flagMask)

protected static boolean
hasFlag(QueryImpl.Row row, int flagMask)

public boolean
isHidden()

Implements io.github.spannm.jackcess.query.Query.isHidden.

Whether or not this query has been marked as hidden.

protected static boolean
protected boolean
protected static StringBuilder
toAlias(StringBuilder builder, String alias)

protected static StringBuilder
toOptionalQuotedExpr(StringBuilder builder, String fullExpr, boolean isIdentifier)

protected static StringBuilder
protected static StringBuilder
toRemoteDb(StringBuilder builder, String remoteDbPath, String remoteDbType)

protected void
protected abstract void
public String
toSQLString()

Implements io.github.spannm.jackcess.query.Query.toSQLString.

Returns the actual SQL string which this query data represents.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

private String
private static String
withErrorContext(String msg, String queryName)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait