package org.warp.cowdb; import org.warp.jcwdb.ann.DBDataType; import java.io.IOException; import java.util.function.Supplier; public interface EnhancedObjectUpgrader { Object getField(int id, DBDataType type, Supplier> enhancedClassType) throws IOException; default Object getField(int id, DBDataType type) throws IOException { return getField(id, type, null); } Object getMethod(int id, DBDataType type, Supplier> enhancedClassType) throws IOException; default Object getMethod(int id, DBDataType type) throws IOException { return getField(id, type, null); } }