001
014
015 package com.liferay.portlet.dynamicdatamapping.storage;
016
017 import com.liferay.portal.service.ServiceContext;
018 import com.liferay.portlet.dynamicdatamapping.StorageException;
019
020
025 public interface StorageAdapter {
026
027 public long create(
028 long companyId, long ddmStructureId, DDMFormValues ddmFormValues,
029 ServiceContext serviceContext)
030 throws StorageException;
031
032 public void deleteByClass(long classPK) throws StorageException;
033
034 public void deleteByDDMStructure(long ddmStructureId)
035 throws StorageException;
036
037 public DDMFormValues getDDMFormValues(long classPK) throws StorageException;
038
039 public String getStorageType();
040
041 public void update(
042 long classPK, DDMFormValues ddmFormValues,
043 ServiceContext serviceContext)
044 throws StorageException;
045
046 }