File tree Expand file tree Collapse file tree 2 files changed +10
-306
lines changed
src/main/java/org/citydb/sqlbuilder Expand file tree Collapse file tree 2 files changed +10
-306
lines changed Original file line number Diff line number Diff line change 24
24
import org .citydb .sqlbuilder .SqlBuildOptions ;
25
25
import org .citydb .sqlbuilder .SqlBuilder ;
26
26
import org .citydb .sqlbuilder .literal .Placeholder ;
27
- import org .citydb .sqlbuilder .util .PlaceholderHelper ;
28
27
28
+ import java .util .ArrayList ;
29
29
import java .util .List ;
30
30
31
31
public interface SqlObject {
32
32
void accept (SqlVisitor visitor );
33
33
34
34
default List <Placeholder > getPlaceholders () {
35
- return PlaceholderHelper .newInstance ().getPlaceholders (this );
35
+ List <Placeholder > placeholders = new ArrayList <>();
36
+ accept (new SqlWalker () {
37
+ @ Override
38
+ public void visit (Placeholder placeholder ) {
39
+ placeholders .add (placeholder );
40
+ }
41
+ });
42
+
43
+ return placeholders ;
36
44
}
37
45
38
46
default String toSql (SqlBuildOptions options ) {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments