graphdb/src/main/java/com/tinkerpop/blueprints/impls/orient/OrientBaseGraph.java
public Iterable<Edge> getEdgesOfClass(final String iClassName, final boolean iPolymorphic) {
    makeActive();

    final OClass cls = getRawGraph().getMetadata().getSchema().getClass(iClassName);
    if (cls == null)
      throw new IllegalArgumentException("Cannot find class '" + iClassName + "' in database schema");

    if (!cls.isSubClassOf(OrientEdgeType.CLASS_NAME))
      throw new IllegalArgumentException("Class '" + iClassName + "' is not an edge class");

    return new OrientElementScanIterable<Edge>(this, iClassName, iPolymorphic);
  }
public Iterable<Edge> getEdgesOfClass(final String iClassName, final boolean iPolymorphic) {
    makeActive();

    final OClass cls = getRawGraph().getMetadata().getSchema().getClass(iClassName);
    if (cls == null)
      throw new IllegalArgumentException("Cannot find class '" + iClassName + "' in database schema");

    if (!cls.isSubClassOf(OrientEdgeType.CLASS_NAME))
      throw new IllegalArgumentException("Class '" + iClassName + "' is not an edge class");

    return new OrientElementScanIterable<Edge>(this, iClassName, iPolymorphic);
  }
public Iterable < Edge > getEdgesOfClass ( final String iClassName , final boolean iPolymorphic ) { makeActive ( ) ; final OClass cls = getRawGraph ( ) . getMetadata ( ) . getSchema ( ) . getClass ( iClassName ) ; if ( cls == null ) throw new IllegalArgumentException ( "Cannot find class '" + iClassName + "' in database schema" ) ; if ( ! cls . isSubClassOf ( OrientEdgeType . CLASS_NAME ) ) throw new IllegalArgumentException ( "Class '" + iClassName + "' is not an edge class" ) ; return new OrientElementScanIterable < Edge > ( this , iClassName , iPolymorphic ) ; }
Get all the Edges in Graph of a specific edges class and all sub-classes only if iPolymorphic is true.

@param iClassName   Edge class name to filter
@param iPolymorphic If true consider also iClassName Edge sub-classes

@return Edges as Iterable
Get all the Edges in Graph of a specific edges class and all sub - classes only if iPolymorphic is true .