|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.datatools.sqltools.sql.parser.ParserParameters
public class ParserParameters
This class defines the parameters passed into the parser. Some standard parameter keys are defined in this class but different parser implementations can also use their specific parameter types via this generic mechanism.
Field Summary | |
---|---|
static java.lang.String |
PARAM_CONSUME_EXCEPTION
Parser parameter type constant indicating whether the ParseException should be consumed during parsing. |
static java.lang.String |
PARAM_DB_NAME
Parser parameter type constant indicating the database name in which database objects can be found. |
static java.lang.String |
PARAM_HEADER_MODE
Parser parameter type constant of type Boolean indicating only the routine header is interesting to the consumer. |
static java.lang.String |
PARAM_LINK_SQL_MODEL
Parser parameter type constant of type Boolean indicating whether needs to link sql model object in the generated ast nodes. |
static java.lang.String |
PARAM_PROFILE_NAME
Parser parameter type constant indicating the connection profile name that can be used in the parser. |
static java.lang.String |
PARAM_STMT_TYPE
Parser parameter type constant indicating the outmost statement type. |
static java.lang.String |
PARAM_USE_DELIMITER
Parser parameter type constant indicating whether to use delimiter for SQL statements . |
Constructor Summary | |
---|---|
ParserParameters(boolean useDelimiter)
Constructs a ParserParameter using the given useDelimiter value |
|
ParserParameters(boolean useDelimiter,
int type)
Constructs a ParserParameter using the given useDelimiter and type value. |
Method Summary | |
---|---|
boolean |
getBoolean(java.lang.Object key)
Convenient method for getProperty(Object key) |
int |
getInt(java.lang.Object key)
Convenient method for getProperty(Object key) |
java.util.HashMap |
getProperties()
Gets all the properties. |
java.lang.Object |
getProperty(java.lang.Object key)
Gets the property value as Object |
void |
setProperties(java.util.HashMap _properties)
Sets the properties. |
void |
setProperty(java.lang.Object key,
java.lang.Object value)
Sets the property key to value |
void |
setUseDelimiter(boolean useDelimiter)
Sets the useDelimiter value |
boolean |
useDelimiter()
Returns a boolean indicating whether to use delimiter for SQL statements. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PARAM_USE_DELIMITER
public static final java.lang.String PARAM_PROFILE_NAME
public static final java.lang.String PARAM_DB_NAME
public static final java.lang.String PARAM_STMT_TYPE
SQLParserConstants
,
Constant Field Valuespublic static final java.lang.String PARAM_HEADER_MODE
SQLParserConstants
,
Constant Field Valuespublic static final java.lang.String PARAM_LINK_SQL_MODEL
IASTDeployable#setSQLModel
,
SQLParserConstants
,
Constant Field Valuespublic static final java.lang.String PARAM_CONSUME_EXCEPTION
ParseException
should be consumed during parsing. If the
parser is not accurate, this parameter should be set to true.
Constructor Detail |
---|
public ParserParameters(boolean useDelimiter)
useDelimiter
- whether to use delimiter for SQL statementspublic ParserParameters(boolean useDelimiter, int type)
useDelimiter
- whether to use delimiter for SQL statementstype
- the outmost statement type.SQLParserConstants
Method Detail |
---|
public boolean useDelimiter()
public void setUseDelimiter(boolean useDelimiter)
useDelimiter
- public java.util.HashMap getProperties()
public void setProperties(java.util.HashMap _properties)
_properties
- public java.lang.Object getProperty(java.lang.Object key)
Object
key
- property key
public void setProperty(java.lang.Object key, java.lang.Object value)
key
to value
key
- value
- public int getInt(java.lang.Object key)
key
-
public boolean getBoolean(java.lang.Object key)
key
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |