com.infomaximum.database.exception.IndexNotFoundException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rdao Show documentation
Show all versions of rdao Show documentation
Library for creating a light cluster
The newest version!
package com.infomaximum.database.exception;
import com.infomaximum.database.domainobject.DomainObject;
import com.infomaximum.database.schema.dbstruct.DBField;
import com.infomaximum.database.schema.dbstruct.DBTable;
import java.util.Set;
import java.util.stream.Collectors;
public class IndexNotFoundException extends DatabaseException {
public IndexNotFoundException(String indexName, Class extends DomainObject> domainClass) {
super("Not found " + indexName + " in " + domainClass);
}
public IndexNotFoundException(Set indexedFieldIds, DBTable table) {
super("Not found " +
indexedFieldIds.stream()
.map(table::getField)
.map(DBField::getName)
.collect(Collectors.joining(", ")) +
" in " + table.getNamespace() + "." + table.getName());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy