@Override public void setProperty(final String key, final Object value) {
    if (checkDeletedInTx())
      graph.throwRecordNotFoundException(getIdentity(), "The graph element " + getIdentity() + " has been deleted");

    validateProperty(this, key, value);
    final OrientBaseGraph graph = getGraph();

    if (graph != null)
      graph.autoStartTransaction();
    getRecord().field(key, value);
    if (graph != null)
      save();
  }
@Override public void setProperty(final String key, final Object value) {
    if (checkDeletedInTx())
      graph.throwRecordNotFoundException(getIdentity(), "The graph element " + getIdentity() + " has been deleted");

    validateProperty(this, key, value);
    final OrientBaseGraph graph = getGraph();

    if (graph != null)
      graph.autoStartTransaction();
    getRecord().field(key, value);
    if (graph != null)
      save();
  }
@ Override public void setProperty ( final String key , final Object value ) { if ( checkDeletedInTx ( ) ) graph . throwRecordNotFoundException ( getIdentity ( ) , "The graph element " + getIdentity ( ) + " has been deleted" ) ; validateProperty ( this , key , value ) ; final OrientBaseGraph graph = getGraph ( ) ; if ( graph != null ) graph . autoStartTransaction ( ) ; getRecord ( ) . field ( key , value ) ; if ( graph != null ) save ( ) ; }
Sets a Property value.

@param key   Property name
@param value Property value
Sets a Property value .