Package org.openxava.tab.impl
Class TabProviderBase
- java.lang.Object
-
- org.openxava.tab.impl.TabProviderBase
-
- All Implemented Interfaces:
java.io.Serializable
,IDataReader
,ISearch
,ITabProvider
- Direct Known Subclasses:
JPATabProvider
public abstract class TabProviderBase extends java.lang.Object implements ITabProvider, java.io.Serializable
- Author:
- Javier Paniza
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TabProviderBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
addEntityReferenceMapping(java.util.Collection<ReferenceMapping> entityReferencesMappings, java.util.Map<ReferenceMapping,java.lang.String> entityReferencesReferenceNames, ReferenceMapping referenceMapping, java.lang.String parentReference)
protected abstract java.lang.Number
executeNumberSelect(java.lang.String select, java.lang.String errorId)
int
getChunkSize()
Size of chunk returned byIDataReader.nextChunk()
.int
getCurrent()
protected java.util.Collection<ReferenceMapping>
getEntityReferencesMappings()
protected java.util.Map<ReferenceMapping,java.lang.String>
getEntityReferencesReferenceNames()
protected java.lang.Object[]
getKey()
protected MetaModel
getMetaModel()
protected MetaTab
getMetaTab()
int
getResultSize()
Record (or object, or row) count of last consult.protected java.lang.String
getSelect()
java.lang.Number
getSum(java.lang.String property)
protected boolean
hasReferences()
protected boolean
isEOF()
protected boolean
keyHasNulls()
protected abstract java.lang.String
noValueInSelect()
void
reset()
If you call this method the next time that you callIDataReader.nextChunk()
you will obtain the first chunk and fresh data from db.protected void
resetEntityReferencesMappings()
void
search(java.lang.String condition, java.lang.Object key)
Execute search.void
setChunkSize(int chunkSize)
Size of chunk returned byIDataReader.nextChunk()
.void
setConditionProperties(java.util.Collection<java.lang.String> conditionProperties)
void
setCurrent(int i)
protected void
setEOF(boolean eof)
void
setMetaTab(MetaTab metaTab)
protected abstract java.lang.String
toIncludeJoinsUsedInWhere(java.lang.String select)
protected abstract java.lang.String
toSearchByCollectionMemberSelect(java.lang.String select)
protected abstract java.lang.String
translateCondition(java.lang.String condition)
protected abstract java.lang.String
translateProperty(java.lang.String property)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openxava.tab.impl.IDataReader
nextChunk
-
Methods inherited from interface org.openxava.tab.impl.ITabProvider
getConverters, getSelectBase, toQueryField, usesConverters
-
-
-
-
Method Detail
-
translateProperty
protected abstract java.lang.String translateProperty(java.lang.String property)
-
translateCondition
protected abstract java.lang.String translateCondition(java.lang.String condition)
-
executeNumberSelect
protected abstract java.lang.Number executeNumberSelect(java.lang.String select, java.lang.String errorId)
-
toSearchByCollectionMemberSelect
protected abstract java.lang.String toSearchByCollectionMemberSelect(java.lang.String select)
- Since:
- 6.4
-
toIncludeJoinsUsedInWhere
protected abstract java.lang.String toIncludeJoinsUsedInWhere(java.lang.String select)
-
setMetaTab
public void setMetaTab(MetaTab metaTab)
- Specified by:
setMetaTab
in interfaceITabProvider
-
getMetaModel
protected MetaModel getMetaModel()
-
getMetaTab
protected MetaTab getMetaTab()
-
search
public void search(java.lang.String condition, java.lang.Object key) throws javax.ejb.FinderException, java.rmi.RemoteException
Description copied from interface:ISearch
Execute search.If there are no object then generate a empty result, but does not throw a exception.
-
getChunkSize
public int getChunkSize()
Size of chunk returned byIDataReader.nextChunk()
.
-
setChunkSize
public void setChunkSize(int chunkSize)
Size of chunk returned byIDataReader.nextChunk()
.- Specified by:
setChunkSize
in interfaceITabProvider
-
keyHasNulls
protected boolean keyHasNulls()
-
getKey
protected java.lang.Object[] getKey()
-
noValueInSelect
protected abstract java.lang.String noValueInSelect()
-
getCurrent
public int getCurrent()
-
setCurrent
public void setCurrent(int i)
- Specified by:
setCurrent
in interfaceITabProvider
-
getResultSize
public int getResultSize() throws java.rmi.RemoteException
Description copied from interface:IDataReader
Record (or object, or row) count of last consult.- Specified by:
getResultSize
in interfaceIDataReader
- Throws:
java.rmi.RemoteException
-
getSum
public java.lang.Number getSum(java.lang.String property)
- Specified by:
getSum
in interfaceITabProvider
-
reset
public void reset() throws java.rmi.RemoteException
Description copied from interface:IDataReader
If you call this method the next time that you callIDataReader.nextChunk()
you will obtain the first chunk and fresh data from db.- Specified by:
reset
in interfaceIDataReader
- Throws:
java.rmi.RemoteException
-
getSelect
protected java.lang.String getSelect()
-
isEOF
protected boolean isEOF()
-
setEOF
protected void setEOF(boolean eof)
-
resetEntityReferencesMappings
protected void resetEntityReferencesMappings()
-
hasReferences
protected boolean hasReferences() throws XavaException
- Throws:
XavaException
-
getEntityReferencesReferenceNames
protected java.util.Map<ReferenceMapping,java.lang.String> getEntityReferencesReferenceNames()
-
getEntityReferencesMappings
protected java.util.Collection<ReferenceMapping> getEntityReferencesMappings() throws XavaException
- Throws:
XavaException
-
setConditionProperties
public void setConditionProperties(java.util.Collection<java.lang.String> conditionProperties)
- Specified by:
setConditionProperties
in interfaceITabProvider
-
addEntityReferenceMapping
protected abstract void addEntityReferenceMapping(java.util.Collection<ReferenceMapping> entityReferencesMappings, java.util.Map<ReferenceMapping,java.lang.String> entityReferencesReferenceNames, ReferenceMapping referenceMapping, java.lang.String parentReference)
- Since:
- 6.2.1
-
-