Returns the long value of the specified field, by returning the
corresponding value on the saved scan.

@see org.vanilladb.core.remote.jdbc.RemoteResultSet#getLong(java.lang.String)
11561
@Override
	public long getLong(String fldName) throws RemoteException {
		try {
			fldName = fldName.toLowerCase(); // to ensure case-insensitivity
			return (Long) s.getVal(fldName).castTo(BIGINT).asJavaVal();
		} catch (RuntimeException e) {
			rconn.rollback();
			throw e;
		}
	}
468544
public static long getLong(Cursor cursor, String columnName) {
        if (cursor == null) {
            return -1;
        }

        return cursor.getLong(cursor.getColumnIndex(columnName));
    }
673945
public Long getLong(String key)
   {
      Long longValue = null;
      String sVal = getText(key);
      if ((sVal != null) && (sVal.length() > 0))
      {
         longValue = Long.valueOf(sVal);
      }
      return longValue;
   }
1163641
public long getLong(String attribute, String namespace, long defaultValue) {
        String value = get(attribute, namespace);
        if (value == null) {
            return defaultValue;
        }
        return Long.parseLong(value);
    }
176121
public static long getLong(JSONValue value) {
        if (value == null)
            return 0;
        if (!(value instanceof Number))
            throw new JSONException(NOT_A_NUMBER);
        return ((Number)value).longValue();
    }
1342012
@Override
    public Long getLong(int index) {
        indexCheck();
        return rows.get(row).getLong(index);
    }
1022553
public static long getLong(String key, long valueIfNullOrNotParseable) {
        String value = System.getProperty(key);
        if (Strings.isNullOrEmpty(value)) {
            return valueIfNullOrNotParseable;
        }
        try {
            return Long.parseLong(value);
        } catch (NumberFormatException e) {
            return valueIfNullOrNotParseable;
        }
    }
941892
public static Field get(final long _id)
    {
        Field ret = null;
        final Cache<Long, Field> cache = InfinispanCache.get().<Long, Field>getCache(Field.IDCACHE);
        if (cache.containsKey(_id)) {
            ret = cache.get(_id);
        } else {
            AbstractCollection col = null;
            try {
                final QueryBuilder queryBldr = new QueryBuilder(CIAdminUserInterface.Field);
                queryBldr.addWhereAttrEqValue(CIAdminUserInterface.Field.ID, _id);
                final MultiPrintQuery multi = queryBldr.getPrint();
                multi.addAttribute(CIAdminUserInterface.Field.Collection);
                multi.executeWithoutAccessCheck();

                if (multi.next()) {
                    final Long colId = multi.<Long> getAttribute(CIAdminUserInterface.Field.Collection);
                    col = Form.get(colId);
                    if (col == null) {
                        col = Table.get(colId);
                    }
                }
            } catch (final EFapsException e) {
                Field.LOG.error("get(long)", e);
            }
            if (col != null) {
                ret = col.getFieldsMap().get(_id);
                if (ret != null) {
                    cache.put(_id, ret);
                }
            }
        }
        return ret;
    }
269151
public Long getLongFrom(JsonValue json) {
    if (json.isNumber()) {
      return json.asLong();
    } else {
      return Long.valueOf(json.asString());
    }
  }
699032
private final Long getLong(NamedList<Object> response, String... args) {
    Object objectItem = response.findRecursive(args);
    if (objectItem != null && objectItem instanceof Long) {
      return (Long) objectItem;
    } else {
      return null;
    }
  }
479850
public static long getLong(
    Object      value)
  {
    if (value == null)
    {
        return 0;
    }

    return Long.valueOf(value.toString()).longValue();
  }
734798
public static Long readLong(String value, Long defaultValue) {
		if (!StringUtils.hasText(value)) return defaultValue;
		
		return Long.valueOf(value);
	}
114243
public long getLong(String key) throws JSONException {
    Object o = get(key);
    try {
      return o instanceof Number ? ((Number) o).longValue() : Long.parseLong((String) o);
    } catch (Exception e) {
      throw new JSONException("JSONObject[" + quote(key) + "] is not a long.");
    }
  }
604570
public static long getLong(Properties config, String key, long defaultValue) {
		String val = config.getProperty(key);
		if (val == null) {
			return defaultValue;
		} else {
			try {
				return Long.parseLong(val);
			} catch (NumberFormatException nfe) {
				throw new IllegalArgumentException("Value for configuration key='" + key + "' is not set correctly. " +
						"Entered value='" + val + "'. Default value='" + defaultValue + "'");
			}
		}
	}
182148
public long getFieldAsLong(int tag, int index) {
        Integer i = (Integer)fieldIndex.get(Integer.valueOf(tag));
        return fields[i.intValue()].getAsLong(index);
    }
685219
@CheckResult @NonNull
  public Preference<Long> getLong(@NonNull String key) {
    return getLong(key, DEFAULT_LONG);
  }
1077359
public long getLong( String key, long defaultValue )
        throws MissingResourceException
    {
        try
        {
            return getLong( key );
        }
        catch( MissingResourceException mre )
        {
            return defaultValue;
        }
    }