use of org.apache.cayenne.modeler.util.EntityTreeFilter in project cayenne by apache.
the class SQLTemplatePrefetchTab method createBrowserModel.
protected TreeModel createBrowserModel(Entity entity) {
EntityTreeModel treeModel = new EntityTreeModel(entity);
treeModel.setFilter(new EntityTreeFilter() {
public boolean attributeMatch(Object node, Attribute attr) {
return false;
}
public boolean relationshipMatch(Object node, Relationship rel) {
return true;
}
});
return treeModel;
}
use of org.apache.cayenne.modeler.util.EntityTreeFilter in project cayenne by apache.
the class SelectQueryPrefetchTab method createBrowserModel.
protected TreeModel createBrowserModel(Entity entity) {
EntityTreeModel treeModel = new EntityTreeModel(entity);
treeModel.setFilter(new EntityTreeFilter() {
public boolean attributeMatch(Object node, Attribute attr) {
return false;
}
public boolean relationshipMatch(Object node, Relationship rel) {
return true;
}
});
return treeModel;
}
Aggregations