public void setRequiredContainerSchemaDef(ICFDbTestSchemaDefObj value) {
    if (buff == null) {
      getEnumTypeBuff();
    }
    requiredContainerSchemaDef = null;
    if (value != null) {
      getPKey().setRequiredTenantId(value.getRequiredTenantId());
      getEnumTypeBuff().setRequiredTenantId(value.getRequiredTenantId());
      getEnumTypeBuff().setRequiredSchemaDefId(value.getRequiredId());
    }
    requiredContainerSchemaDef = value;

    super.setRequiredContainerScope(value);
  }
 public ICFDbTestSchemaDefObj getRequiredContainerSchemaDef(boolean forceRead) {
   if (forceRead || (requiredContainerSchemaDef == null)) {
     boolean anyMissing = false;
     if (!anyMissing) {
       ICFDbTestSchemaDefObj obj =
           ((ICFDbTestSchemaObj) getOrigAsEnumType().getSchema())
               .getSchemaDefTableObj()
               .readSchemaDefByIdIdx(
                   getPKey().getRequiredTenantId(), getEnumTypeBuff().getRequiredSchemaDefId());
       requiredContainerSchemaDef = obj;
       if (obj != null) {
         getEnumTypeBuff().setRequiredTenantId(obj.getRequiredTenantId());
         getEnumTypeBuff().setRequiredSchemaDefId(obj.getRequiredId());
         requiredContainerSchemaDef = obj;
       }
     }
   }
   return (requiredContainerSchemaDef);
 }