public String referenceColumn(DatastoreField col)
{
assertNotFrozen();
DatastoreContainerObject table = col.getDatastoreContainerObject();
if (!table.equals(mainTable))
{
if (!(mainTable instanceof DatastoreClass) || !(table instanceof DatastoreClass))
{
throw new TableMismatchException(col, mainTable);
}