Database Reference
In-Depth Information
// final LiveIn liveInRelationship =
axel.getIncomingRelationship(LiveIn.class);
// will not compile
final Iterable<Friends>
axelsIncomingFriendsRelationships =
axel.getIncomingRelationships(Friends.class);
final Iterable<Friends>
axelsOutgoingFriendsRelationships =
axel.getOutgoingRelationships(Friends.class);
final Iterable<Friends>
michaelsIncomingFriendsRelationships =
michael.getIncomingRelationships(Friends.class);
final Iterable<Friends>
michaelsOutgoingFriendsRelationships =
michael.getOutgoingRelationships(Friends.class);
// commit transaction
tx.success();
} catch (FrameworkException ex) {
Logger.getLogger(Demo.class.getName()).log(Level.SEVERE,
null, ex);
}
// shut down Structr
Services.getInstance().shutdown();
}
}
Listing 1.2: Demo.java
Im Listing der oben aufgeführten Demoklasse werden die projektspezifischen Node-Klas-
sen City und Friend verwendet (Listings 1.3 und 1.4).
Search WWH ::




Custom Search