public CFCrmAddressBuff getBuff() { if (buff == null) { if (isNew) { buff = ((ICFAccSchema) schema.getBackingStore()).getFactoryAddress().newBuff(); } else { // Read the data buff via the backing store buff = ((ICFAccSchema) schema.getBackingStore()) .getTableAddress() .readDerivedByIdIdx( ((ICFAccSchemaObj) schema).getAuthorization(), getPKey().getRequiredTenantId(), getPKey().getRequiredAddressId()); if (buff != null) { copyBuffToPKey(); } } } return (buff); }
public CFCrmAddressPKey getPKey() { if (pKey == null) { pKey = ((ICFAccSchema) schema.getBackingStore()).getFactoryAddress().newPKey(); } return (pKey); }