public class SelectParser
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
PARTS_COLUMNS
What is being selected.
|
static int |
PARTS_END
Everything after the ORDER BY part.
|
static int |
PARTS_FROM
The FROM part.
|
static int |
PARTS_GROUP_BY
The GROUP BY part.
|
static int |
PARTS_ORDER_BY
The ORDER BY part.
|
static int |
PARTS_START
From the beginning (select) up to, but not including columns.
|
static int |
PARTS_WHERE
The WHERE part.
|
Constructor and Description |
---|
SelectParser(java.lang.String select)
Parse the string.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getFromTables()
All the tables in the from part of the select
|
java.lang.String |
getPart(int part)
Return this part of the select.
|
java.lang.String |
getPreceeding(int part)
Return all parts up to but not including this part from the select..
|
java.lang.String |
getSuceeding(int part)
Return all parts after but not including this part from the select..
|
boolean |
isValid()
true if we could parse the select.
|
public static final int PARTS_START
public static final int PARTS_COLUMNS
public static final int PARTS_FROM
public static final int PARTS_WHERE
public static final int PARTS_GROUP_BY
public static final int PARTS_ORDER_BY
public static final int PARTS_END
public SelectParser(java.lang.String select)
select
- The select to parse.public final boolean isValid()
public final java.lang.String getPreceeding(int part)
part
- All parts preceeding this part..public final java.lang.String getPart(int part)
part
- The part requested.public final java.lang.String getSuceeding(int part)
part
- All parts after this part..public final java.lang.String[] getFromTables()
Copyright © 2017 Windward Reports - All Rights Reserved. We are java reporting software