litesoft
@ 151
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
// This Source Code is in the Public Domain per: http://litesoft.org/License.txt package org.litesoft.orsup.otherattributeaccessors; import org.litesoft.bo.attributes.*; import org.litesoft.orsup.base.*; public abstract class AbstractAttributeAccessorSCDsimpleVirtualRO<Owner extends PersistentObject> extends AbstractAttributeAccessorSCDsimpleVirtual<Owner> { protected AbstractAttributeAccessorSCDsimpleVirtualRO( String pName, boolean pRequired, AttributeMetaData pAMD ) { super( pName, pRequired, pAMD.RO() ); } @Override public final void setValueOnPO( Owner pPO, Object pValue ) { throw new IllegalStateException( "Attempt to update Read-Only attribute: " + getName() ); } } |