
io.github.mfvanek.pg.model.DbObject Maven / Gradle / Ivy
/*
* Copyright (c) 2019-2024. Ivan Vakhrushev and others.
* https://github.com/mfvanek/pg-index-health
*
* This file is a part of "pg-index-health" - a Java library for
* analyzing and maintaining indexes health in PostgreSQL databases.
*
* Licensed under the Apache License 2.0
*/
package io.github.mfvanek.pg.model;
import io.github.mfvanek.pg.model.object.PgObjectType;
import javax.annotation.Nonnull;
/**
* A generalized representation of a database object.
* Mostly used as a marker interface.
*
* @author Ivan Vahrushev
* @since 0.7.0
*/
public interface DbObject {
/**
* Gets database object name.
*
* @return database object name
*/
@Nonnull
String getName();
/**
* Gets database object type.
*
* @return database object type
* @since 0.13.2
*/
@Nonnull
PgObjectType getObjectType();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy