@Override public int hashCode() { int hashCode = getResource().hashCode(); hashCode ^= property.hashCode(); return hashCode; }
@Override public int hashCode() { int hashCode = getResource().hashCode(); hashCode ^= property.hashCode(); return hashCode; }
@Override public boolean equals(Object o) { if (o == this) return true; if (!o.getClass().equals(this.getClass())) return false; RemotePropertySet p = (RemotePropertySet) o; if (!getResource().equals(p.getResource())) return false; if (!property.equals(p.property)) return false; if (!getObjectConnection().equals(p.getObjectConnection())) return false; return true; }
@Override public boolean equals(Object o) { if (o == this) return true; if (!o.getClass().equals(this.getClass())) return false; RemotePropertySet p = (RemotePropertySet) o; if (!getResource().equals(p.getResource())) return false; if (!property.equals(p.property)) return false; if (!getObjectConnection().equals(p.getObjectConnection())) return false; return true; }
protected RepositoryResult<Statement> getStatements() throws RepositoryException { ObjectConnection conn = getObjectConnection(); return conn.getStatements(getResource(), getURI(), null); }
protected RepositoryResult<Statement> getStatements() throws RepositoryException { ObjectConnection conn = getObjectConnection(); return conn.getStatements(getResource(), getURI(), null); }
public boolean contains(Object o) { ObjectConnection conn = getObjectConnection(); try { Value val = getValue(o); return conn.hasStatement(getResource(), getURI(), val); } catch (RepositoryException e) { throw new ObjectPersistException(e); } }
public boolean contains(Object o) { ObjectConnection conn = getObjectConnection(); try { Value val = getValue(o); return conn.hasStatement(getResource(), getURI(), val); } catch (RepositoryException e) { throw new ObjectPersistException(e); } }
public void clear() { try { property.remove(getObjectConnection(), getResource(), null); } catch (RepositoryException e) { throw new ObjectPersistException(e); } refresh(); refreshEntity(); }
public void clear() { try { property.remove(getObjectConnection(), getResource(), null); } catch (RepositoryException e) { throw new ObjectPersistException(e); } refresh(); refreshEntity(); }
/** * This method always returns <code>true</code> * * @return <code>true</code> */ public boolean add(Object o) { ObjectConnection conn = getObjectConnection(); try { Value value = getValue(o); add(conn, getResource(), value); if (value instanceof Resource) { refreshEntity(); } } catch (RepositoryException e) { throw new ObjectPersistException(e); } refresh(); refresh(o); return true; }
/** * This method always returns <code>true</code> * * @return <code>true</code> */ public boolean add(Object o) { ObjectConnection conn = getObjectConnection(); try { Value value = getValue(o); add(conn, getResource(), value); if (value instanceof Resource) { refreshEntity(); } } catch (RepositoryException e) { throw new ObjectPersistException(e); } refresh(); refresh(o); return true; }
/** * This method always returns <code>true</code> * * @return <code>true</code> */ public boolean remove(Object o) { ObjectConnection conn = getObjectConnection(); try { Value value = getValue(o); remove(conn, getResource(), value); if (value instanceof Resource) { refreshEntity(); } } catch (RepositoryException e) { throw new ObjectPersistException(e); } refresh(o); refresh(); return true; }
/** * Removes the specified element from this set if it is present. * * @return <code>true</code> if this set contained the specified element. */ public boolean remove(Object o) { boolean contained = contains(o); ObjectConnection conn = getObjectConnection(); try { Value value = getValue(o); remove(conn, getResource(), value); if (value instanceof Resource) { refreshEntity(); } } catch (RepositoryException e) { throw new ObjectPersistException(e); } refresh(o); refresh(); return contained; }