PmTableImpl extends PmObjectBase implements PmTable<T_ROW_PM> { @SuppressWarnings("unchecked") protected Class<T_ROW_PM> getPmRowBeanClass() { Type t = GenericTypeUtil.resolveGenericArgument(PmTableImpl.class, getClass(), 1); if (t == null) { throw new PmRuntimeException(this, "Unable to determine table row bean class. Please check your generics parametes or override getPmRowBeanClass()."); } try { return (Class<T_ROW_PM>) t; } catch (ClassCastException e) { throw new PmRuntimeException(this, "Unable to determine table row bean class. Please check your generics parametes or override getPmRowBeanClass().", e); } } PmTableImpl(PmObject pmParent); @Override List<PmTableCol> getColumnPms(); @SuppressWarnings("unchecked") @Override List<T_ROW_PM> getRowPms(); @Deprecated @Override final List<T_ROW_PM> getRows(); @Override long getTotalNumOfPmRows(); SelectMode getPmRowSelectMode(); void setPmRowSelectMode(SelectMode rowSelectMode); @Override int getNumOfPageRowPms(); void setNumOfPageRowPms(Integer numOfPageRows); @Override @Deprecated SelectionHandler<T_ROW_PM> getPmSelectionHandler(); @Override final T_ROW_PM getMasterRowPm(); T_ROW_BEAN getMasterRowPmBean(); void clearMasterRowPm(); final QueryParams getPmQueryParams(); FilterDefinitionFactory getPmFilterCompareDefinitionFactory(); @Override void addPmDecorator(PmCommandDecorator decorator, TableChange... changes); @SuppressWarnings("unchecked") @Override Collection<PmCommandDecorator> getPmDecorators(TableChange change); @Override final void updatePmTable(UpdateAspect... clearOptions); @Override void resetPmValues(); @Override final List<PmTableCol> getColumns(); @Override final int getTotalNumOfRows(); final SelectMode getRowSelectMode(); final void setRowSelectMode(SelectMode rowSelectMode); @Override final int getNumOfPageRows(); final void setNumOfPageRows(Integer numOfPageRows); @Override final PageableCollection<T_ROW_PM> getPmPageableCollection(); @SuppressWarnings("unchecked") final PageableCollection<T_ROW_BEAN> getPmPageableBeanCollection(); @Deprecated void setPmPageableCollection(PmBeanCollection<T_ROW_PM, T_ROW_BEAN> pageable); PmPager getPmPager(); static final int DEFAULT_NUM_OF_PAGE_ROW_PMS; }
@Test public void testGetPmRowBeanClass() { TablePm tpm = new TablePm(new PmConversationImpl()); assertEquals(RowBean.class, tpm.getPmRowBeanClass()); }