| 139 | } |
| 140 | |
| 141 | void vtkSQLDatabaseGraphSource::SetPassword(const vtkStdString& password) |
| 142 | { |
| 143 | if (password == this->Implementation->Password) |
| 144 | return; |
| 145 | |
| 146 | if (this->Implementation->EdgeQuery) |
| 147 | { |
| 148 | this->Implementation->EdgeQuery->Delete(); |
| 149 | this->Implementation->EdgeQuery = 0; |
| 150 | } |
| 151 | |
| 152 | if (this->Implementation->VertexQuery) |
| 153 | { |
| 154 | this->Implementation->VertexQuery->Delete(); |
| 155 | this->Implementation->VertexQuery = 0; |
| 156 | } |
| 157 | |
| 158 | if (this->Implementation->Database) |
| 159 | { |
| 160 | this->Implementation->Database->Delete(); |
| 161 | this->Implementation->Database = 0; |
| 162 | } |
| 163 | |
| 164 | this->Implementation->Password = password; |
| 165 | |
| 166 | this->Modified(); |
| 167 | } |
| 168 | |
| 169 | vtkStdString vtkSQLDatabaseGraphSource::GetEdgeQuery() |
| 170 | { |
no test coverage detected