Class EntityTab
×News: OpenXava 7.7 released - March 9 · Read more
java.lang.Object
org.openxava.tab.impl.EntityTab
- All Implemented Interfaces:
Serializable, IDataReader, IEntityTabImpl, ISearch, IWithXTableModel
Provides a TableModel for reading tabular data of an entity.
This tab is valid for all components, you only need to indicate
the model name on create.
- Author:
- Javier Paniza
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindEntity(Object[] key) Return a map with key values.intintRecord (or object, or row) count of last consult.getTable()voidinit()Obtain the next data chunk.voidreset()If you call this method the next time that you callIDataReader.nextChunk()you will obtain the first chunk and fresh data from db.voidExecute search.voidsetChunkSize(int chunkSize) voidsetComponentName(String string) voidsetMetaTab(MetaTab tab) voidsetTabName(String string) boolean
-
Field Details
-
DEFAULT_CHUNK_SIZE
public static final int DEFAULT_CHUNK_SIZE- See Also:
-
-
Constructor Details
-
EntityTab
public EntityTab()
-
-
Method Details
-
usesConverters
public boolean usesConverters() -
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
-
findEntity
Return a map with key values.- Specified by:
findEntityin interfaceIEntityTabImpl- Throws:
javax.ejb.FinderExceptionRemoteException
-
getTable
- Specified by:
getTablein interfaceIWithXTableModel- Throws:
RemoteException
-
init
- Throws:
InitException
-
nextChunk
Description copied from interface:IDataReaderObtain the next data chunk.This method can be call from a
TableModelto obtain data on demand.- Specified by:
nextChunkin interfaceIDataReader- Throws:
RemoteException
-
getComponentName
-
getTabName
-
setComponentName
-
setTabName
-
getResultSize
Description copied from interface:IDataReaderRecord (or object, or row) count of last consult.- Specified by:
getResultSizein interfaceIDataReader- Throws:
RemoteException
-
getSum
- Specified by:
getSumin interfaceIEntityTabImpl- Throws:
RemoteException
-
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
-
getMetaTab
-
setMetaTab
-
getChunkSize
public int getChunkSize()- Specified by:
getChunkSizein interfaceIEntityTabImpl
-
setChunkSize
public void setChunkSize(int chunkSize)
-