public static String formatSecGroupPKeyAttributes(String separator, CFSecuritySecGroupBuff buff) {
   String retval =
       CFLibXmlUtil.formatRequiredInt64(separator, "ClusterId", buff.getRequiredClusterId())
           + CFLibXmlUtil.formatRequiredInt32(
               separator, "SecGroupId", buff.getRequiredSecGroupId());
   return (retval);
 }
 public static String formatClearSubDep2RqstLock(String separator, long argTenantId, long argId) {
   String retval =
       "<RqstClearSubDep2Lock "
           + CFLibXmlUtil.formatRequiredInt64(null, "TenantId", argTenantId)
           + CFLibXmlUtil.formatRequiredInt64(separator, "Id", argId)
           + " />";
   return (retval);
 }
 public static String formatSysClusterBuffAttributes(
     String separator, CFSecuritySysClusterBuff buff) {
   String retval =
       CFInternetXMsgSysClusterMessageFormatter.formatSysClusterPKeyAttributes(separator, buff)
           + CFLibXmlUtil.formatRequiredInt32(separator, "Revision", buff.getRequiredRevision())
           + CFLibXmlUtil.formatRequiredInt64(separator, "ClusterId", buff.getRequiredClusterId());
   return (retval);
 }
 public static String formatDoubleColRqstRead(String separator, long argTenantId, long argId) {
   String retval =
       "<RqstDoubleColRead "
           + CFLibXmlUtil.formatRequiredInt64(null, "TenantId", argTenantId)
           + CFLibXmlUtil.formatRequiredInt64(separator, "Id", argId)
           + " />";
   return (retval);
 }
 public static String formatSecGroupRqstDeleteByClusterVisIdx(
     String separator, long argClusterId, boolean argIsVisible) {
   String retval =
       "<RqstSecGroupDeleteByClusterVisIdx "
           + CFLibXmlUtil.formatRequiredInt64(null, "ClusterId", argClusterId)
           + CFLibXmlUtil.formatRequiredBoolean(separator, "IsVisible", argIsVisible)
           + " />";
   return (retval);
 }
 public static String formatSecGroupRqstDeleteByUNameIdx(
     String separator, long argClusterId, String argName) {
   String retval =
       "<RqstSecGroupDeleteByUNameIdx "
           + CFLibXmlUtil.formatRequiredInt64(null, "ClusterId", argClusterId)
           + CFLibXmlUtil.formatRequiredXmlString(separator, "Name", argName)
           + " />";
   return (retval);
 }
 public static String formatExtConfigConfRqstRead(
     String separator, long argClusterId, long argId) {
   String retval =
       "<RqstExtConfigConfRead "
           + CFLibXmlUtil.formatRequiredInt64(null, "ClusterId", argClusterId)
           + CFLibXmlUtil.formatRequiredInt64(separator, "Id", argId)
           + " />";
   return (retval);
 }
 public static String formatExtConfigConfRqstDeleteByHostIdx(
     String separator, long argClusterId, long argHostNodeId) {
   String retval =
       "<RqstExtConfigConfDeleteByHostIdx "
           + CFLibXmlUtil.formatRequiredInt64(null, "ClusterId", argClusterId)
           + CFLibXmlUtil.formatRequiredInt64(separator, "HostNodeId", argHostNodeId)
           + " />";
   return (retval);
 }
 public static String formatDoubleColRqstReadByPrevIdx(
     String separator, Long argPrevTenantId, Long argPrevId) {
   String retval =
       "<RqstDoubleColReadByPrevIdx "
           + CFLibXmlUtil.formatOptionalInt64(null, "PrevTenantId", argPrevTenantId)
           + CFLibXmlUtil.formatOptionalInt64(separator, "PrevId", argPrevId)
           + " />";
   return (retval);
 }
 public static String formatDoubleColRqstDeleteByNextIdx(
     String separator, Long argNextTenantId, Long argNextId) {
   String retval =
       "<RqstDoubleColDeleteByNextIdx "
           + CFLibXmlUtil.formatOptionalInt64(null, "NextTenantId", argNextTenantId)
           + CFLibXmlUtil.formatOptionalInt64(separator, "NextId", argNextId)
           + " />";
   return (retval);
 }
 public static String formatSecGroupRqstRead(
     String separator, long argClusterId, int argSecGroupId) {
   String retval =
       "<RqstSecGroupRead "
           + CFLibXmlUtil.formatRequiredInt64(null, "ClusterId", argClusterId)
           + CFLibXmlUtil.formatRequiredInt32(separator, "SecGroupId", argSecGroupId)
           + " />";
   return (retval);
 }
 public static String formatSecFormRqstDeleteBySecAppIdx(
     String separator, long argClusterId, int argSecAppId) {
   String retval =
       "<RqstSecFormDeleteBySecAppIdx "
           + CFLibXmlUtil.formatRequiredInt64(null, "ClusterId", argClusterId)
           + CFLibXmlUtil.formatRequiredInt32(separator, "SecAppId", argSecAppId)
           + " />";
   return (retval);
 }
 public static String formatClearSubDep2RqstDeleteByTableIdx(
     String separator, long argTenantId, long argRelationId) {
   String retval =
       "<RqstClearSubDep2DeleteByTableIdx "
           + CFLibXmlUtil.formatRequiredInt64(null, "TenantId", argTenantId)
           + CFLibXmlUtil.formatRequiredInt64(separator, "RelationId", argRelationId)
           + " />";
   return (retval);
 }
 public static String formatDoubleColRqstDeleteByScopeIdx(
     String separator, long argTenantId, long argScopeId) {
   String retval =
       "<RqstDoubleColDeleteByScopeIdx "
           + CFLibXmlUtil.formatRequiredInt64(null, "TenantId", argTenantId)
           + CFLibXmlUtil.formatRequiredInt64(separator, "ScopeId", argScopeId)
           + " />";
   return (retval);
 }
 public static String formatDoubleColRqstReadByUNameIdx(
     String separator, long argTenantId, long argScopeId, String argName) {
   String retval =
       "<RqstDoubleColReadByUNameIdx "
           + CFLibXmlUtil.formatRequiredInt64(null, "TenantId", argTenantId)
           + CFLibXmlUtil.formatRequiredInt64(separator, "ScopeId", argScopeId)
           + CFLibXmlUtil.formatRequiredXmlString(separator, "Name", argName)
           + " />";
   return (retval);
 }
 public static String formatClearSubDep2RqstDeleteByUNameIdx(
     String separator, long argTenantId, long argContClearDep1Id, String argName) {
   String retval =
       "<RqstClearSubDep2DeleteByUNameIdx "
           + CFLibXmlUtil.formatRequiredInt64(null, "TenantId", argTenantId)
           + CFLibXmlUtil.formatRequiredInt64(separator, "ContClearDep1Id", argContClearDep1Id)
           + CFLibXmlUtil.formatRequiredXmlString(separator, "Name", argName)
           + " />";
   return (retval);
 }
 public static String formatExtConfigConfRqstReadByUNameIdx(
     String separator, long argClusterId, long argHostNodeId, String argFileFullName) {
   String retval =
       "<RqstExtConfigConfReadByUNameIdx "
           + CFLibXmlUtil.formatRequiredInt64(null, "ClusterId", argClusterId)
           + CFLibXmlUtil.formatRequiredInt64(separator, "HostNodeId", argHostNodeId)
           + CFLibXmlUtil.formatRequiredXmlString(separator, "FileFullName", argFileFullName)
           + " />";
   return (retval);
 }
 public static String formatDoubleColRqstReadByContNextIdx(
     String separator, long argTenantId, long argScopeId, Long argNextId) {
   String retval =
       "<RqstDoubleColReadByContNextIdx "
           + CFLibXmlUtil.formatRequiredInt64(null, "TenantId", argTenantId)
           + CFLibXmlUtil.formatRequiredInt64(separator, "ScopeId", argScopeId)
           + CFLibXmlUtil.formatOptionalInt64(separator, "NextId", argNextId)
           + " />";
   return (retval);
 }
 public static String formatDoubleColRqstMoveDown(
     String separator, long TenantId, long Id, int revision) {
   String retval =
       "<RqstDoubleColMoveDown "
           + CFLibXmlUtil.formatRequiredInt64(separator, "TenantId", TenantId)
           + CFLibXmlUtil.formatRequiredInt64(separator, "Id", Id)
           + CFLibXmlUtil.formatRequiredInt32(separator, "Revision", revision)
           + " />";
   return (retval);
 }
 public static String formatClearSubDep2RqstReadByContClearDep1Idx(
     String separator, long argContClearDep1TenantId, long argContClearDep1Id) {
   String retval =
       "<RqstClearSubDep2ReadByContClearDep1Idx "
           + CFLibXmlUtil.formatRequiredInt64(
               null, "ContClearDep1TenantId", argContClearDep1TenantId)
           + CFLibXmlUtil.formatRequiredInt64(separator, "ContClearDep1Id", argContClearDep1Id)
           + " />";
   return (retval);
 }
 public static String formatClearSubDep2BuffAttributes(
     String separator, CFBamClearSubDep2Buff buff) {
   String retval =
       CFBamXMsgClearDepMessageFormatter.formatClearDepBuffAttributes(separator, buff)
           + CFLibXmlUtil.formatRequiredInt64(
               separator, "ContClearDep1TenantId", buff.getRequiredContClearDep1TenantId())
           + CFLibXmlUtil.formatRequiredInt64(
               separator, "ContClearDep1Id", buff.getRequiredContClearDep1Id())
           + CFLibXmlUtil.formatRequiredXmlString(separator, "Name", buff.getRequiredName());
   return (retval);
 }
 public static String formatSecFormRqstReadByUJEEServletIdx(
     String separator, long argClusterId, int argSecAppId, String argJEEServletMapName) {
   String retval =
       "<RqstSecFormReadByUJEEServletIdx "
           + CFLibXmlUtil.formatRequiredInt64(null, "ClusterId", argClusterId)
           + CFLibXmlUtil.formatRequiredInt32(separator, "SecAppId", argSecAppId)
           + CFLibXmlUtil.formatRequiredXmlString(
               separator, "JEEServletMapName", argJEEServletMapName)
           + " />";
   return (retval);
 }
  public String expandBody(MssCFGenContext genContext) {
    final String S_ProcName = "CFBamMssCFBindSecSessionStart.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 ICFBamSecSessionObj) {
      Calendar start = ((ICFBamSecSessionObj) genDef).getRequiredStart();
      ret = CFLibXmlUtil.formatTimestamp(start);
    } else {
      throw CFLib.getDefaultExceptionFactory()
          .newUnsupportedClassException(
              getClass(), "expandBody", "genContext.getGenDef()", genDef, "ICFBamSecSessionObj");
    }

    return (ret);
  }
 public static String formatMimeTypeRqstReadByIdIdx(String separator, int argMimeTypeId) {
   String retval =
       "<RqstMimeTypeRead "
           + CFLibXmlUtil.formatRequiredInt32(null, "MimeTypeId", argMimeTypeId)
           + " />";
   return (retval);
 }
 public static String formatMimeTypeRqstDeleteByUNameIdx(String separator, String argName) {
   String retval =
       "<RqstMimeTypeDeleteByUNameIdx "
           + CFLibXmlUtil.formatRequiredXmlString(null, "Name", argName)
           + " />";
   return (retval);
 }
 public static String formatSysClusterRqstDeleteByClusterIdx(String separator, long argClusterId) {
   String retval =
       "<RqstSysClusterDeleteByClusterIdx "
           + CFLibXmlUtil.formatRequiredInt64(null, "ClusterId", argClusterId)
           + " />";
   return (retval);
 }
  public String expandBody(MssCFGenContext genContext) {
    final String S_ProcName = "CFBamMssCFBindTimestampDefDefaultValue.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 ICFBamTimestampDefObj) {
      Calendar defaultValue = ((ICFBamTimestampDefObj) genDef).getOptionalDefaultValue();
      if (defaultValue == null) {
        ret = null;
      } else {
        ret = CFLibXmlUtil.formatTimestamp(defaultValue);
      }
    } else {
      throw CFLib.getDefaultExceptionFactory()
          .newUnsupportedClassException(
              getClass(), "expandBody", "genContext.getGenDef()", genDef, "ICFBamTimestampDefObj");
    }

    return (ret);
  }
 public static String formatSysClusterRqstReadByIdIdx(String separator, int argSingletonId) {
   String retval =
       "<RqstSysClusterRead "
           + CFLibXmlUtil.formatRequiredInt32(null, "SingletonId", argSingletonId)
           + " />";
   return (retval);
 }
 public static String formatSecGroupRqstDelete(String separator, CFSecuritySecGroupBuff buff) {
   String retval =
       "<RqstSecGroupDelete "
           + formatSecGroupPKeyAttributes(separator, buff)
           + CFLibXmlUtil.formatRequiredInt32(separator, "Revision", buff.getRequiredRevision())
           + " />";
   return (retval);
 }
 public static String formatDoubleColRqstDelete(String separator, CFBamDoubleColBuff buff) {
   String retval =
       "<RqstDoubleColDelete "
           + formatValuePKeyAttributes(separator, buff)
           + CFLibXmlUtil.formatRequiredInt32(separator, "Revision", buff.getRequiredRevision())
           + " />";
   return (retval);
 }