Interface IDBOStorageService
public interface IDBOStorageService
Class IDBOPersistanceManager
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
createTables
(IThingID xtypeID, boolean isUpgrade) Creates or upgrades table storage for DBO identified by portlet typevoid
createTables
(IPortletInfo portletInfo, IThingID xtypeID, boolean isUpgrade) Creates or upgrades table storage for DBO identified by portlet typevoid
deleteAllRecords
(IThingID xtypeID) Delete all records from the specified xtype tablevoid
dropTables
(IThingID xtypeID) Drops storage tables for DBO identified by portlet typegetDeleteSql
(IThingID xtypeID) Generates and returns delete statement for DBO custom table.boolean
loadExtendedInfo
(IThing dbo, String[] properties) Loads extended attributes of the dbo from DBboolean
saveExtendedInfo
(IThing dbo, String[] properties) Saves extended attributes of the dbo back to DB
-
Method Details
-
saveExtendedInfo
Saves extended attributes of the dbo back to DB- Parameters:
dbo
- instanceproperties
- list of DBO properties to save. Passing null would save all properties- Returns:
- true if object was saved, false otherwise
- Throws:
MetaException
-
loadExtendedInfo
Loads extended attributes of the dbo from DB- Parameters:
dbo
- instanceproperties
- list of DBO properties to load. Passing null would load all properties- Returns:
- true if object record exists in the database, false otherwise
- Throws:
MetaException
-
createTables
Creates or upgrades table storage for DBO identified by portlet type- Parameters:
xtypeID
-isUpgrade
-- Throws:
MetaException
-
createTables
void createTables(IPortletInfo portletInfo, IThingID xtypeID, boolean isUpgrade) throws MetaException Creates or upgrades table storage for DBO identified by portlet type- Parameters:
portletInfo
- portletInfo to use to create the table storagextypeID
-isUpgrade
-- Throws:
MetaException
-
dropTables
Drops storage tables for DBO identified by portlet type- Parameters:
xtypeID
-- Throws:
MetaException
-
getDeleteSql
Generates and returns delete statement for DBO custom table. Returns null if DBO does not have a custom table- Throws:
MetaException
-
deleteAllRecords
Delete all records from the specified xtype table- Parameters:
xtypeID
-- Throws:
MetaException
-