Liferay 7.0-ce-m3

com.liferay.portlet.dynamicdatamapping.storage
Class JSONStorageAdapter

java.lang.Object
  extended by com.liferay.portlet.dynamicdatamapping.storage.BaseStorageAdapter
      extended by com.liferay.portlet.dynamicdatamapping.storage.JSONStorageAdapter
All Implemented Interfaces:
StorageAdapter

public class JSONStorageAdapter
extends BaseStorageAdapter


Constructor Summary
JSONStorageAdapter()
           
 
Method Summary
 long doCreate(long companyId, long ddmStructureId, DDMFormValues ddmFormValues, ServiceContext serviceContext)
           
protected  long doCreate(long companyId, long ddmStructureId, Fields fields, ServiceContext serviceContext)
           
protected  void doDeleteByClass(long classPK)
           
protected  void doDeleteByDDMStructure(long ddmStructureId)
           
protected  DDMFormValues doGetDDMFormValues(long classPK)
           
protected  List<Fields> doGetFieldsListByClasses(long ddmStructureId, long[] classPKs, List<String> fieldNames, OrderByComparator<Fields> orderByComparator)
           
protected  List<Fields> doGetFieldsListByDDMStructure(long ddmStructureId, List<String> fieldNames, OrderByComparator<Fields> orderByComparator)
           
protected  Map<Long,Fields> doGetFieldsMapByClasses(long ddmStructureId, long[] classPKs, List<String> fieldNames)
           
protected  List<Fields> doQuery(long ddmStructureId, List<String> fieldNames, Condition condition, OrderByComparator<Fields> orderByComparator)
           
protected  int doQueryCount(long ddmStructureId, Condition condition)
           
 void doUpdate(long classPK, DDMFormValues ddmFormValues, ServiceContext serviceContext)
           
protected  void doUpdate(long classPK, Fields fields, boolean mergeFields, ServiceContext serviceContext)
           
 String getStorageType()
           
 
Methods inherited from class com.liferay.portlet.dynamicdatamapping.storage.BaseStorageAdapter
create, create, deleteByClass, deleteByDDMStructure, getDDMFormValues, getFields, getFields, getFieldsList, getFieldsList, getFieldsList, getFieldsList, getFieldsMap, getFieldsMap, query, queryCount, transformDDMFormValues, transformFields, update, update, update, validateDDMFormValues, validateDDMStructureFields
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSONStorageAdapter

public JSONStorageAdapter()
Method Detail

doCreate

public long doCreate(long companyId,
                     long ddmStructureId,
                     DDMFormValues ddmFormValues,
                     ServiceContext serviceContext)
              throws Exception
Overrides:
doCreate in class BaseStorageAdapter
Throws:
Exception

doUpdate

public void doUpdate(long classPK,
                     DDMFormValues ddmFormValues,
                     ServiceContext serviceContext)
              throws Exception
Overrides:
doUpdate in class BaseStorageAdapter
Throws:
Exception

getStorageType

public String getStorageType()

doCreate

protected long doCreate(long companyId,
                        long ddmStructureId,
                        Fields fields,
                        ServiceContext serviceContext)
                 throws Exception
Specified by:
doCreate in class BaseStorageAdapter
Throws:
Exception

doDeleteByClass

protected void doDeleteByClass(long classPK)
                        throws Exception
Specified by:
doDeleteByClass in class BaseStorageAdapter
Throws:
Exception

doDeleteByDDMStructure

protected void doDeleteByDDMStructure(long ddmStructureId)
                               throws Exception
Specified by:
doDeleteByDDMStructure in class BaseStorageAdapter
Throws:
Exception

doGetDDMFormValues

protected DDMFormValues doGetDDMFormValues(long classPK)
                                    throws Exception
Overrides:
doGetDDMFormValues in class BaseStorageAdapter
Throws:
Exception

doGetFieldsListByClasses

protected List<Fields> doGetFieldsListByClasses(long ddmStructureId,
                                                long[] classPKs,
                                                List<String> fieldNames,
                                                OrderByComparator<Fields> orderByComparator)
                                         throws Exception
Specified by:
doGetFieldsListByClasses in class BaseStorageAdapter
Throws:
Exception

doGetFieldsListByDDMStructure

protected List<Fields> doGetFieldsListByDDMStructure(long ddmStructureId,
                                                     List<String> fieldNames,
                                                     OrderByComparator<Fields> orderByComparator)
                                              throws Exception
Specified by:
doGetFieldsListByDDMStructure in class BaseStorageAdapter
Throws:
Exception

doGetFieldsMapByClasses

protected Map<Long,Fields> doGetFieldsMapByClasses(long ddmStructureId,
                                                   long[] classPKs,
                                                   List<String> fieldNames)
                                            throws Exception
Specified by:
doGetFieldsMapByClasses in class BaseStorageAdapter
Throws:
Exception

doQuery

protected List<Fields> doQuery(long ddmStructureId,
                               List<String> fieldNames,
                               Condition condition,
                               OrderByComparator<Fields> orderByComparator)
                        throws Exception
Specified by:
doQuery in class BaseStorageAdapter
Throws:
Exception

doQueryCount

protected int doQueryCount(long ddmStructureId,
                           Condition condition)
                    throws Exception
Specified by:
doQueryCount in class BaseStorageAdapter
Throws:
Exception

doUpdate

protected void doUpdate(long classPK,
                        Fields fields,
                        boolean mergeFields,
                        ServiceContext serviceContext)
                 throws Exception
Specified by:
doUpdate in class BaseStorageAdapter
Throws:
Exception

Liferay 7.0-ce-m3