litesoft
@ 948
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 |
package org.litesoft.datt.server.pos; import org.litesoft.bo.attributes.*; import org.litesoft.core.util.*; import org.litesoft.orsup.base.*; import org.litesoft.orsup.otherattributeaccessors.*; import org.litesoft.orsup.selection.*; import org.litesoft.orsup.transact.*; public abstract class ReportAllRestrictedResourceCommonGO extends Report<ReportAllRestrictedResourceCommon> implements HasAttributes { private static final ConstructionControl CONSTRUCTION_CONTROL = new ConstructionControl(); public static SimpleFromIdentifier from() { return ReportAllRestrictedResourceCommonMetaData.INSTANCE; } protected ReportAllRestrictedResourceCommonGO( Transaction pTransaction ) { super( ReportAllRestrictedResourceCommonMetaData.INSTANCE, pTransaction ); mID = getNextSequenceNumber( getClass() ); registerWithTransaction(); setDefaults(); } protected ReportAllRestrictedResourceCommonGO( ConstructionControl pConstructionControl ) { super( ReportAllRestrictedResourceCommonMetaData.INSTANCE, CONSTRUCTION_CONTROL, pConstructionControl ); } public static final AttributeAccessorSCD CD_RecordVersion = new AttributeAccessor_RecordVersion(); protected final RecordVersionHelper mRecordVersion = new RecordVersionHelper(); public Long getRecordVersion() { return mRecordVersion.getRecordVersion(); } private static class AttributeAccessor_RecordVersion extends AttributeAccessorSCD_RecordVersion<ReportAllRestrictedResourceCommon> { public AttributeAccessor_RecordVersion() { super( "RecordVersion", "RecordVersion" ); } @Override protected RecordVersionHelper getRecordVersionHelper( ReportAllRestrictedResourceCommon pPO ) { return pPO.mRecordVersion; } } public static final AttributeAccessorSCD CD_ID = new AttributeAccessor_ID(); private Long mID; public Long getID() { return mID; } protected void LLsetID( Long pID ) { verifyMutability( CD_ID, mID, pID ); mID = pID; } private static class AttributeAccessor_ID extends AttributeAccessorSCDsimplePersistedSysSetOnly<ReportAllRestrictedResourceCommon> implements NonImportableFeature { public AttributeAccessor_ID() { super( "ID", "ID", false, _Long.AddOnly() ); } @Override public Object getValueOnPO( ReportAllRestrictedResourceCommon pPO ) { return pPO.getID(); } @Override public void db_setValueOnPO( ReportAllRestrictedResourceCommon pPO, Object pValue ) { pPO.LLsetID( to_Long( pValue ) ); } } public static final AttributeAccessorSCDtoOneCommonPaired<ReportAllRestrictedResourceCommon> CD_SpecificReport = new AttributeAccessor_SpecificReport(); protected org.litesoft.orsup.lazyload.LazyLoadToOneCommonPaired<ReportAllRestrictedResourceCommon> mSpecificReport = // new org.litesoft.orsup.lazyload.LazyLoadToOneCommonPaired<ReportAllRestrictedResourceCommon>( (ReportAllRestrictedResourceCommon) this, CD_SpecificReport ); public org.litesoft.orsup.nonpublic.PersistentObjectImpl getSpecificReport() { return processLazyLoadAccess( mSpecificReport ); } public void setSpecificReport( org.litesoft.orsup.nonpublic.PersistentObjectImpl pSpecificReport ) { processLazyLoadMutation( mSpecificReport, pSpecificReport ); } protected void replacingSpecificReport( org.litesoft.orsup.nonpublic.PersistentObjectImpl pOldSpecificReport, org.litesoft.orsup.nonpublic.PersistentObjectImpl pNewSpecificReport ) { } private static class AttributeAccessor_SpecificReport extends AttributeAccessorSCDtoOneCommonPaired<ReportAllRestrictedResourceCommon> { public AttributeAccessor_SpecificReport() { super( "SpecificReport", "SpecificReport" ); } @Override public org.litesoft.orsup.lazyload.LazyLoadToOneCommonPaired<ReportAllRestrictedResourceCommon> getValueHolder( ReportAllRestrictedResourceCommon pPO ) { return pPO.mSpecificReport; } @Override public Object getValueOnPO( ReportAllRestrictedResourceCommon pPO ) { return pPO.getSpecificReport(); } @Override public void setValueOnPO( ReportAllRestrictedResourceCommon pPO, Object pValue ) { pPO.setSpecificReport( (org.litesoft.orsup.nonpublic.PersistentObjectImpl) pValue ); } @Override public void pairReplaced( ReportAllRestrictedResourceCommon pPO, org.litesoft.orsup.nonpublic.PersistentObjectImpl pOldSpecificReport, org.litesoft.orsup.nonpublic.PersistentObjectImpl pNewSpecificReport ) { pPO.replacingSpecificReport( pOldSpecificReport, pNewSpecificReport ); } } static class MyMetaData extends ReportMetaData<ReportAllRestrictedResourceCommon> { public static final String OBJECT_NAME = "ReportAllRestrictedResourceCommon"; public static final String TABLE_NAME = "ReportAllRestrictedResourceCommon"; MyMetaData() { super( OBJECT_NAME, TABLE_NAME, new AttributeAccessorKeySet( CD_ID ), // CD_RecordVersion, /* ... */ CD_ID, /* .............. */ // Paired CD_SpecificReport /* ... Required */ ); setIndexes( new Index( "ReportAllRestrictedResourceCommon21AIDX1", null, false, CD_SpecificReport ) ); } @Override public Class getPOclass() { return ReportAllRestrictedResourceCommon.class; } @Override public ReportAllRestrictedResourceCommon createNew( Transaction pTransaction ) { return new ReportAllRestrictedResourceCommon( pTransaction ); } @Override public ReportAllRestrictedResourceCommon createPOfromFinder() { return new ReportAllRestrictedResourceCommon( CONSTRUCTION_CONTROL ); } @Override public String getDisplayValueFormat() { return null; } @Override public String getRecordVersionAttributeName() { return CD_RecordVersion.getName(); } } } |