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 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 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";
   CFAccCursor cursor = new CFAccMSSqlCursor(Authorization, schema, sql);
   return (cursor);
 }