public String expandBody(MssCFGenContext genContext) {
    final String S_ProcName = "CFBamMssCFBindUuidGenDispenserId.expandBody() ";

    if (genContext == null) {
      throw CFLib.getDefaultExceptionFactory()
          .newNullArgumentException(getClass(), "expandBody", 1, "genContext");
    }

    ICFLibAnyObj genDef = genContext.getGenDef();
    if (genDef == null) {
      throw CFLib.getDefaultExceptionFactory()
          .newNullArgumentException(getClass(), "expandBody", 1, "genContext.getGenDef()");
    }

    String ret;

    if (genDef instanceof ICFBamUuidGenObj) {
      Long dispenserId = ((ICFBamUuidGenObj) genDef).getOptionalDispenserId();
      if (dispenserId == null) {
        ret = null;
      } else {
        ret = dispenserId.toString();
      }
    } else {
      throw CFLib.getDefaultExceptionFactory()
          .newUnsupportedClassException(
              getClass(), "expandBody", "genContext.getGenDef()", genDef, "ICFBamUuidGenObj");
    }

    return (ret);
  }
 public CFSecurityCursor openTSecGroupCursorByTenantIdx(
     CFSecurityAuthorization Authorization, long TenantId) {
   String sql =
       getSqlSelectTSecGroupBuff()
           + "WHERE "
           + "tgrp.tenantid = "
           + Long.toString(TenantId)
           + " "
           + "ORDER BY "
           + "tgrp.TenantId ASC"
           + ", "
           + "tgrp.TSecGroupId ASC";
   CFBamCursor cursor = new CFBamSybaseCursor(Authorization, schema, sql);
   return (cursor);
 }
 public CFSecurityCursor openTSecGroupCursorByTenantIdx(
     CFSecurityAuthorization Authorization, long TenantId) {
   String sql =
       getSqlSelectTSecGroupBuff()
           + "WHERE "
           + "tgrp.TenantId = "
           + Long.toString(TenantId)
           + " "
           + ((schema.isSystemUser(Authorization))
               ? ""
               : (" AND tgrp.TenantId = " + Authorization.getSecTenantId()))
           + "ORDER BY "
           + "tgrp.TenantId ASC"
           + ", "
           + "tgrp.TSecGroupId ASC";
   CFBamCursor cursor = new CFBamPgSqlCursor(Authorization, schema, sql);
   return (cursor);
 }