public final class TLfnDataRepository extends Object
Repository to query the data available in LuciadFusion Studio.
LuciadFusion will create an implementation of the TLfnDataRepository
at startup and provide this as a bean in the Spring container.
Spring dependency injection can be used to obtain a reference to the repository in your code.
The most straightforward way is to use the org.springframework.beans.factory.annotation.Autowired
annotation in the constructor of your Spring component.
@Controller
public class MyController {
private final TLfnDataRepository fDataRepository;
@Autowired
public MyController(TLfnDataRepository aDataRepository) {
fDataRepository = aDataRepository;
}
}
TLfnData
Modifier and Type | Method and Description |
---|---|
List<TLfnData> |
findByProductId(String aProductId)
Searches for the data contained in the product with the given id.
|
public List<TLfnData> findByProductId(String aProductId)
aProductId
is null
, an empty list is returned.aProductId
- the id of the product to search contained data for