public CFBamDataScopeBuff getBuff() { if (buff == null) { if (isNew) { buff = ((ICFBamSchema) schema.getBackingStore()).getFactoryDataScope().newBuff(); } else { // Read the data buff via the backing store buff = ((ICFBamSchema) schema.getBackingStore()) .getTableDataScope() .readDerivedByIdIdx(schema.getAuthorization(), getPKey().getRequiredId()); if (buff != null) { copyBuffToPKey(); } } } return (buff); }
public void actionPerformed(ActionEvent e) { final String S_ProcName = "actionPerformed"; Container cont; JDesktopPane desktop; ICFBamSchemaObj schemaObj = swingSchema.getSchema(); ICFInternetDomainBaseObj focus = getSwingFocusAsDomainBase(); ICFInternetDomainBaseEditObj editObj = (ICFInternetDomainBaseEditObj) focus.getEdit(); if (editObj != null) { focus = editObj; } ICFBamTenantObj referencedObj = (ICFBamTenantObj) focus.getRequiredOwnerTenant(swingIsInitializing); java.util.List<ICFSecurityTenantObj> listOfTenant = null; CFSecurityAuthorization auth = schemaObj.getAuthorization(); long containingClusterId = auth.getSecClusterId(); listOfTenant = schemaObj.getTenantTableObj().readTenantByClusterIdx(containingClusterId); if (listOfTenant == null) { throw CFLib.getDefaultExceptionFactory() .newNullArgumentException(getClass(), S_ProcName, 0, "listOfTenant"); } Collection<ICFSecurityTenantObj> cltn = listOfTenant; JInternalFrame frame = swingSchema .getTenantFactory() .newPickerJInternalFrame(referencedObj, null, cltn, new CallbackTenantChosen()); ((ICFBamSwingTenantJPanelCommon) frame).setPanelMode(CFJPanel.PanelMode.View); cont = getParent(); while ((cont != null) && (!(cont instanceof JInternalFrame))) { cont = cont.getParent(); } if (cont != null) { JInternalFrame myInternalFrame = (JInternalFrame) cont; myInternalFrame.getDesktopPane().add(frame); frame.setVisible(true); frame.show(); } }