Package net.sf.basedb.util.listable
Class ListableUtil
- java.lang.Object
-
- net.sf.basedb.util.listable.ListableUtil
-
-
Constructor Summary
Constructors Constructor Description ListableUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<Item>
getListableItems(Item item, SyncFilter.SourceItemTransform transform)
Get all item types that can have the specified relation to the with the given item type.static SourceItemTransformerFactory
getTransformerFactory(Item targetItemType)
Create a source item transformer factory that can transform items to the given target item type.
-
-
-
Method Detail
-
getListableItems
public static List<Item> getListableItems(Item item, SyncFilter.SourceItemTransform transform)
Get all item types that can have the specified relation to the with the given item type. Depending on the transform parameter this return either the parent or child items or the item itself.
-
getTransformerFactory
public static SourceItemTransformerFactory getTransformerFactory(Item targetItemType)
Create a source item transformer factory that can transform items to the given target item type. If no transformer factory exists, null is returned.
-
-