Package org.eclnt.ccaddons.dof.util
Class DOFJdbcPersistorWithTenant
java.lang.Object
org.eclnt.ccaddons.dof.util.DOFJdbcPersistor
org.eclnt.ccaddons.dof.util.DOFJdbcPersistorWithTenant
- All Implemented Interfaces:
IDOFObjectPersistor
- Direct Known Subclasses:
DOFJdbcPersistorQueryOnlyWithTenant
Extension of
DOFJdbcPersistor
adding the feature to support
a tenant. The tenant is a key data columns that is always added to
any SQL statement which is executed by this persistor.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclnt.ccaddons.dof.IDOFObjectPersistor
IDOFObjectPersistor.QueryResult
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
int
void
static void
initMaxQueryCountForTenant
(int value) protected String
updateColumnsListDuringInsert
(String columnsList) protected String
updateConditionDuringExecuteQuery
(String condition) protected String
updateConditionDuringUpdate
(String condition) protected String
protected String
protected String
protected String
updateValuesListDuringInsert
(String valuesList) Methods inherited from class org.eclnt.ccaddons.dof.util.DOFJdbcPersistor
buildPropertyFilterConditionString, executeQuery, initMaxQueryCount, insert, isAbleToPersistInstances, isAbleToQuery, isPermanent, readDistinctValues, remove, save, update, updateValue
-
Constructor Details
-
DOFJdbcPersistorWithTenant
public DOFJdbcPersistorWithTenant()
-
-
Method Details
-
initMaxQueryCountForTenant
public static void initMaxQueryCountForTenant(int value) -
getMaxQueryCount
public int getMaxQueryCount()- Overrides:
getMaxQueryCount
in classDOFJdbcPersistor
-
init
- Specified by:
init
in interfaceIDOFObjectPersistor
- Overrides:
init
in classDOFJdbcPersistor
-
updateConditionDuringExecuteQuery
- Overrides:
updateConditionDuringExecuteQuery
in classDOFJdbcPersistor
-
updateSqlDuringReadDistinctValues
- Overrides:
updateSqlDuringReadDistinctValues
in classDOFJdbcPersistor
-
updateSqlDuringRemove
- Overrides:
updateSqlDuringRemove
in classDOFJdbcPersistor
-
updateSetListDuringUpdate
- Overrides:
updateSetListDuringUpdate
in classDOFJdbcPersistor
-
updateConditionDuringUpdate
- Overrides:
updateConditionDuringUpdate
in classDOFJdbcPersistor
-
updateColumnsListDuringInsert
- Overrides:
updateColumnsListDuringInsert
in classDOFJdbcPersistor
-
updateValuesListDuringInsert
- Overrides:
updateValuesListDuringInsert
in classDOFJdbcPersistor
-
findCurrentTenant
-