source: vendor/google/apiclient-services/src/DatabaseMigrationService/DatabaseEntity.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 7 days ago

Upload project files

  • Property mode set to 100644
File size: 6.6 KB
Line 
1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service\DatabaseMigrationService;
19
20class DatabaseEntity extends \Google\Collection
21{
22 protected $collection_key = 'mappings';
23 protected $databaseType = DatabaseInstanceEntity::class;
24 protected $databaseDataType = '';
25 protected $databaseFunctionType = FunctionEntity::class;
26 protected $databaseFunctionDataType = '';
27 protected $databasePackageType = PackageEntity::class;
28 protected $databasePackageDataType = '';
29 protected $entityDdlType = EntityDdl::class;
30 protected $entityDdlDataType = 'array';
31 /**
32 * @var string
33 */
34 public $entityType;
35 protected $issuesType = EntityIssue::class;
36 protected $issuesDataType = 'array';
37 protected $mappingsType = EntityMapping::class;
38 protected $mappingsDataType = 'array';
39 protected $materializedViewType = MaterializedViewEntity::class;
40 protected $materializedViewDataType = '';
41 /**
42 * @var string
43 */
44 public $parentEntity;
45 protected $schemaType = SchemaEntity::class;
46 protected $schemaDataType = '';
47 protected $sequenceType = SequenceEntity::class;
48 protected $sequenceDataType = '';
49 /**
50 * @var string
51 */
52 public $shortName;
53 protected $storedProcedureType = StoredProcedureEntity::class;
54 protected $storedProcedureDataType = '';
55 protected $synonymType = SynonymEntity::class;
56 protected $synonymDataType = '';
57 protected $tableType = TableEntity::class;
58 protected $tableDataType = '';
59 /**
60 * @var string
61 */
62 public $tree;
63 protected $udtType = UDTEntity::class;
64 protected $udtDataType = '';
65 protected $viewType = ViewEntity::class;
66 protected $viewDataType = '';
67
68 /**
69 * @param DatabaseInstanceEntity
70 */
71 public function setDatabase(DatabaseInstanceEntity $database)
72 {
73 $this->database = $database;
74 }
75 /**
76 * @return DatabaseInstanceEntity
77 */
78 public function getDatabase()
79 {
80 return $this->database;
81 }
82 /**
83 * @param FunctionEntity
84 */
85 public function setDatabaseFunction(FunctionEntity $databaseFunction)
86 {
87 $this->databaseFunction = $databaseFunction;
88 }
89 /**
90 * @return FunctionEntity
91 */
92 public function getDatabaseFunction()
93 {
94 return $this->databaseFunction;
95 }
96 /**
97 * @param PackageEntity
98 */
99 public function setDatabasePackage(PackageEntity $databasePackage)
100 {
101 $this->databasePackage = $databasePackage;
102 }
103 /**
104 * @return PackageEntity
105 */
106 public function getDatabasePackage()
107 {
108 return $this->databasePackage;
109 }
110 /**
111 * @param EntityDdl[]
112 */
113 public function setEntityDdl($entityDdl)
114 {
115 $this->entityDdl = $entityDdl;
116 }
117 /**
118 * @return EntityDdl[]
119 */
120 public function getEntityDdl()
121 {
122 return $this->entityDdl;
123 }
124 /**
125 * @param string
126 */
127 public function setEntityType($entityType)
128 {
129 $this->entityType = $entityType;
130 }
131 /**
132 * @return string
133 */
134 public function getEntityType()
135 {
136 return $this->entityType;
137 }
138 /**
139 * @param EntityIssue[]
140 */
141 public function setIssues($issues)
142 {
143 $this->issues = $issues;
144 }
145 /**
146 * @return EntityIssue[]
147 */
148 public function getIssues()
149 {
150 return $this->issues;
151 }
152 /**
153 * @param EntityMapping[]
154 */
155 public function setMappings($mappings)
156 {
157 $this->mappings = $mappings;
158 }
159 /**
160 * @return EntityMapping[]
161 */
162 public function getMappings()
163 {
164 return $this->mappings;
165 }
166 /**
167 * @param MaterializedViewEntity
168 */
169 public function setMaterializedView(MaterializedViewEntity $materializedView)
170 {
171 $this->materializedView = $materializedView;
172 }
173 /**
174 * @return MaterializedViewEntity
175 */
176 public function getMaterializedView()
177 {
178 return $this->materializedView;
179 }
180 /**
181 * @param string
182 */
183 public function setParentEntity($parentEntity)
184 {
185 $this->parentEntity = $parentEntity;
186 }
187 /**
188 * @return string
189 */
190 public function getParentEntity()
191 {
192 return $this->parentEntity;
193 }
194 /**
195 * @param SchemaEntity
196 */
197 public function setSchema(SchemaEntity $schema)
198 {
199 $this->schema = $schema;
200 }
201 /**
202 * @return SchemaEntity
203 */
204 public function getSchema()
205 {
206 return $this->schema;
207 }
208 /**
209 * @param SequenceEntity
210 */
211 public function setSequence(SequenceEntity $sequence)
212 {
213 $this->sequence = $sequence;
214 }
215 /**
216 * @return SequenceEntity
217 */
218 public function getSequence()
219 {
220 return $this->sequence;
221 }
222 /**
223 * @param string
224 */
225 public function setShortName($shortName)
226 {
227 $this->shortName = $shortName;
228 }
229 /**
230 * @return string
231 */
232 public function getShortName()
233 {
234 return $this->shortName;
235 }
236 /**
237 * @param StoredProcedureEntity
238 */
239 public function setStoredProcedure(StoredProcedureEntity $storedProcedure)
240 {
241 $this->storedProcedure = $storedProcedure;
242 }
243 /**
244 * @return StoredProcedureEntity
245 */
246 public function getStoredProcedure()
247 {
248 return $this->storedProcedure;
249 }
250 /**
251 * @param SynonymEntity
252 */
253 public function setSynonym(SynonymEntity $synonym)
254 {
255 $this->synonym = $synonym;
256 }
257 /**
258 * @return SynonymEntity
259 */
260 public function getSynonym()
261 {
262 return $this->synonym;
263 }
264 /**
265 * @param TableEntity
266 */
267 public function setTable(TableEntity $table)
268 {
269 $this->table = $table;
270 }
271 /**
272 * @return TableEntity
273 */
274 public function getTable()
275 {
276 return $this->table;
277 }
278 /**
279 * @param string
280 */
281 public function setTree($tree)
282 {
283 $this->tree = $tree;
284 }
285 /**
286 * @return string
287 */
288 public function getTree()
289 {
290 return $this->tree;
291 }
292 /**
293 * @param UDTEntity
294 */
295 public function setUdt(UDTEntity $udt)
296 {
297 $this->udt = $udt;
298 }
299 /**
300 * @return UDTEntity
301 */
302 public function getUdt()
303 {
304 return $this->udt;
305 }
306 /**
307 * @param ViewEntity
308 */
309 public function setView(ViewEntity $view)
310 {
311 $this->view = $view;
312 }
313 /**
314 * @return ViewEntity
315 */
316 public function getView()
317 {
318 return $this->view;
319 }
320}
321
322// Adding a class alias for backwards compatibility with the previous class name.
323class_alias(DatabaseEntity::class, 'Google_Service_DatabaseMigrationService_DatabaseEntity');
Note: See TracBrowser for help on using the repository browser.