|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.akiban.sql.parser.SQLParser
public class SQLParser
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.akiban.sql.parser.SQLParserContext |
|---|
SQLParserContext.IdentifierCase |
| Constructor Summary | |
|---|---|
SQLParser()
Make a new parser. |
|
| Method Summary | |
|---|---|
void |
checkIdentifierLengthLimit(String identifier)
Check that identifier is not too long. |
void |
checkStringLiteralLengthLimit(String image)
Check that string literal is not too long. |
String |
generateColumnName()
|
Set<SQLParserFeature> |
getFeatures()
|
SQLParserContext.IdentifierCase |
getIdentifierCase()
How are unquoted identifiers standardized? |
int |
getMaxIdentifierLength()
Get maximum length of an identifier. |
int |
getMaxStringLiteralLength()
Get maximum length of a string literal. |
String |
getMessageLocale()
|
NodeFactory |
getNodeFactory()
Get a node factory. |
List<ParameterNode> |
getParameterList()
Return the parameters to the parsed statement. |
Map |
getPrintedObjectsMap()
Return a map of AST nodes that have already been printed during a compiler phase, so as to be able to avoid printing a node more than once. |
String |
getSQLText()
Return the SQL string this parser just parsed. |
boolean |
hasFeature(SQLParserFeature feature)
Is the given feature enabled for this parser? |
ParameterNode |
lookupUnnamedParameter(int paramNumber)
Looks up an unnamed parameter given its parameter number. |
StatementNode |
parseStatement(String sqlText)
Normal external parser entry. |
List<StatementNode> |
parseStatements(String sqlText)
Parse multiple statements delimited by semicolons. |
protected void |
reinit(String sqlText)
|
void |
setMaxIdentifierLength(int maxLength)
Set maximum length of an identifier. |
void |
setMaxStringLiteralLength(int maxLength)
Set maximum length of a string literal. |
void |
setMessageLocale(String locale)
Mark as requesting locale. |
void |
setNodeFactory(NodeFactory nodeFactory)
Set the node factory. |
void |
setReturnParameterFlag()
Mark as returning a parameter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SQLParser()
| Method Detail |
|---|
public String getSQLText()
public List<ParameterNode> getParameterList()
public ParameterNode lookupUnnamedParameter(int paramNumber)
paramNumber - Number of parameter in unnamedparameter list.
public StatementNode parseStatement(String sqlText)
throws StandardException
StandardException
public List<StatementNode> parseStatements(String sqlText)
throws StandardException
StandardException
protected void reinit(String sqlText)
throws StandardException
StandardExceptionpublic int getMaxStringLiteralLength()
public void setMaxStringLiteralLength(int maxLength)
public void checkStringLiteralLengthLimit(String image)
throws StandardException
checkStringLiteralLengthLimit in interface SQLParserContextStandardExceptionpublic int getMaxIdentifierLength()
public void setMaxIdentifierLength(int maxLength)
public void checkIdentifierLengthLimit(String identifier)
throws StandardException
checkIdentifierLengthLimit in interface SQLParserContextStandardExceptionpublic void setReturnParameterFlag()
SQLParserContext
setReturnParameterFlag in interface SQLParserContextpublic String getMessageLocale()
public void setMessageLocale(String locale)
SQLParserContext
setMessageLocale in interface SQLParserContextpublic NodeFactory getNodeFactory()
getNodeFactory in interface SQLParserContextpublic void setNodeFactory(NodeFactory nodeFactory)
public Map getPrintedObjectsMap()
getPrintedObjectsMap in interface SQLParserContextQueryTreeNode.treePrint(int)public String generateColumnName()
public Set<SQLParserFeature> getFeatures()
public boolean hasFeature(SQLParserFeature feature)
SQLParserContext
hasFeature in interface SQLParserContextpublic SQLParserContext.IdentifierCase getIdentifierCase()
SQLParserContext
getIdentifierCase in interface SQLParserContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||