public class SIVODataSourceImpl extends java.lang.Object implements ViewDataSource, CtrlHintsSupport
| Constructor and Description |
|---|
SIVODataSourceImpl() |
| Modifier and Type | Method and Description |
|---|---|
long |
estimateCount(FindCriteria findCriteria)
Retrieve the number object that matchs the criteria.
|
java.util.List<java.lang.String> |
getContextKey()
Returns the list of attributes that is to be considered the context key
attributes for looking up row-level UI hints.
|
java.util.List<AttrCtrlHints> |
getControlHints(Row row,
java.lang.String localeName)
Returns the row-level UI hints for a given locale.
|
java.util.List<AttrCtrlHints> |
getControlHints(java.lang.String localeName)
Returns the base UI hints for a given locale.
|
boolean |
isCtrlHintsSupported()
Returns a flag specifying if the underlying datasource can retrieve the
static control hints defined on the server-side EOs and VOs.
|
boolean |
isRowCtrlHintsSupported()
Returns a flag specifying if the underlying datasource can retrieve the
row-specific control hints defined on the server-side EOs and VOs.
|
java.util.List |
retrieveData(FindCriteria findCriteria)
Retrieve the data and form a list.
|
void |
setDataSourceDef(DataSourceDef dsDef)
Sets the DataSourceDef to be used with the instance.
|
void |
setViewInfo(ViewDefImpl viewDef,
ViewObjectImpl vo) |
public java.util.List retrieveData(FindCriteria findCriteria)
ViewDataSourceretrieveData in interface ViewDataSourcefindCriteria - The search criteria.public long estimateCount(FindCriteria findCriteria)
ViewDataSourceestimateCount in interface ViewDataSourcefindCriteria - The search criteria.public void setViewInfo(ViewDefImpl viewDef, ViewObjectImpl vo)
setViewInfo in interface ViewDataSourcepublic boolean isCtrlHintsSupported()
CtrlHintsSupportisCtrlHintsSupported in interface CtrlHintsSupporttrue if the underlying datasource supports control
hints and false otherwise.public java.util.List<AttrCtrlHints> getControlHints(java.lang.String localeName)
CtrlHintsSupportgetControlHints in interface CtrlHintsSupportlocaleName - a locale namepublic boolean isRowCtrlHintsSupported()
CtrlHintsSupportisRowCtrlHintsSupported in interface CtrlHintsSupporttrue if the underlying datasource supports row-level
specific control hints and false otherwise.public java.util.List<java.lang.String> getContextKey()
CtrlHintsSupportgetContextKey in interface CtrlHintsSupportpublic java.util.List<AttrCtrlHints> getControlHints(Row row, java.lang.String localeName)
CtrlHintsSupportgetControlHints in interface CtrlHintsSupportrow - the data rowlocaleName - a locale namepublic void setDataSourceDef(DataSourceDef dsDef)
CtrlHintsSupportsetDataSourceDef in interface CtrlHintsSupportdsDef - the datasource metadata