else
{
// If a join table is present we need a "Normal"
if (getOMFContext().getTypeManager().isSCOList(fmd.getType()))
{
store = new JoinListStore(fmd, (CollectionTable)datastoreTable, clr);
}
else
{
store = new JoinSetStore(fmd, (CollectionTable)datastoreTable, clr);
}
}
}
else
{
// Instantiated type specified so use it to pick the associated backing store
if (datastoreTable == null)
{
if (SCOUtils.isListBased(type))
{
// List required
store = new FKListStore(fmd, this, clr);
}
else
{
// Set required
store = new FKSetStore(fmd, this, clr);
}
}
else
{
if (SCOUtils.isListBased(type))
{
// List required
store = new JoinListStore(fmd, (CollectionTable)datastoreTable, clr);
}
else
{
// Set required
store = new JoinSetStore(fmd, (CollectionTable)datastoreTable, clr);