public class SelectParser
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| static int | PARTS_COLUMNSWhat is being selected. | 
| static int | PARTS_ENDEverything after the ORDER BY part. | 
| static int | PARTS_FROMThe FROM part. | 
| static int | PARTS_GROUP_BYThe GROUP BY part. | 
| static int | PARTS_ORDER_BYThe ORDER BY part. | 
| static int | PARTS_STARTFrom the beginning (select) up to, but not including columns. | 
| static int | PARTS_WHEREThe 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 © 2020 Windward Studios - All Rights Reserved. We are java reporting and document generation software