@@ -232,15 +232,14 @@ public byte[] toStream() throws OSerializationException {
232232 /**
233233 * (Blueprints Extension) Fills the Element from a byte[]
234234 *
235- * @param iStream
235+ * @param stream
236236 * byte array representation of the object
237237 * @throws OSerializationException
238238 */
239239 @ Override
240- public OSerializableStream fromStream (final byte [] iStream ) throws OSerializationException {
240+ public OSerializableStream fromStream (final byte [] stream ) throws OSerializationException {
241241 final ODocument record = getRecord ();
242- ((ORecordId ) record .getIdentity ()).fromString (new String (iStream ));
243- record .setInternalStatus (STATUS .NOT_LOADED );
242+ ((ORecordId ) record .getIdentity ()).fromString (new String (stream ));
244243 return this ;
245244 }
246245
@@ -428,44 +427,44 @@ protected void checkClass() {
428427 * Check if a class already exists, otherwise create it at the fly. If a transaction is running commit changes, create the class
429428 * and begin a new transaction.
430429 *
431- * @param iClassName
430+ * @param className
432431 * Class's name
433432 */
434- protected String checkForClassInSchema (final String iClassName ) {
435- if (iClassName == null )
433+ protected String checkForClassInSchema (final String className ) {
434+ if (className == null )
436435 return null ;
437436
438- if ( isDetached () )
439- return iClassName ;
437+ if ( isDetached ())
438+ return className ;
440439
441440 final OSchema schema = graph .getRawGraph ().getMetadata ().getSchema ();
442441
443- if (!schema .existsClass (iClassName )) {
442+ if (!schema .existsClass (className )) {
444443 // CREATE A NEW CLASS AT THE FLY
445444 try {
446445 graph
447446 .executeOutsideTx (new OCallable <OClass , OrientBaseGraph >() {
448447
449448 @ Override
450449 public OClass call (final OrientBaseGraph g ) {
451- return schema .createClass (iClassName , schema .getClass (getBaseClassName ()));
450+ return schema .createClass (className , schema .getClass (getBaseClassName ()));
452451
453452 }
454- }, "Committing the active transaction to create the new type '" , iClassName , "' as subclass of '" , getBaseClassName (),
453+ }, "Committing the active transaction to create the new type '" , className , "' as subclass of '" , getBaseClassName (),
455454 "'. The transaction will be reopen right after that. To avoid this behavior create the classes outside the transaction" );
456455
457456 } catch (OSchemaException e ) {
458- if (!schema .existsClass (iClassName ))
457+ if (!schema .existsClass (className ))
459458 throw e ;
460459 }
461460 } else {
462461 // CHECK THE CLASS INHERITANCE
463- final OClass cls = schema .getClass (iClassName );
462+ final OClass cls = schema .getClass (className );
464463 if (!cls .isSubClassOf (getBaseClassName ()))
465- throw new IllegalArgumentException ("Class '" + iClassName + "' is not an instance of " + getBaseClassName ());
464+ throw new IllegalArgumentException ("Class '" + className + "' is not an instance of " + getBaseClassName ());
466465 }
467466
468- return iClassName ;
467+ return className ;
469468 }
470469
471470 protected void setPropertyInternal (final Element element , final ODocument doc , final String key , final Object value ) {
0 commit comments