com.liferay.portlet.dynamicdatamapping.storage
Class BaseStorageAdapter
java.lang.Object
com.liferay.portlet.dynamicdatamapping.storage.BaseStorageAdapter
- All Implemented Interfaces:
- StorageAdapter
- Direct Known Subclasses:
- JSONStorageAdapter
public abstract class BaseStorageAdapter
- extends Object
- implements StorageAdapter
|
Method Summary |
long |
create(long companyId,
long ddmStructureId,
DDMFormValues ddmFormValues,
ServiceContext serviceContext)
|
void |
deleteByClass(long classPK)
|
void |
deleteByDDMStructure(long ddmStructureId)
|
protected abstract long |
doCreate(long companyId,
long ddmStructureId,
DDMFormValues ddmFormValues,
ServiceContext serviceContext)
|
protected abstract void |
doDeleteByClass(long classPK)
|
protected abstract void |
doDeleteByDDMStructure(long ddmStructureId)
|
protected abstract DDMFormValues |
doGetDDMFormValues(long classPK)
|
protected abstract void |
doUpdate(long classPK,
DDMFormValues ddmFormValues,
ServiceContext serviceContext)
|
DDMFormValues |
getDDMFormValues(long classPK)
|
protected void |
transformDDMFormValues(DDMFormValues ddmFormValues,
ServiceContext serviceContext)
|
void |
update(long classPK,
DDMFormValues ddmFormValues,
ServiceContext serviceContext)
|
protected void |
validateDDMFormValues(DDMFormValues ddmFormValues)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseStorageAdapter
public BaseStorageAdapter()
create
public long create(long companyId,
long ddmStructureId,
DDMFormValues ddmFormValues,
ServiceContext serviceContext)
throws StorageException
- Specified by:
create in interface StorageAdapter
- Throws:
StorageException
deleteByClass
public void deleteByClass(long classPK)
throws StorageException
- Specified by:
deleteByClass in interface StorageAdapter
- Throws:
StorageException
deleteByDDMStructure
public void deleteByDDMStructure(long ddmStructureId)
throws StorageException
- Specified by:
deleteByDDMStructure in interface StorageAdapter
- Throws:
StorageException
getDDMFormValues
public DDMFormValues getDDMFormValues(long classPK)
throws StorageException
- Specified by:
getDDMFormValues in interface StorageAdapter
- Throws:
StorageException
update
public void update(long classPK,
DDMFormValues ddmFormValues,
ServiceContext serviceContext)
throws StorageException
- Specified by:
update in interface StorageAdapter
- Throws:
StorageException
doCreate
protected abstract long doCreate(long companyId,
long ddmStructureId,
DDMFormValues ddmFormValues,
ServiceContext serviceContext)
throws Exception
- Throws:
Exception
doDeleteByClass
protected abstract void doDeleteByClass(long classPK)
throws Exception
- Throws:
Exception
doDeleteByDDMStructure
protected abstract void doDeleteByDDMStructure(long ddmStructureId)
throws Exception
- Throws:
Exception
doGetDDMFormValues
protected abstract DDMFormValues doGetDDMFormValues(long classPK)
throws Exception
- Throws:
Exception
doUpdate
protected abstract void doUpdate(long classPK,
DDMFormValues ddmFormValues,
ServiceContext serviceContext)
throws Exception
- Throws:
Exception
transformDDMFormValues
protected void transformDDMFormValues(DDMFormValues ddmFormValues,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException
validateDDMFormValues
protected void validateDDMFormValues(DDMFormValues ddmFormValues)
throws PortalException
- Throws:
PortalException