Package org.openxava.tab.impl
Class JPATabProvider
- java.lang.Object
-
- org.openxava.tab.impl.TabProviderBase
-
- org.openxava.tab.impl.JPATabProvider
-
- All Implemented Interfaces:
java.io.Serializable
,IDataReader
,ISearch
,ITabProvider
public class JPATabProvider extends TabProviderBase
AnITabProvider
that obtain data via JPA.- Author:
- Javier Paniza
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JPATabProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addEntityReferenceMapping(java.util.Collection<ReferenceMapping> entityReferencesMappings, java.util.Map<ReferenceMapping,java.lang.String> entityReferencesReferenceNames, ReferenceMapping referenceMapping, java.lang.String parentReference)
protected java.lang.Number
executeNumberSelect(java.lang.String select, java.lang.String errorId)
java.util.Collection<org.openxava.tab.impl.TabConverter>
getConverters()
java.lang.String
getSelectBase()
DataChunk
nextChunk()
Obtain the next data chunk.protected java.lang.String
noValueInSelect()
protected java.lang.String
toIncludeJoinsUsedInWhere(java.lang.String select)
java.lang.String
toQueryField(java.lang.String propertyName)
protected java.lang.String
toSearchByCollectionMemberSelect(java.lang.String select)
protected java.lang.String
translateCondition(java.lang.String condition)
protected java.lang.String
translateProperty(java.lang.String property)
boolean
usesConverters()
-
Methods inherited from class org.openxava.tab.impl.TabProviderBase
getChunkSize, getCurrent, getEntityReferencesMappings, getEntityReferencesReferenceNames, getKey, getMetaModel, getMetaTab, getResultSize, getSelect, getSum, hasReferences, isEOF, keyHasNulls, reset, resetEntityReferencesMappings, search, setChunkSize, setConditionProperties, setCurrent, setEOF, setMetaTab
-
-
-
-
Method Detail
-
translateCondition
protected java.lang.String translateCondition(java.lang.String condition)
- Specified by:
translateCondition
in classTabProviderBase
-
toQueryField
public java.lang.String toQueryField(java.lang.String propertyName)
-
getSelectBase
public java.lang.String getSelectBase()
-
getConverters
public java.util.Collection<org.openxava.tab.impl.TabConverter> getConverters()
-
toSearchByCollectionMemberSelect
protected java.lang.String toSearchByCollectionMemberSelect(java.lang.String select)
- Specified by:
toSearchByCollectionMemberSelect
in classTabProviderBase
- Since:
- 6.4
-
toIncludeJoinsUsedInWhere
protected java.lang.String toIncludeJoinsUsedInWhere(java.lang.String select)
- Specified by:
toIncludeJoinsUsedInWhere
in classTabProviderBase
-
nextChunk
public DataChunk nextChunk() throws java.rmi.RemoteException
Description copied from interface:IDataReader
Obtain the next data chunk.This method can be call from a
TableModel
to obtain data on demand.- Throws:
java.rmi.RemoteException
-
executeNumberSelect
protected java.lang.Number executeNumberSelect(java.lang.String select, java.lang.String errorId)
- Specified by:
executeNumberSelect
in classTabProviderBase
-
usesConverters
public boolean usesConverters()
-
translateProperty
protected java.lang.String translateProperty(java.lang.String property)
- Specified by:
translateProperty
in classTabProviderBase
-
noValueInSelect
protected java.lang.String noValueInSelect()
- Specified by:
noValueInSelect
in classTabProviderBase
-
addEntityReferenceMapping
protected void addEntityReferenceMapping(java.util.Collection<ReferenceMapping> entityReferencesMappings, java.util.Map<ReferenceMapping,java.lang.String> entityReferencesReferenceNames, ReferenceMapping referenceMapping, java.lang.String parentReference)
- Specified by:
addEntityReferenceMapping
in classTabProviderBase
- Since:
- 6.2.1
-
-