/** * @see javax.jcr.Value#getLong() */ public long getLong() throws RepositoryException { return qvalue.getLong(); }
/** * @see javax.jcr.Value#getLong() */ public long getLong() throws RepositoryException { return qvalue.getLong(); }
/** * {@inheritDoc} */ public long getLong() throws RepositoryException { setValueConsumed(); return qvalue.getLong(); }
public void testGetLongOnBooleanValue() throws RepositoryException { try { QValue v = factory.create(true); v.getLong(); fail("'true' cannot be converted to a valid long value."); } catch (ValueFormatException e) { // ok } }
public void testReadBooleanAsLong() throws RepositoryException { try { QValue v = factory.create(true); v.getLong(); } catch (ValueFormatException e) { return; // ok } assertTrue("Cannot convert value to long", false); }
public void testReadBooleanAsLong() throws RepositoryException { try { QValue v = factory.create(true); v.getLong(); } catch (ValueFormatException e) { return; // ok } assertTrue("Cannot convert value to long", false); }
public void testGetLongOnBooleanValue() throws RepositoryException { try { QValue v = factory.create(true); v.getLong(); fail("'true' cannot be converted to a valid long value."); } catch (ValueFormatException e) { // ok } }
check(value.getLong()); return;
check(value.getLong()); return;
return new InternalValue(value.getDecimal()); case PropertyType.LONG: return new InternalValue(value.getLong()); case PropertyType.REFERENCE: return create(new NodeId(value.getString()));
return new InternalValue(value.getDecimal()); case PropertyType.LONG: return new InternalValue(value.getLong()); case PropertyType.REFERENCE: return create(new NodeId(value.getString()));
break; case PropertyType.LONG: jcrValue = factory.createValue(qualifiedValue.getLong()); break; default:
break; case PropertyType.LONG: jcrValue = factory.createValue(value.getLong()); break; case PropertyType.DECIMAL:
break; case PropertyType.LONG: jcrValue = factory.createValue(value.getLong()); break; case PropertyType.DECIMAL: