All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.commondatamodel.objectmodel.persistence.common.InterfaceToImpl Maven / Gradle / Ivy

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.

package com.microsoft.commondatamodel.objectmodel.persistence.common;

import com.microsoft.commondatamodel.objectmodel.cdm.CdmObject;
import java.util.LinkedHashMap;
import java.util.Map;

public class InterfaceToImpl {

  public final Map persistenceClasses = new LinkedHashMap<>();

  public  void register(final Class interfaze, final Class clazz) {
    persistenceClasses.put(interfaze, clazz);
  }

  public  Class getPersistenceClass(final Class interfaze) {
    return persistenceClasses.getOrDefault(interfaze, null);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy