protected CFSecurityTenantBuff unpackTenantResultSetToBuff(ResultSet resultSet)
      throws SQLException {
    final String S_ProcName = "unpackTenantResultSetToBuff";
    int idxcol = 1;
    CFSecurityTenantBuff buff = schema.getFactoryTenant().newBuff();
    {
      String colString = resultSet.getString(idxcol);
      if (resultSet.wasNull()) {
        buff.setCreatedByUserId(null);
      } else if ((colString == null) || (colString.length() <= 0)) {
        buff.setCreatedByUserId(null);
      } else {
        buff.setCreatedByUserId(UUID.fromString(colString));
      }
      idxcol++;

      colString = resultSet.getString(idxcol);
      if (resultSet.wasNull()) {
        buff.setCreatedAt(null);
      } else if ((colString == null) || (colString.length() <= 0)) {
        buff.setCreatedAt(null);
      } else {
        buff.setCreatedAt(CFAsteriskSybaseSchema.convertTimestampString(colString));
      }
      idxcol++;
      colString = resultSet.getString(idxcol);
      if (resultSet.wasNull()) {
        buff.setUpdatedByUserId(null);
      } else if ((colString == null) || (colString.length() <= 0)) {
        buff.setUpdatedByUserId(null);
      } else {
        buff.setUpdatedByUserId(UUID.fromString(colString));
      }
      idxcol++;

      colString = resultSet.getString(idxcol);
      if (resultSet.wasNull()) {
        buff.setUpdatedAt(null);
      } else if ((colString == null) || (colString.length() <= 0)) {
        buff.setUpdatedAt(null);
      } else {
        buff.setUpdatedAt(CFAsteriskSybaseSchema.convertTimestampString(colString));
      }
      idxcol++;
    }
    buff.setRequiredClusterId(resultSet.getLong(idxcol));
    idxcol++;
    buff.setRequiredId(resultSet.getLong(idxcol));
    idxcol++;
    buff.setRequiredTenantName(resultSet.getString(idxcol));
    idxcol++;
    buff.setRequiredRevision(resultSet.getInt(idxcol));
    return (buff);
  }
 public int nextTSecGroupIdGen(CFSecurityAuthorization Authorization, long argId) {
   CFSecurityTenantPKey pkey = schema.getFactoryTenant().newPKey();
   pkey.setRequiredId(argId);
   int retval = nextTSecGroupIdGen(Authorization, pkey);
   return (retval);
 }
 public long nextLicenseIdGen(CFSecurityAuthorization Authorization, long argId) {
   CFSecurityTenantPKey pkey = schema.getFactoryTenant().newPKey();
   pkey.setRequiredId(argId);
   long retval = nextLicenseIdGen(Authorization, pkey);
   return (retval);
 }