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 Stringintvoidstatic voidinitMaxQueryCountForTenant(int value) protected StringupdateColumnsListDuringInsert(String columnsList) protected StringupdateConditionDuringExecuteQuery(String condition) protected StringupdateConditionDuringUpdate(String condition) protected Stringprotected Stringprotected Stringprotected StringupdateValuesListDuringInsert(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:
getMaxQueryCountin classDOFJdbcPersistor
-
init
- Specified by:
initin interfaceIDOFObjectPersistor- Overrides:
initin classDOFJdbcPersistor
-
updateConditionDuringExecuteQuery
- Overrides:
updateConditionDuringExecuteQueryin classDOFJdbcPersistor
-
updateSqlDuringReadDistinctValues
- Overrides:
updateSqlDuringReadDistinctValuesin classDOFJdbcPersistor
-
updateSqlDuringRemove
- Overrides:
updateSqlDuringRemovein classDOFJdbcPersistor
-
updateSetListDuringUpdate
- Overrides:
updateSetListDuringUpdatein classDOFJdbcPersistor
-
updateConditionDuringUpdate
- Overrides:
updateConditionDuringUpdatein classDOFJdbcPersistor
-
updateColumnsListDuringInsert
- Overrides:
updateColumnsListDuringInsertin classDOFJdbcPersistor
-
updateValuesListDuringInsert
- Overrides:
updateValuesListDuringInsertin classDOFJdbcPersistor
-
findCurrentTenant
-