-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add DatabaseMetaDataPersistFacade (#33059)
* Add DatabaseMetaDataPersistFacade * Add DatabaseMetaDataPersistFacade
- Loading branch information
Showing
28 changed files
with
185 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
...pache/shardingsphere/metadata/persist/service/metadata/DatabaseMetaDataPersistFacade.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You under the Apache License, Version 2.0 | ||
* (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.apache.shardingsphere.metadata.persist.service.metadata; | ||
|
||
import lombok.Getter; | ||
import org.apache.shardingsphere.metadata.persist.service.metadata.database.DatabaseMetaDataPersistService; | ||
import org.apache.shardingsphere.metadata.persist.service.metadata.schema.SchemaMetaDataPersistService; | ||
import org.apache.shardingsphere.metadata.persist.service.metadata.table.TableMetaDataPersistService; | ||
import org.apache.shardingsphere.metadata.persist.service.metadata.table.ViewMetaDataPersistService; | ||
import org.apache.shardingsphere.metadata.persist.service.version.MetaDataVersionPersistService; | ||
import org.apache.shardingsphere.mode.spi.PersistRepository; | ||
|
||
/** | ||
* Database meta data persist facade. | ||
*/ | ||
@Getter | ||
public final class DatabaseMetaDataPersistFacade { | ||
|
||
private final DatabaseMetaDataPersistService database; | ||
|
||
private final SchemaMetaDataPersistService schema; | ||
|
||
private final TableMetaDataPersistService table; | ||
|
||
private final ViewMetaDataPersistService view; | ||
|
||
public DatabaseMetaDataPersistFacade(final PersistRepository repository, final MetaDataVersionPersistService metaDataVersionPersistService) { | ||
database = new DatabaseMetaDataPersistService(repository); | ||
schema = new SchemaMetaDataPersistService(repository, metaDataVersionPersistService); | ||
table = new TableMetaDataPersistService(repository, metaDataVersionPersistService); | ||
view = new ViewMetaDataPersistService(repository, metaDataVersionPersistService); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.