/** * Constructor for SCO data. Takes in the meta data for the field, and the table it is mapped to. * @param mmd MetaData for the field. * @param table Table definition */ public RDBMSStoreData(AbstractMemberMetaData mmd, Table table) { super(mmd.getFullFieldName(), mmd, Type.SCO, null); if (table == null) { throw new NullPointerException("table should not be null"); } this.table = table; this.tableName = table.toString(); this.tableOwner = true; this.tableIdentifier = table.getIdentifier(); String interfaceName = table.getStoreManager().getMetaDataManager().isPersistentInterface(mmd.getType().getName()) ? mmd.getType().getName() : null; if (interfaceName != null) { this.interfaceName = interfaceName; } }
boolean isPersistentInterfaceField = storeMgr.getNucleusContext().getMetaDataManager().isPersistentInterface(fieldTypeName);
/** * Method to check if an element is already persistent, or is managed by a different * persistence manager. If not persistent, this will persist it. * @param ec ExecutionContext * @param element The element * @param fieldValues any initial field values to use if persisting the element * @return Whether the element was persisted during this call */ protected boolean validateElementForWriting(ExecutionContext ec, Object element, FieldValues fieldValues) { // Check the element type for this collection if (!storeMgr.getNucleusContext().getMetaDataManager().isPersistentInterface(elementType) && !validateElementType(ec.getClassLoaderResolver(), element)) { throw new ClassCastException(LOCALISER.msg("056033", element.getClass().getName(), ownerMemberMetaData.getFullFieldName(), elementType)); } return SCOUtils.validateObjectForWriting(ec, element, fieldValues); }
if (!storeMgr.getNucleusContext().getMetaDataManager().isPersistentInterface(elementType) && elementCls.isInterface())
boolean isPersistentInterface = mmgr.isPersistentInterface(getType()); if (isPersistentInterface) isPersistentInterface = mmgr.isPersistentInterface(mmd.getFieldTypes()[0]); if (isPersistentInterface)
if (storeMgr.getNucleusContext().getMetaDataManager().isPersistentInterface(elementType))
boolean isPersistentInterface = storeMgr.getNucleusContext().getMetaDataManager().isPersistentInterface(elementType); DatastoreClass elementTable = null; if (isPersistentInterface)
if (storeMgr.getNucleusContext().getMetaDataManager().isPersistentInterface(elementType)) { elementCmd = storeMgr.getNucleusContext().getMetaDataManager().getMetaDataForInterface(element_class,clr);
if (ClassUtils.isReferenceType(element_class)) elementIsPersistentInterface = storeMgr.getNucleusContext().getMetaDataManager().isPersistentInterface(element_class.getName()); if (elementIsPersistentInterface)
elementIsPersistentInterface = storeMgr.getNucleusContext().getMetaDataManager().isPersistentInterface(element_class.getName()); if (elementIsPersistentInterface)
if (ClassUtils.isReferenceType(element_class)) elementIsPersistentInterface = storeMgr.getNucleusContext().getMetaDataManager().isPersistentInterface(element_class.getName()); if (elementIsPersistentInterface)
if (ec.getMetaDataManager().isPersistentInterface(type))