public class DataObjectBuffer
extends java.lang.Object
Constructor and Description |
---|
DataObjectBuffer(EntityInfo[] entityInfos,
java.sql.Connection connection,
int keepingAliveSeconds,
java.lang.String killthreadName,
Callback killCallback)
Construct a new buffer for a set of data objects to be accessed by table name.
|
Modifier and Type | Method and Description |
---|---|
DataObject |
getDataObject(java.lang.String tableName)
Returns a data object to access a table as specified.
|
IdentifyTemplate |
getIdentifyTemplate(java.lang.String tableName)
Returns a template to identify rows in the table as specified.
|
public DataObjectBuffer(EntityInfo[] entityInfos, java.sql.Connection connection, int keepingAliveSeconds, java.lang.String killthreadName, Callback killCallback)
entityInfos
- the table informations to build keysconnection
- the database connection to usekeepingAliveSeconds
- the amount of seconds the buffer should be keptkillthreadName
- the name of the thread controlling clearance of the bufferkillCallback
- a callback function when kill thread finished its workpublic DataObject getDataObject(java.lang.String tableName)
tableName
- the name of the table to be accessed by the data objectpublic IdentifyTemplate getIdentifyTemplate(java.lang.String tableName)
tableName
- the name of the table to be accessed using this identify templateCopyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de