Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
17 | 2 | 2 | 0.959 | statement_sequence[7] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 21 | 74 | E:/TSE/Projects-CloneDR/sql12/plugins/sqlscript/src/net/sourceforge/squirrel_sql/plugins/sqlscript/table_script/CreateDataScriptOfCurrentSQLCommand.java |
2 | 17 | 98 | E:/TSE/Projects-CloneDR/sql12/plugins/sqlscript/src/net/sourceforge/squirrel_sql/plugins/sqlscript/table_script/CreateTableOfCurrentSQLCommand.java |
| |||||
ISQLPanelAPI api = FrameWorkAcessor.getSQLPanelAPI(_session, _plugin); String script = api.getSQLScriptToBeExecuted(); IQueryTokenizer qt = _session.getQueryTokenizer(); qt.setScriptToTokenize(script); if (false == qt.hasQuery()) { // i18n[CreateDataScriptOfCurrentSQLCommand.noQuery=No query found to create the script from.] _session.showErrorMessage(s_stringMgr.getString("CreateTableOfCurrentSQLCommand.noQuery")); return; } ISQLConnection conn = _session.getSQLConnection(); final Statement stmt = conn.createStatement(); |
| |||||
ISQLPanelAPI api = FrameWorkAcessor.getSQLPanelAPI(_session, _plugin); String script = api.getSQLScriptToBeExecuted(); IQueryTokenizer qt = _session.getQueryTokenizer(); qt.setScriptToTokenize(script); if (false == qt.hasQuery()) { // i18n[CreateTableOfCurrentSQLCommand.noQuery=No query found to create the script from.] _session.showErrorMessage(s_stringMgr.getString("CreateTableOfCurrentSQLCommand.noQuery")); return; } ISQLConnection conn = _session.getSQLConnection(); Statement stmt = null; |
| |||
ISQLPanelAPI api = FrameWorkAcessor.getSQLPanelAPI(_session, _plugin); String script = api.getSQLScriptToBeExecuted(); IQueryTokenizer qt = _session.getQueryTokenizer(); qt.setScriptToTokenize(script); if (false == qt.hasQuery()) { // i18n[CreateTableOfCurrentSQLCommand.noQuery=No query found to create the script from.] // i18n[CreateDataScriptOfCurrentSQLCommand.noQuery=No query found to create the script from.] _session.showErrorMessage(s_stringMgr.getString("CreateTableOfCurrentSQLCommand.noQuery")); return; } ISQLConnection conn = _session.getSQLConnection(); [[#variable1cedfaa0]]Statement stmt = [[#variable1cedfb20]]; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#1cedfaa0]] | final |
1 | 2 | [[#1cedfaa0]] | |
2 | 1 | [[#1cedfb20]] | conn.createStatement() |
2 | 2 | [[#1cedfb20]] | null |