The DROP VIEW statement.
| 70 | * The <code>DROP VIEW</code> statement. |
| 71 | */ |
| 72 | @SuppressWarnings({ "rawtypes", "unused" }) |
| 73 | final class DropViewImpl |
| 74 | extends |
| 75 | AbstractDDLQuery |
| 76 | implements |
| 77 | QOM.DropView, |
| 78 | DropViewStep, |
| 79 | DropViewFinalStep |
| 80 | { |
| 81 | |
| 82 | final Table<?> view; |
| 83 | final boolean materialized; |
| 84 | final boolean ifExists; |
| 85 | Cascade cascade; |
| 86 | |
| 87 | DropViewImpl( |
| 88 | Configuration configuration, |
| 89 | Table<?> view, |
| 90 | boolean materialized, |
| 91 | boolean ifExists |
| 92 | ) { |
| 93 | this( |
| 94 | configuration, |
| 95 | view, |
| 96 | materialized, |
| 97 | ifExists, |
| 98 | null |
| 99 | ); |
| 100 | } |
| 101 | |
| 102 | DropViewImpl( |
| 103 | Configuration configuration, |
| 104 | Table<?> view, |
| 105 | boolean materialized, |
| 106 | boolean ifExists, |
| 107 | Cascade cascade |
| 108 | ) { |
| 109 | super(configuration); |
| 110 | |
| 111 | this.view = view; |
| 112 | this.materialized = materialized; |
| 113 | this.ifExists = ifExists; |
| 114 | this.cascade = cascade; |
| 115 | } |
| 116 | |
| 117 | // ------------------------------------------------------------------------- |
| 118 | // XXX: DSL API |
| 119 | // ------------------------------------------------------------------------- |
| 120 | |
| 121 | @Override |
| 122 | public final DropViewImpl cascade() { |
| 123 | this.cascade = Cascade.CASCADE; |
| 124 | return this; |
| 125 | } |
| 126 | |
| 127 | @Override |
| 128 | public final DropViewImpl restrict() { |
| 129 | this.cascade = Cascade.RESTRICT; |
nothing calls this directly
no test coverage detected
searching dependent graphs…