All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----relaaja.database.parser.SQLParser
Tämä jäsentäjä tekee osittaisen jäsennyksen SQL-92-standardin sekä
Oraclen murteen mukaisesta kielestä. Tuloksena syntyy sarja
palvelupyyntöjä DataDefinition-rajapinnalle, jonka avulla luodaan
tietokantarakenteita.
Osa SQL-lauseiden osista jätetään huomiotta ja osa siirretään sellaisenaan
rajapinnan yli tietokantaolion tallennettavaksi. Niitä hyväksikäyttäen
voidaan tietokannan rakenteista luoda myöhemmin lähes alkuperäisiä vastaavat
kannankuvauslauseet.
SQL-kielioppi jäsennyspuumäärittelyineen on kirjoitettu tiedostoon SQLParser.jjt. Se käännetään JJTree-esikääntäjällä SQLParser.jj-tiedostoksi, mihin on lisätty komennot jäsennyspuun luontia varten. SQLParser.jj käännetään JavaCC-metakääntäjällä java-tiedostoksi. Kääntäessään se tuottaa seuraavat tiedostot:
JJTree-kääntäjä luo käännösvaiheessaan seuraavat tiedostot:
protected static JJTSQLParserState jjtreeoutput
protected static PrintWriter output
protected static DataDefinition database
protected static final String bugReportString
private static boolean jj_initialized_oncetoken_source
public static SQLParserTokenManager token_sourcejj_input_stream
static ASCII_CharStream jj_input_streamtoken
public static Token tokenjj_nt
public static Token jj_ntjj_ntk
private static int jj_ntkjj_scanpos
private static Token jj_scanposjj_lastpos
private static Token jj_lastposjj_la
private static int jj_lalookingAhead
public static boolean lookingAheadjj_semLA
private static boolean jj_semLAjj_gen
private static int jj_genjj_la1
private static final int jj_la1[]jj_la1_0
private static final int jj_la1_0[]jj_la1_1
private static final int jj_la1_1[]jj_la1_2
private static final int jj_la1_2[]jj_la1_3
private static final int jj_la1_3[]jj_la1_4
private static final int jj_la1_4[]jj_la1_5
private static final int jj_la1_5[]jj_2_rtns
private static final JJSQLParserCalls jj_2_rtns[]jj_rescan
private static boolean jj_rescanjj_gc
private static int jj_gcjj_expentries
private static Vector jj_expentriesjj_expentry
private static int jj_expentry[]jj_kind
private static int jj_kindjj_lasttokens
private static int jj_lasttokens[]jj_endpos
private static int jj_endpos
public SQLParser()
public SQLParser(InputStream stream)SQLParser
public SQLParser(SQLParserTokenManager tm)
public static void parse(InputStream inStream, OutputStream errStream, DataDefinition database) throws ParseDidNothingException
protected static void println(String msg)
public static void main(String args[])
public static final SimpleNode Start() throws ParseExceptionSQLStatement
public static final void SQLStatement() throws ParseExceptionCreateTableStatement
public static final void CreateTableStatement() throws ParseExceptionTableName
public static final void TableName() throws ParseExceptionQualifiedName
public static final void QualifiedName() throws ParseExceptionIdentifier
public static final void Identifier() throws ParseExceptionRegularIdentifier
public static final String RegularIdentifier() throws ParseExceptionDelimitedIdentifier
public static final String DelimitedIdentifier() throws ParseExceptionDelimitedIdentifierPart
public static final String DelimitedIdentifierPart() throws ParseExceptionTableElementList
public static final void TableElementList() throws ParseExceptionTableElement
public static final void TableElement() throws ParseExceptionColumnDefinition
public static final void ColumnDefinition() throws ParseExceptionColumnName
public static final void ColumnName() throws ParseExceptionDataType
public static final void DataType() throws ParseExceptionSpecificType
public static final void SpecificType() throws ParseExceptionCharacterSetName
public static final void CharacterSetName() throws ParseExceptionIntervalType
public static final void IntervalType() throws ParseExceptionIntervalQualifier
public static final void IntervalQualifier() throws ParseExceptionStartField
public static final void StartField() throws ParseExceptionNonSecondDatetimeField
public static final void NonSecondDatetimeField() throws ParseExceptionEndField
public static final void EndField() throws ParseExceptionSingleDatetimeField
public static final void SingleDatetimeField() throws ParseExceptionDomainName
public static final void DomainName() throws ParseExceptionDefaultClause
public static final void DefaultClause() throws ParseExceptionDefaultOption
public static final void DefaultOption() throws ParseExceptionLiteral
public static final void Literal() throws ParseExceptionDatetimeValueFunction
public static final void DatetimeValueFunction() throws ParseExceptionColumnConstraintDefinition
public static final void ColumnConstraintDefinition() throws ParseExceptionConstraintName
public static final void ConstraintName() throws ParseExceptionColumnConstraint
public static final void ColumnConstraint() throws ParseExceptionNotNullSpecification
public static final void NotNullSpecification() throws ParseExceptionUniqueSpecification
public static final void UniqueSpecification() throws ParseExceptionReferencesSpecification
public static final void ReferencesSpecification() throws ParseExceptionReferencedTableAndColumns
public static final void ReferencedTableAndColumns() throws ParseExceptionColumnNameList
public static final void ColumnNameList() throws ParseExceptionReferentialTriggeredAction
public static final void ReferentialTriggeredAction() throws ParseExceptionUpdateRule
public static final void UpdateRule() throws ParseExceptionReferentialAction
public static final void ReferentialAction() throws ParseExceptionDeleteRule
public static final void DeleteRule() throws ParseExceptionCheckConstraintDefinition
public static final void CheckConstraintDefinition() throws ParseExceptionskip_to_matching_parenthesis
static void skip_to_matching_parenthesis() throws ParseExceptionConstraintAttributes
public static final void ConstraintAttributes() throws ParseExceptionConstraintCheckTime
public static final void ConstraintCheckTime() throws ParseExceptionOracleConstraintParameters
public static final void OracleConstraintParameters() throws ParseExceptionUsingIndex
public static final void UsingIndex() throws ParseExceptionOracleParams1
public static final void OracleParams1() throws ParseExceptionCollateClause
public static final void CollateClause() throws ParseExceptionTableConstraintDefinition
public static final void TableConstraintDefinition() throws ParseExceptionTableConstraint
public static final void TableConstraint() throws ParseExceptionUniqueConstraintDefinition
public static final void UniqueConstraintDefinition() throws ParseExceptionReferentialConstraintDefinition
public static final void ReferentialConstraintDefinition() throws ParseExceptionOracleParams2
public static final void OracleParams2() throws ParseExceptionAlterTableStatement
public static final void AlterTableStatement() throws ParseExceptionAlterTableAction
public static final void AlterTableAction() throws ParseExceptionAddColumnDefinition
public static final void AddColumnDefinition() throws ParseExceptionColumnDefinitionList
public static final void ColumnDefinitionList() throws ParseExceptionAlterColumnDefinition
public static final void AlterColumnDefinition() throws ParseExceptionAlterColumnAction
public static final void AlterColumnAction() throws ParseExceptionAlterDefault
public static final void AlterDefault() throws ParseExceptionModifyColumnDefinition
public static final void ModifyColumnDefinition() throws ParseExceptionColumnModification
public static final void ColumnModification() throws ParseExceptionDropColumnDefinition
public static final void DropColumnDefinition() throws ParseExceptionDropBehavior
public static final void DropBehavior() throws ParseExceptionAddTableConstraintDefinition
public static final void AddTableConstraintDefinition() throws ParseExceptionTableConstraintDefinitionList
public static final void TableConstraintDefinitionList() throws ParseExceptionDropTableConstraintDefinition
public static final void DropTableConstraintDefinition() throws ParseExceptionDropTableStatement
public static final void DropTableStatement() throws ParseExceptionCreateDomainStatement
public static final void CreateDomainStatement() throws ParseExceptionDomainConstraint
public static final void DomainConstraint() throws ParseExceptionAlterDomainStatement
public static final void AlterDomainStatement() throws ParseExceptionAlterDomainAction
public static final void AlterDomainAction() throws ParseExceptionAddDomainConstraintDefinition
public static final void AddDomainConstraintDefinition() throws ParseExceptionDropDomainConstraintDefinition
public static final void DropDomainConstraintDefinition() throws ParseExceptionDropDomainStatement
public static final void DropDomainStatement() throws ParseExceptionOtherStatements
public static final void OtherStatements(String name) throws ParseExceptionskip_this_statement
static void skip_this_statement() throws ParseExceptionjj_2_1
private static final boolean jj_2_1(int xla)jj_2_2
private static final boolean jj_2_2(int xla)jj_2_3
private static final boolean jj_2_3(int xla)jj_2_4
private static final boolean jj_2_4(int xla)jj_2_5
private static final boolean jj_2_5(int xla)jj_2_6
private static final boolean jj_2_6(int xla)jj_2_7
private static final boolean jj_2_7(int xla)jj_2_8
private static final boolean jj_2_8(int xla)jj_2_9
private static final boolean jj_2_9(int xla)jj_2_10
private static final boolean jj_2_10(int xla)jj_2_11
private static final boolean jj_2_11(int xla)jj_2_12
private static final boolean jj_2_12(int xla)jj_2_13
private static final boolean jj_2_13(int xla)jj_2_14
private static final boolean jj_2_14(int xla)jj_2_15
private static final boolean jj_2_15(int xla)jj_2_16
private static final boolean jj_2_16(int xla)jj_2_17
private static final boolean jj_2_17(int xla)jj_2_18
private static final boolean jj_2_18(int xla)jj_2_19
private static final boolean jj_2_19(int xla)jj_2_20
private static final boolean jj_2_20(int xla)jj_2_21
private static final boolean jj_2_21(int xla)jj_2_22
private static final boolean jj_2_22(int xla)jj_2_23
private static final boolean jj_2_23(int xla)jj_2_24
private static final boolean jj_2_24(int xla)jj_2_25
private static final boolean jj_2_25(int xla)jj_2_26
private static final boolean jj_2_26(int xla)jj_2_27
private static final boolean jj_2_27(int xla)jj_2_28
private static final boolean jj_2_28(int xla)jj_2_29
private static final boolean jj_2_29(int xla)jj_2_30
private static final boolean jj_2_30(int xla)jj_2_31
private static final boolean jj_2_31(int xla)jj_3R_143
private static final boolean jj_3R_143()jj_3_16
private static final boolean jj_3_16()jj_3R_142
private static final boolean jj_3R_142()jj_3R_147
private static final boolean jj_3R_147()jj_3R_129
private static final boolean jj_3R_129()jj_3_17
private static final boolean jj_3_17()jj_3R_128
private static final boolean jj_3R_128()jj_3R_137
private static final boolean jj_3R_137()jj_3R_118
private static final boolean jj_3R_118()jj_3R_136
private static final boolean jj_3R_136()jj_3R_85
private static final boolean jj_3R_85()jj_3R_61
private static final boolean jj_3R_61()jj_3R_117
private static final boolean jj_3R_117()jj_3R_31
private static final boolean jj_3R_31()jj_3R_60
private static final boolean jj_3R_60()jj_3R_127
private static final boolean jj_3R_127()jj_3R_116
private static final boolean jj_3R_116()jj_3R_84
private static final boolean jj_3R_84()jj_3R_115
private static final boolean jj_3R_115()jj_3R_114
private static final boolean jj_3R_114()jj_3R_113
private static final boolean jj_3R_113()jj_3R_135
private static final boolean jj_3R_135()jj_3R_89
private static final boolean jj_3R_89()jj_3_15
private static final boolean jj_3_15()jj_3R_112
private static final boolean jj_3R_112()jj_3R_111
private static final boolean jj_3R_111()jj_3R_57
private static final boolean jj_3R_57()jj_3R_88
private static final boolean jj_3R_88()jj_3_14
private static final boolean jj_3_14()jj_3R_110
private static final boolean jj_3R_110()jj_3_13
private static final boolean jj_3_13()jj_3R_29
private static final boolean jj_3R_29()jj_3R_109
private static final boolean jj_3R_109()jj_3R_108
private static final boolean jj_3R_108()jj_3_12
private static final boolean jj_3_12()jj_3R_107
private static final boolean jj_3R_107()jj_3R_56
private static final boolean jj_3R_56()jj_3_11
private static final boolean jj_3_11()jj_3R_55
private static final boolean jj_3R_55()jj_3R_106
private static final boolean jj_3R_106()jj_3R_105
private static final boolean jj_3R_105()jj_3R_54
private static final boolean jj_3R_54()jj_3R_104
private static final boolean jj_3R_104()jj_3R_103
private static final boolean jj_3R_103()jj_3_27
private static final boolean jj_3_27()jj_3R_102
private static final boolean jj_3R_102()jj_3R_101
private static final boolean jj_3R_101()jj_3R_53
private static final boolean jj_3R_53()jj_3R_100
private static final boolean jj_3R_100()jj_3R_99
private static final boolean jj_3R_99()jj_3R_52
private static final boolean jj_3R_52()jj_3R_98
private static final boolean jj_3R_98()jj_3R_97
private static final boolean jj_3R_97()jj_3R_28
private static final boolean jj_3R_28()jj_3_26
private static final boolean jj_3_26()jj_3R_96
private static final boolean jj_3R_96()jj_3R_95
private static final boolean jj_3R_95()jj_3R_94
private static final boolean jj_3R_94()jj_3R_93
private static final boolean jj_3R_93()jj_3_25
private static final boolean jj_3_25()jj_3R_92
private static final boolean jj_3R_92()jj_3R_15
private static final boolean jj_3R_15()jj_3R_91
private static final boolean jj_3R_91()jj_3R_146
private static final boolean jj_3R_146()jj_3R_64
private static final boolean jj_3R_64()jj_3R_34
private static final boolean jj_3R_34()jj_3R_33
private static final boolean jj_3R_33()jj_3R_126
private static final boolean jj_3R_126()jj_3R_21
private static final boolean jj_3R_21()jj_3R_59
private static final boolean jj_3R_59()jj_3_10
private static final boolean jj_3_10()jj_3R_165
private static final boolean jj_3R_165()jj_3R_134
private static final boolean jj_3R_134()jj_3R_164
private static final boolean jj_3R_164()jj_3R_83
private static final boolean jj_3R_83()jj_3R_162
private static final boolean jj_3R_162()jj_3R_82
private static final boolean jj_3R_82()jj_3R_161
private static final boolean jj_3R_161()jj_3R_160
private static final boolean jj_3R_160()jj_3R_155
private static final boolean jj_3R_155()jj_3R_78
private static final boolean jj_3R_78()jj_3_24
private static final boolean jj_3_24()jj_3_23
private static final boolean jj_3_23()jj_3R_154
private static final boolean jj_3R_154()jj_3R_150
private static final boolean jj_3R_150()jj_3R_20
private static final boolean jj_3R_20()jj_3R_47
private static final boolean jj_3R_47()jj_3R_77
private static final boolean jj_3R_77()jj_3R_80
private static final boolean jj_3R_80()jj_3_22
private static final boolean jj_3_22()jj_3_9
private static final boolean jj_3_9()jj_3R_140
private static final boolean jj_3R_140()jj_3R_51
private static final boolean jj_3R_51()jj_3R_50
private static final boolean jj_3R_50()jj_3R_49
private static final boolean jj_3R_49()jj_3R_76
private static final boolean jj_3R_76()jj_3R_48
private static final boolean jj_3R_48()jj_3R_46
private static final boolean jj_3R_46()jj_3R_139
private static final boolean jj_3R_139()jj_3R_79
private static final boolean jj_3R_79()jj_3R_45
private static final boolean jj_3R_45()jj_3R_26
private static final boolean jj_3R_26()jj_3R_44
private static final boolean jj_3R_44()jj_3R_124
private static final boolean jj_3R_124()jj_3R_75
private static final boolean jj_3R_75()jj_3R_123
private static final boolean jj_3R_123()jj_3R_43
private static final boolean jj_3R_43()jj_3R_27
private static final boolean jj_3R_27()jj_3R_121
private static final boolean jj_3R_121()jj_3R_122
private static final boolean jj_3R_122()jj_3R_81
private static final boolean jj_3R_81()jj_3R_73
private static final boolean jj_3R_73()jj_3R_74
private static final boolean jj_3R_74()jj_3_7
private static final boolean jj_3_7()jj_3R_42
private static final boolean jj_3R_42()jj_3_21
private static final boolean jj_3_21()jj_3R_41
private static final boolean jj_3R_41()jj_3R_120
private static final boolean jj_3R_120()jj_3_8
private static final boolean jj_3_8()jj_3R_156
private static final boolean jj_3R_156()jj_3R_63
private static final boolean jj_3R_63()jj_3R_25
private static final boolean jj_3R_25()jj_3R_62
private static final boolean jj_3R_62()jj_3R_71
private static final boolean jj_3R_71()jj_3R_32
private static final boolean jj_3R_32()jj_3R_72
private static final boolean jj_3R_72()jj_3R_40
private static final boolean jj_3R_40()jj_3R_39
private static final boolean jj_3R_39()jj_3R_24
private static final boolean jj_3R_24()jj_3R_14
private static final boolean jj_3R_14()jj_3_6
private static final boolean jj_3_6()jj_3_5
private static final boolean jj_3_5()jj_3R_166
private static final boolean jj_3R_166()jj_3_4
private static final boolean jj_3_4()jj_3_3
private static final boolean jj_3_3()jj_3_2
private static final boolean jj_3_2()jj_3R_141
private static final boolean jj_3R_141()jj_3_1
private static final boolean jj_3_1()jj_3R_125
private static final boolean jj_3R_125()jj_3R_169
private static final boolean jj_3R_169()jj_3R_168
private static final boolean jj_3R_168()jj_3R_167
private static final boolean jj_3R_167()jj_3_20
private static final boolean jj_3_20()jj_3_19
private static final boolean jj_3_19()jj_3R_19
private static final boolean jj_3R_19()jj_3_31
private static final boolean jj_3_31()jj_3R_18
private static final boolean jj_3R_18()jj_3_30
private static final boolean jj_3_30()jj_3R_163
private static final boolean jj_3R_163()jj_3R_17
private static final boolean jj_3R_17()jj_3R_158
private static final boolean jj_3R_158()jj_3R_70
private static final boolean jj_3R_70()jj_3R_16
private static final boolean jj_3R_16()jj_3R_133
private static final boolean jj_3R_133()jj_3R_69
private static final boolean jj_3R_69()jj_3R_132
private static final boolean jj_3R_132()jj_3R_90
private static final boolean jj_3R_90()jj_3R_36
private static final boolean jj_3R_36()jj_3R_131
private static final boolean jj_3R_131()jj_3R_151
private static final boolean jj_3R_151()jj_3R_68
private static final boolean jj_3R_68()jj_3R_157
private static final boolean jj_3R_157()jj_3R_159
private static final boolean jj_3R_159()jj_3R_87
private static final boolean jj_3R_87()jj_3R_153
private static final boolean jj_3R_153()jj_3R_152
private static final boolean jj_3R_152()jj_3R_149
private static final boolean jj_3R_149()jj_3R_145
private static final boolean jj_3R_145()jj_3R_67
private static final boolean jj_3R_67()jj_3R_144
private static final boolean jj_3R_144()jj_3R_38
private static final boolean jj_3R_38()jj_3R_130
private static final boolean jj_3R_130()jj_3R_37
private static final boolean jj_3R_37()jj_3R_23
private static final boolean jj_3R_23()jj_3R_86
private static final boolean jj_3R_86()jj_3R_35
private static final boolean jj_3R_35()jj_3R_66
private static final boolean jj_3R_66()jj_3R_58
private static final boolean jj_3R_58()jj_3R_148
private static final boolean jj_3R_148()jj_3R_22
private static final boolean jj_3R_22()jj_3R_30
private static final boolean jj_3R_30()jj_3_29
private static final boolean jj_3_29()jj_3R_138
private static final boolean jj_3R_138()jj_3_18
private static final boolean jj_3_18()jj_3R_119
private static final boolean jj_3R_119()jj_3_28
private static final boolean jj_3_28()jj_3R_65
private static final boolean jj_3R_65()ReInit
public static void ReInit(InputStream stream)ReInit
public void ReInit(SQLParserTokenManager tm)jj_consume_token
private static final Token jj_consume_token(int kind) throws ParseExceptionjj_scan_token
private static final boolean jj_scan_token(int kind)getNextToken
public static final Token getNextToken()getToken
public static final Token getToken(int index)jj_ntk
private static final int jj_ntk()jj_add_error_token
private static void jj_add_error_token(int kind, int pos)generateParseException
public static final ParseException generateParseException()enable_tracing
public static final void enable_tracing()disable_tracing
public static final void disable_tracing()jj_rescan_token
private static final void jj_rescan_token()jj_save
private static final void jj_save(int index, int xla)
All Packages Class Hierarchy This Package Previous Next Index