Code: Select all
DbRoomConfiguration config = new DbRoomConfiguration();
getParentZone().initRoomPersistence(RoomStorageMode.DB_CUSTOM, config);
where the DbRoomConfiguration is defined by:
public class DbRoomConfiguration extends BaseStorageConfig
Code: Select all
{
public String connectionString;
public String driverName;
public String databaseName;
public String tableName;
DbRoomConfiguration() {
connectionString = "jdbc:mysql://127.0.0.1:3306";
driverName = "com.mysql.cj.jdbc.Driver";
databaseName = "CARDS";
tableName = "card";
skipStaticRooms=false;
storeInactiveRooms=true;
storeRoomVariables=true;
}
}
now the for public strings i set there, I got from a bad written example and i say bad written because is does not compile as .DB_CUSTOM is not allowed.
the only optionI have besides : RoomStorageMode.FILE_STORAGE is RoomStorageMode.DB_STORAGE, but hey, There is Nowhere to find how to config that option. And naturally if i try to just run it it fails to work.
I tried to investigate where to find the structure required and truly have no idea, because could not find ANY documentation about it on your site. Not saying there is not there but if it is, is not related to the DB_Storage or, your search engine on the help is not getting it. and no mention of it is there on the initRoomPersistence. Clearly i am new to using this form so, how should i look for it?