*/
protected MappedStoreManager(String key, ClassLoaderResolver clr, OMFContext omfContext)
{
super(key, clr, omfContext);
PersistenceConfiguration conf = omfContext.getPersistenceConfiguration();
if (readOnlyDatastore || fixedDatastore)
{
autoCreateTables = false;
autoCreateColumns = false;
autoCreateConstraints = false;
}
else
{
boolean autoCreateSchema = conf.getBooleanProperty("datanucleus.autoCreateSchema");
if (autoCreateSchema)
{
autoCreateTables = true;
autoCreateColumns = true;
autoCreateConstraints = true;
}
else
{
autoCreateColumns = conf.getBooleanProperty("datanucleus.autoCreateColumns");
autoCreateTables = conf.getBooleanProperty("datanucleus.autoCreateTables");
autoCreateConstraints = conf.getBooleanProperty("datanucleus.autoCreateConstraints");
}
}
autoCreateWarnOnError = conf.getBooleanProperty("datanucleus.autoCreateWarnOnError");
validateTables = conf.getBooleanProperty("datanucleus.validateTables");
if (!validateTables)
{
validateColumns = false;
}
else
{
validateColumns = conf.getBooleanProperty("datanucleus.validateColumns");
}
validateConstraints = conf.getBooleanProperty("datanucleus.validateConstraints");
mappedTypeMgr = new MappedTypeManager(omfContext);
}