36
36
37
37
import java .util .ArrayList ;
38
38
import java .util .List ;
39
+
39
40
import net .sf .jsqlparser .statement .SetStatement ;
40
41
import net .sf .jsqlparser .statement .StatementVisitor ;
41
42
import net .sf .jsqlparser .statement .Statements ;
53
54
*/
54
55
public class TablesNamesFinder implements SelectVisitor , FromItemVisitor , ExpressionVisitor , ItemsListVisitor , SelectItemVisitor , StatementVisitor {
55
56
56
- private List <String > tables ;
57
+ private static final String NOT_SUPPORTED_YET = "Not supported yet." ;
58
+ private List <String > tables ;
57
59
/**
58
60
* There are special names, that are not table names but are parsed as
59
61
* tables. These names are collected here and are not included in the tables
@@ -573,17 +575,17 @@ public void visit(Replace replace) {
573
575
574
576
@ Override
575
577
public void visit (Drop drop ) {
576
- throw new UnsupportedOperationException ("Not supported yet." ); //To change body of generated methods, choose Tools | Templates.
578
+ throw new UnsupportedOperationException (NOT_SUPPORTED_YET ); //To change body of generated methods, choose Tools | Templates.
577
579
}
578
580
579
581
@ Override
580
582
public void visit (Truncate truncate ) {
581
- throw new UnsupportedOperationException ("Not supported yet." ); //To change body of generated methods, choose Tools | Templates.
583
+ throw new UnsupportedOperationException (NOT_SUPPORTED_YET ); //To change body of generated methods, choose Tools | Templates.
582
584
}
583
585
584
586
@ Override
585
587
public void visit (CreateIndex createIndex ) {
586
- throw new UnsupportedOperationException ("Not supported yet." ); //To change body of generated methods, choose Tools | Templates.
588
+ throw new UnsupportedOperationException (NOT_SUPPORTED_YET ); //To change body of generated methods, choose Tools | Templates.
587
589
}
588
590
589
591
@ Override
@@ -596,27 +598,27 @@ public void visit(CreateTable create) {
596
598
597
599
@ Override
598
600
public void visit (CreateView createView ) {
599
- throw new UnsupportedOperationException ("Not supported yet." ); //To change body of generated methods, choose Tools | Templates.
601
+ throw new UnsupportedOperationException (NOT_SUPPORTED_YET ); //To change body of generated methods, choose Tools | Templates.
600
602
}
601
603
602
604
@ Override
603
605
public void visit (Alter alter ) {
604
- throw new UnsupportedOperationException ("Not supported yet." ); //To change body of generated methods, choose Tools | Templates.
606
+ throw new UnsupportedOperationException (NOT_SUPPORTED_YET ); //To change body of generated methods, choose Tools | Templates.
605
607
}
606
608
607
609
@ Override
608
610
public void visit (Statements stmts ) {
609
- throw new UnsupportedOperationException ("Not supported yet." ); //To change body of generated methods, choose Tools | Templates.
611
+ throw new UnsupportedOperationException (NOT_SUPPORTED_YET ); //To change body of generated methods, choose Tools | Templates.
610
612
}
611
613
612
614
@ Override
613
615
public void visit (Execute execute ) {
614
- throw new UnsupportedOperationException ("Not supported yet." ); //To change body of generated methods, choose Tools | Templates.
616
+ throw new UnsupportedOperationException (NOT_SUPPORTED_YET ); //To change body of generated methods, choose Tools | Templates.
615
617
}
616
618
617
619
@ Override
618
620
public void visit (SetStatement set ) {
619
- throw new UnsupportedOperationException ("Not supported yet." ); //To change body of generated methods, choose Tools | Templates.
621
+ throw new UnsupportedOperationException (NOT_SUPPORTED_YET ); //To change body of generated methods, choose Tools | Templates.
620
622
}
621
623
622
624
@ Override
@@ -633,7 +635,7 @@ public void visit(HexValue hexValue) {
633
635
634
636
@ Override
635
637
public void visit (Merge merge ) {
636
- throw new UnsupportedOperationException ("Not supported yet." ); //To change body of generated methods, choose Tools | Templates.
638
+ throw new UnsupportedOperationException (NOT_SUPPORTED_YET ); //To change body of generated methods, choose Tools | Templates.
637
639
}
638
640
639
641
@ Override
0 commit comments