Hope someone out there can either tell me the following is not possible or point me in the right direction...
I am trying to create nested enums, in the most trivial sense the following would be ideal:
public enum Databases implements Database{
Oracle(DummyTables),
MySQL(DummyTables);
private static final Tables;
private Databases(Enum Tables){
this.Tables = Tables;
}
public Tables getTables(){
return Tables;
}
}
public enum DummyTables implements Tables{
Employee,
Permissions;
}
public interface Database{
public Tables TABLES();
}
public interface Tables{}
Clearly this in not complete as I did not provide any methods in the Tables interface, but I hope you get the picture...