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

org.babyfish.jimmer.client.meta.impl.MetadataImpl Maven / Gradle / Ivy

There is a newer version: 0.9.35
Show newest version
package org.babyfish.jimmer.client.meta.impl;

import org.babyfish.jimmer.client.meta.*;
import org.babyfish.jimmer.meta.ImmutableType;
import org.babyfish.jimmer.sql.fetcher.Fetcher;

import java.util.Map;

public class MetadataImpl implements Metadata {

    private final Map, Service> services;

    private final Map, StaticObjectType> genericeTypes;

    private final Map staticTypes;

    private final Map, EnumType> enumTypes;

    private final Map, ImmutableObjectType> fetchedImmutableObjectTypeMap;

    private final Map viewImmutableObjectTypes;

    private final Map rawImmutableObjectTypes;

    public MetadataImpl(
            Map, Service> services,
            Map, StaticObjectType> genericTypes,
            Map staticTypes,
            Map, EnumType> enumTypes,
            Map, ImmutableObjectType> fetchedImmutableObjectTypeMap,
            Map viewImmutableObjectTypes,
            Map rawImmutableObjectTypes
    ) {
        this.services = services;
        this.genericeTypes = genericTypes;
        this.staticTypes = staticTypes;
        this.enumTypes = enumTypes;
        this.fetchedImmutableObjectTypeMap = fetchedImmutableObjectTypeMap;
        this.viewImmutableObjectTypes = viewImmutableObjectTypes;
        this.rawImmutableObjectTypes = rawImmutableObjectTypes;
    }

    @Override
    public Map, Service> getServices() {
        return services;
    }

    @Override
    public Map, StaticObjectType> getGenericTypes() {
        return genericeTypes;
    }

    @Override
    public Map getStaticTypes() {
        return staticTypes;
    }

    @Override
    public Map, EnumType> getEnumTypes() {
        return enumTypes;
    }

    @Override
    public Map, ImmutableObjectType> getFetchedImmutableObjectTypes() {
        return fetchedImmutableObjectTypeMap;
    }

    @Override
    public Map getViewImmutableObjectTypes() {
        return viewImmutableObjectTypes;
    }

    @Override
    public Map getRawImmutableObjectTypes() {
        return rawImmutableObjectTypes;
    }

    @Override
    public String toString() {
        return "MetadataImpl{" +
                "services=" + services +
                ", staticTypes=" + staticTypes +
                ", enumTypes=" + enumTypes +
                ", viewImmutableObjectTypes=" + viewImmutableObjectTypes +
                ", rawImmutableObjectTypes=" + rawImmutableObjectTypes +
                '}';
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy