Class TabProviderBase
java.lang.Object
org.openxava.tab.impl.TabProviderBase
- All Implemented Interfaces:
Serializable, IDataReader, ISearch, ITabProvider
- Direct Known Subclasses:
JPATabProvider
- Author:
- Javier Paniza
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidaddEntityReferenceMapping(Collection<ReferenceMapping> entityReferencesMappings, Map<ReferenceMapping, String> entityReferencesReferenceNames, ReferenceMapping referenceMapping, String parentReference) protected abstract NumberexecuteNumberSelect(String select, String errorId) intSize of chunk returned byIDataReader.nextChunk().intprotected Collection<ReferenceMapping> protected Map<ReferenceMapping, String> protected Object[]getKey()protected MetaModelprotected MetaTabintRecord (or object, or row) count of last consult.protected Stringprotected booleanprotected booleanisEOF()protected booleanprotected abstract Stringvoidreset()If you call this method the next time that you callIDataReader.nextChunk()you will obtain the first chunk and fresh data from db.protected voidvoidExecute search.voidsetChunkSize(int chunkSize) Size of chunk returned byIDataReader.nextChunk().voidsetConditionProperties(Collection<String> conditionProperties) voidsetCurrent(int i) protected voidsetEOF(boolean eof) voidsetMetaTab(MetaTab metaTab) protected abstract StringtoIncludeJoinsUsedInWhere(String select) protected abstract Stringprotected abstract StringtranslateCondition(String condition) protected abstract StringtranslateProperty(String property) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IDataReader
nextChunkMethods inherited from interface ITabProvider
getConverters, getSelectBase, toQueryField, usesConverters
-
Constructor Details
-
TabProviderBase
public TabProviderBase()
-
-
Method Details
-
translateProperty
-
translateCondition
-
executeNumberSelect
-
toSearchByCollectionMemberSelect
-
toIncludeJoinsUsedInWhere
-
setMetaTab
- Specified by:
setMetaTabin interfaceITabProvider
-
getMetaModel
-
getMetaTab
-
search
Description copied from interface:ISearchExecute search.If there are no object then generate a empty result, but does not throw a exception.
- Specified by:
searchin interfaceISearch- Parameters:
condition- Condition to use in search.key- Key to send to search- Throws:
javax.ejb.FinderException- Any logic problem on searchRemoteException- Any system problem on search
-
getChunkSize
public int getChunkSize()Size of chunk returned byIDataReader.nextChunk(). -
setChunkSize
public void setChunkSize(int chunkSize) Size of chunk returned byIDataReader.nextChunk().- Specified by:
setChunkSizein interfaceITabProvider
-
keyHasNulls
protected boolean keyHasNulls() -
getKey
-
noValueInSelect
-
getCurrent
public int getCurrent() -
setCurrent
public void setCurrent(int i) - Specified by:
setCurrentin interfaceITabProvider
-
getResultSize
Description copied from interface:IDataReaderRecord (or object, or row) count of last consult.- Specified by:
getResultSizein interfaceIDataReader- Throws:
RemoteException
-
getSum
- Specified by:
getSumin interfaceITabProvider
-
reset
Description copied from interface:IDataReaderIf you call this method the next time that you callIDataReader.nextChunk()you will obtain the first chunk and fresh data from db.- Specified by:
resetin interfaceIDataReader- Throws:
RemoteException
-
getSelect
-
isEOF
protected boolean isEOF() -
setEOF
protected void setEOF(boolean eof) -
resetEntityReferencesMappings
protected void resetEntityReferencesMappings() -
hasReferences
- Throws:
XavaException
-
getEntityReferencesReferenceNames
-
getEntityReferencesMappings
- Throws:
XavaException
-
setConditionProperties
- Specified by:
setConditionPropertiesin interfaceITabProvider
-
addEntityReferenceMapping
protected abstract void addEntityReferenceMapping(Collection<ReferenceMapping> entityReferencesMappings, Map<ReferenceMapping, String> entityReferencesReferenceNames, ReferenceMapping referenceMapping, String parentReference) - Since:
- 6.2.1
-