public String expandBody(MssCFGenContext genContext) {
    final String S_ProcName = "CFCrmMssCFBindSecGroupIncludeClusterId.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 ICFCrmSecGroupIncludeObj) {
      long clusterId = ((ICFCrmSecGroupIncludeObj) genDef).getRequiredClusterId();
      ret = Long.toString(clusterId);
    } else {
      throw CFLib.getDefaultExceptionFactory()
          .newUnsupportedClassException(
              getClass(),
              "expandBody",
              "genContext.getGenDef()",
              genDef,
              "ICFCrmSecGroupIncludeObj");
    }

    return (ret);
  }
  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 openContactTagCursorByTagIdx(
     CFSecurityAuthorization Authorization, long TenantId, long TagId) {
   String sql =
       getSqlSelectContactTagBuff()
           + " WHERE "
           + "cttg.tenantid = "
           + Long.toString(TenantId)
           + " "
           + "AND "
           + "cttg.tagid = "
           + Long.toString(TagId)
           + " "
           + "ORDER BY "
           + "cttg.TenantId ASC"
           + ", "
           + "cttg.ContactId ASC"
           + ", "
           + "cttg.TagId ASC";
   CFCrmCursor cursor = new CFCrmMSSqlCursor(Authorization, schema, sql);
   return (cursor);
 }
 public CFSecurityCursor openSecGroupCursorByClusterIdx(
     CFSecurityAuthorization Authorization, long ClusterId) {
   String sql =
       getSqlSelectSecGroupBuff()
           + "WHERE "
           + "sgrp.ClusterId = "
           + Long.toString(ClusterId)
           + " "
           + "ORDER BY "
           + "sgrp.ClusterId ASC"
           + ", "
           + "sgrp.SecGroupId ASC";
   CFAccCursor cursor = new CFAccOracleCursor(Authorization, schema, sql);
   return (cursor);
 }
 public CFSecurityCursor openSecFormCursorByClusterIdx(
     CFSecurityAuthorization Authorization, long ClusterId) {
   String sql =
       getSqlSelectSecFormBuff()
           + "WHERE "
           + "sfrm.ClusterId = "
           + Long.toString(ClusterId)
           + " "
           + "ORDER BY "
           + "sfrm.ClusterId ASC"
           + ", "
           + "sfrm.SecFormId ASC";
   CFCrmCursor cursor = new CFCrmDb2LUWCursor(Authorization, schema, sql);
   return (cursor);
 }
 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 openSecAppCursorByClusterIdx(
     CFSecurityAuthorization Authorization, long ClusterId) {
   String sql =
       getSqlSelectSecAppBuff()
           + "WHERE "
           + "sapp.ClusterId = "
           + Long.toString(ClusterId)
           + " "
           + "ORDER BY "
           + "sapp.ClusterId ASC"
           + ", "
           + "sapp.SecAppId ASC";
   CFInternetCursor cursor = new CFInternetDb2LUWCursor(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);
 }
 public CFSecurityCursor openSecFormCursorBySecAppIdx(
     CFSecurityAuthorization Authorization, long ClusterId, int SecAppId) {
   String sql =
       getSqlSelectSecFormBuff()
           + "WHERE "
           + "sfrm.clusterid = "
           + Long.toString(ClusterId)
           + " "
           + "AND "
           + "sfrm.secappid = "
           + Integer.toString(SecAppId)
           + " "
           + "ORDER BY "
           + "sfrm.ClusterId ASC"
           + ", "
           + "sfrm.SecFormId ASC";
   CFFreeSwitchCursor cursor = new CFFreeSwitchSybaseCursor(Authorization, schema, sql);
   return (cursor);
 }
 public String getObjName() {
   String objName;
   long val = getRequiredId();
   objName = Long.toString(val);
   return (objName);
 }