[SDC] rebase 1710 code
[sdc.git] / catalog-dao / src / main / java / org / openecomp / sdc / be / dao / cassandra / schema / Table.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.openecomp.sdc.be.dao.cassandra.schema;
22
23 import org.openecomp.sdc.be.dao.cassandra.schema.tables.*;
24
25 public enum Table {
26
27         ARTIFACT(new ArtifactTableDescription()), 
28         USER_ADMIN_EVENT(new UserAdminEventTableDescription()), 
29         USER_ACCESS_EVENT(new UserAccessEventTableDescription()), 
30         RESOURCE_ADMIN_EVENT(new ResAdminEventTableDescription()), 
31         DISTRIBUTION_DOWNLOAD_EVENT(new DistribDownloadEventTableDesc()), 
32         DISTRIBUTION_ENGINE_EVENT(new DistribEngineEventTableDesc()), 
33         DISTRIBUTION_NOTIFICATION_EVENT(new DistribNotifEventTableDesc()),
34         DISTRIBUTION_STATUS_EVENT(new DistribStatusEventTableDesc()), 
35         DISTRIBUTION_DEPLOY_EVENT(new DistribDeployEventTableDesc()), 
36         DISTRIBUTION_GET_UEB_CLUSTER_EVENT(new GetUebClusterEventTableDesc()), 
37         AUTH_EVENT(new AuthEventTableDescription()), 
38         CONSUMER_EVENT(new ConsumerEventTableDefinition()), 
39         CATEGORY_EVENT(new CategoryEventTableDescription()), 
40         GET_USERS_LIST_EVENT(new GetUsersListEventTableDesc()), 
41         GET_CATEGORY_HIERARCHY_EVENT(new GetCatHierEventTableDesc()), 
42         EXTERNAL_API_EVENT(new ExternalApiEventTableDesc()), 
43         COMPONENT_CACHE(new ComponentCacheTableDescription()),
44         SDC_SCHEMA_FILES(new SdcSchemaFilesTableDescription()),
45         SDC_REPO(new MigrationTasksTableDescription());
46         ITableDescription tableDescription;
47
48         Table(ITableDescription tableDescription) {
49                 this.tableDescription = tableDescription;
50         }
51
52         public ITableDescription getTableDescription() {
53                 return tableDescription;
54         }
55
56 }