|
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc für Elexis version 2.1.7.dev vom 01.09.2013 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.healthmarketscience.jackcess.query.Query
public abstract class Query
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 Class Summary | |
---|---|
protected static class |
Query.AppendableList<E>
|
static class |
Query.Row
Struct containing the information from a single row of the system query table. |
protected static class |
Query.RowFilter
|
protected static class |
Query.RowFormatter
|
static class |
Query.Type
|
Field Summary | |
---|---|
protected static org.apache.commons.logging.Log |
LOG
|
Constructor Summary | |
---|---|
protected |
Query(java.lang.String name,
java.util.List<Query.Row> rows,
int objectId,
Query.Type type)
|
Method Summary | |
---|---|
static Query |
create(int objectFlag,
java.lang.String name,
java.util.List<Query.Row> rows,
int objectId)
Creates a concrete Query instance from the given query data. |
protected static java.util.List<Query.Row> |
filterRowsByFlag(java.util.List<Query.Row> rows,
short flag)
|
protected static java.util.List<Query.Row> |
filterRowsByNotFlag(java.util.List<Query.Row> rows,
short flag)
|
protected java.util.List<Query.Row> |
getColumnRows()
|
protected Query.Row |
getFlagRow()
|
protected java.lang.String |
getFromRemoteDbPath()
|
protected java.lang.String |
getFromRemoteDbType()
|
protected java.util.List<java.lang.String> |
getFromTables()
|
protected java.util.List<Query.Row> |
getGroupByRows()
|
protected Query.Row |
getHavingRow()
|
protected static int |
getIntValue(java.lang.Integer i,
int def)
|
protected java.util.List<Query.Row> |
getJoinRows()
|
java.lang.String |
getName()
Returns the name of the query. |
int |
getObjectFlag()
|
int |
getObjectId()
Returns the unique object id of the query. |
protected java.util.List<Query.Row> |
getOrderByRows()
|
protected java.util.List<java.lang.String> |
getOrderings()
|
java.lang.String |
getOwnerAccessType()
|
protected java.util.List<Query.Row> |
getParameterRows()
|
java.util.List<java.lang.String> |
getParameters()
|
protected Query.Row |
getRemoteDatabaseRow()
|
protected Query.Row |
getRowByAttribute(java.lang.Byte attribute)
|
java.util.List<Query.Row> |
getRows()
Returns the rows from the system query table from which the query information was derived. |
protected java.util.List<Query.Row> |
getRowsByAttribute(java.lang.Byte attribute)
|
protected static short |
getShortValue(java.lang.Short s,
int def)
|
protected java.util.List<Query.Row> |
getTableRows()
|
Query.Type |
getType()
Returns the type of the query. |
protected Query.Row |
getTypeRow()
|
protected static Query.Row |
getUniqueRow(java.util.List<Query.Row> rows)
|
protected java.lang.String |
getWhereExpression()
|
protected Query.Row |
getWhereRow()
|
protected boolean |
hasFlag(int flagMask)
|
protected static boolean |
hasFlag(Query.Row row,
int flagMask)
|
protected boolean |
supportsStandardClauses()
|
protected static java.lang.StringBuilder |
toAlias(java.lang.StringBuilder builder,
java.lang.String alias)
|
protected static java.lang.StringBuilder |
toOptionalQuotedExpr(java.lang.StringBuilder builder,
java.lang.String fullExpr,
boolean isIdentifier)
|
protected static java.lang.StringBuilder |
toQuotedExpr(java.lang.StringBuilder builder,
java.lang.String expr)
|
protected static java.lang.StringBuilder |
toRemoteDb(java.lang.StringBuilder builder,
java.lang.String remoteDbPath,
java.lang.String remoteDbType)
|
protected void |
toSQLParameterString(java.lang.StringBuilder builder)
|
java.lang.String |
toSQLString()
Returns the actual SQL string which this query data represents. |
protected abstract void |
toSQLString(java.lang.StringBuilder builder)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.commons.logging.Log LOG
Constructor Detail |
---|
protected Query(java.lang.String name, java.util.List<Query.Row> rows, int objectId, Query.Type type)
Method Detail |
---|
public java.lang.String getName()
public Query.Type getType()
public int getObjectId()
public int getObjectFlag()
public java.util.List<Query.Row> getRows()
protected java.util.List<Query.Row> getRowsByAttribute(java.lang.Byte attribute)
protected Query.Row getRowByAttribute(java.lang.Byte attribute)
protected Query.Row getTypeRow()
protected java.util.List<Query.Row> getParameterRows()
protected Query.Row getFlagRow()
protected Query.Row getRemoteDatabaseRow()
protected java.util.List<Query.Row> getTableRows()
protected java.util.List<Query.Row> getColumnRows()
protected java.util.List<Query.Row> getJoinRows()
protected Query.Row getWhereRow()
protected java.util.List<Query.Row> getGroupByRows()
protected Query.Row getHavingRow()
protected java.util.List<Query.Row> getOrderByRows()
protected abstract void toSQLString(java.lang.StringBuilder builder)
protected void toSQLParameterString(java.lang.StringBuilder builder)
public java.util.List<java.lang.String> getParameters()
protected java.util.List<java.lang.String> getFromTables()
protected java.lang.String getFromRemoteDbPath()
protected java.lang.String getFromRemoteDbType()
protected java.lang.String getWhereExpression()
protected java.util.List<java.lang.String> getOrderings()
public java.lang.String getOwnerAccessType()
protected boolean hasFlag(int flagMask)
protected boolean supportsStandardClauses()
public java.lang.String toSQLString()
public java.lang.String toString()
toString
in class java.lang.Object
public static Query create(int objectFlag, java.lang.String name, java.util.List<Query.Row> rows, int objectId)
objectFlag
- the flag indicating the type of the queryname
- the name of the queryrows
- the rows from the system query table containing the data describing this queryobjectId
- the unique object id of this query
protected static Query.Row getUniqueRow(java.util.List<Query.Row> rows)
protected static java.util.List<Query.Row> filterRowsByFlag(java.util.List<Query.Row> rows, short flag)
protected static java.util.List<Query.Row> filterRowsByNotFlag(java.util.List<Query.Row> rows, short flag)
protected static boolean hasFlag(Query.Row row, int flagMask)
protected static short getShortValue(java.lang.Short s, int def)
protected static int getIntValue(java.lang.Integer i, int def)
protected static java.lang.StringBuilder toOptionalQuotedExpr(java.lang.StringBuilder builder, java.lang.String fullExpr, boolean isIdentifier)
protected static java.lang.StringBuilder toQuotedExpr(java.lang.StringBuilder builder, java.lang.String expr)
protected static java.lang.StringBuilder toRemoteDb(java.lang.StringBuilder builder, java.lang.String remoteDbPath, java.lang.String remoteDbType)
protected static java.lang.StringBuilder toAlias(java.lang.StringBuilder builder, java.lang.String alias)
|
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc für Elexis version 2.1.7.dev vom 01.09.2013 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |