Liferay 7.0-ce-m3

com.liferay.portlet.dynamicdatamapping.storage
Class StorageEngineImpl

java.lang.Object
  extended by com.liferay.portlet.dynamicdatamapping.storage.StorageEngineImpl
All Implemented Interfaces:
StorageAdapter, StorageEngine

public class StorageEngineImpl
extends Object
implements StorageEngine


Constructor Summary
StorageEngineImpl()
           
 
Method Summary
 long create(long companyId, long ddmStructureId, DDMFormValues ddmFormValues, ServiceContext serviceContext)
           
 long create(long companyId, long ddmStructureId, Fields fields, ServiceContext serviceContext)
           
 void deleteByClass(long classPK)
           
 void deleteByDDMStructure(long ddmStructureId)
           
protected  StorageAdapter getClassStorageAdapter(long classPK)
           
 DDMFormValues getDDMFormValues(long classPK)
           
 Fields getFields(long classPK)
           
 Fields getFields(long classPK, List<String> fieldNames)
           
 List<Fields> getFieldsList(long ddmStructureId, List<String> fieldNames)
           
 List<Fields> getFieldsList(long ddmStructureId, List<String> fieldNames, OrderByComparator<Fields> orderByComparator)
           
 List<Fields> getFieldsList(long ddmStructureId, long[] classPKs, List<String> fieldNames, OrderByComparator<Fields> orderByComparator)
           
 List<Fields> getFieldsList(long ddmStructureId, long[] classPKs, OrderByComparator<Fields> orderByComparator)
           
 Map<Long,Fields> getFieldsMap(long ddmStructureId, long[] classPKs)
           
 Map<Long,Fields> getFieldsMap(long ddmStructureId, long[] classPKs, List<String> fieldNames)
           
protected  StorageAdapter getStorageAdapter(String storageType)
           
 String getStorageType()
           
protected  StorageAdapter getStructureStorageAdapter(long ddmStructureId)
           
 List<Fields> query(long ddmStructureId, List<String> fieldNames, Condition condition, OrderByComparator<Fields> orderByComparator)
           
 int queryCount(long ddmStructureId, Condition condition)
           
 void update(long classPK, DDMFormValues ddmFormValues, ServiceContext serviceContext)
           
 void update(long classPK, Fields fields, boolean mergeFields, ServiceContext serviceContext)
           
 void update(long classPK, Fields fields, ServiceContext serviceContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StorageEngineImpl

public StorageEngineImpl()
Method Detail

create

public long create(long companyId,
                   long ddmStructureId,
                   DDMFormValues ddmFormValues,
                   ServiceContext serviceContext)
            throws StorageException
Specified by:
create in interface StorageAdapter
Throws:
StorageException

create

public long create(long companyId,
                   long ddmStructureId,
                   Fields fields,
                   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

getFields

public Fields getFields(long classPK)
                 throws StorageException
Specified by:
getFields in interface StorageAdapter
Throws:
StorageException

getFields

public Fields getFields(long classPK,
                        List<String> fieldNames)
                 throws StorageException
Specified by:
getFields in interface StorageAdapter
Throws:
StorageException

getFieldsList

public List<Fields> getFieldsList(long ddmStructureId,
                                  List<String> fieldNames)
                           throws StorageException
Specified by:
getFieldsList in interface StorageAdapter
Throws:
StorageException

getFieldsList

public List<Fields> getFieldsList(long ddmStructureId,
                                  List<String> fieldNames,
                                  OrderByComparator<Fields> orderByComparator)
                           throws StorageException
Specified by:
getFieldsList in interface StorageAdapter
Throws:
StorageException

getFieldsList

public List<Fields> getFieldsList(long ddmStructureId,
                                  long[] classPKs,
                                  List<String> fieldNames,
                                  OrderByComparator<Fields> orderByComparator)
                           throws StorageException
Specified by:
getFieldsList in interface StorageAdapter
Throws:
StorageException

getFieldsList

public List<Fields> getFieldsList(long ddmStructureId,
                                  long[] classPKs,
                                  OrderByComparator<Fields> orderByComparator)
                           throws StorageException
Specified by:
getFieldsList in interface StorageAdapter
Throws:
StorageException

getFieldsMap

public Map<Long,Fields> getFieldsMap(long ddmStructureId,
                                     long[] classPKs)
                              throws StorageException
Specified by:
getFieldsMap in interface StorageAdapter
Throws:
StorageException

getFieldsMap

public Map<Long,Fields> getFieldsMap(long ddmStructureId,
                                     long[] classPKs,
                                     List<String> fieldNames)
                              throws StorageException
Specified by:
getFieldsMap in interface StorageAdapter
Throws:
StorageException

getStorageType

public String getStorageType()
Specified by:
getStorageType in interface StorageAdapter

query

public List<Fields> query(long ddmStructureId,
                          List<String> fieldNames,
                          Condition condition,
                          OrderByComparator<Fields> orderByComparator)
                   throws StorageException
Specified by:
query in interface StorageAdapter
Throws:
StorageException

queryCount

public int queryCount(long ddmStructureId,
                      Condition condition)
               throws StorageException
Specified by:
queryCount 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

update

public void update(long classPK,
                   Fields fields,
                   boolean mergeFields,
                   ServiceContext serviceContext)
            throws StorageException
Specified by:
update in interface StorageAdapter
Throws:
StorageException

update

public void update(long classPK,
                   Fields fields,
                   ServiceContext serviceContext)
            throws StorageException
Specified by:
update in interface StorageAdapter
Throws:
StorageException

getClassStorageAdapter

protected StorageAdapter getClassStorageAdapter(long classPK)
                                         throws StorageException
Throws:
StorageException

getStorageAdapter

protected StorageAdapter getStorageAdapter(String storageType)

getStructureStorageAdapter

protected StorageAdapter getStructureStorageAdapter(long ddmStructureId)
                                             throws StorageException
Throws:
StorageException

Liferay 7.0-ce-m3