assertIsOpen();
if( hasClass(data.getName()))
{
return;
}
MappedStoreData tableData = (MappedStoreData)data; // We only support TableStoreData
org.jpox.store.rdbms.SchemaTable2 st = new org.jpox.store.rdbms.SchemaTable2();
st.setClassName(tableData.getName());
st.setInterfaceName(tableData.getInterfaceName());
st.setOwner(tableData.isTableOwner()? "1" : "0");
st.setTableName(tableData.getTableName());
st.setType(data.isFCO() ? "FCO" : "SCO");
// TODO Sort out version
st.setVersion("JPOX");
pm.makePersistent(st);