Liferay 6.2.0

com.liferay.portlet.dynamicdatamapping.storage
Interface StorageAdapter

All Known Subinterfaces:
StorageEngine
All Known Implementing Classes:
BaseStorageAdapter, ExpandoStorageAdapter, StorageEngineImpl, XMLStorageAdapter

public interface StorageAdapter


Method Summary
abstract  long create(long companyId, long ddmStructureId, Fields fields, ServiceContext serviceContext)
           
abstract  void deleteByClass(long classPK)
           
abstract  void deleteByDDMStructure(long ddmStructureId)
           
abstract  Fields getFields(long classPK)
           
abstract  Fields getFields(long classPK, List<String> fieldNames)
           
abstract  List<Fields> getFieldsList(long ddmStructureId, List<String> fieldNames)
           
abstract  List<Fields> getFieldsList(long ddmStructureId, List<String> fieldNames, OrderByComparator orderByComparator)
           
abstract  List<Fields> getFieldsList(long ddmStructureId, long[] classPKs, List<String> fieldNames, OrderByComparator orderByComparator)
           
abstract  List<Fields> getFieldsList(long ddmStructureId, long[] classPKs, OrderByComparator orderByComparator)
           
abstract  Map<Long,Fields> getFieldsMap(long ddmStructureId, long[] classPKs)
           
abstract  Map<Long,Fields> getFieldsMap(long ddmStructureId, long[] classPKs, List<String> fieldNames)
           
abstract  List<Fields> query(long ddmStructureId, List<String> fieldNames, Condition condition, OrderByComparator orderByComparator)
           
abstract  int queryCount(long ddmStructureId, Condition condition)
           
abstract  void update(long classPK, Fields fields, boolean mergeFields, ServiceContext serviceContext)
           
abstract  void update(long classPK, Fields fields, ServiceContext serviceContext)
           
 

Method Detail

create

long create(long companyId,
            long ddmStructureId,
            Fields fields,
            ServiceContext serviceContext)
            throws StorageException
Throws:
StorageException

deleteByClass

void deleteByClass(long classPK)
                   throws StorageException
Throws:
StorageException

deleteByDDMStructure

void deleteByDDMStructure(long ddmStructureId)
                          throws StorageException
Throws:
StorageException

getFields

Fields getFields(long classPK)
                 throws StorageException
Throws:
StorageException

getFields

Fields getFields(long classPK,
                 List<String> fieldNames)
                 throws StorageException
Throws:
StorageException

getFieldsList

List<Fields> getFieldsList(long ddmStructureId,
                           List<String> fieldNames)
                           throws StorageException
Throws:
StorageException

getFieldsList

List<Fields> getFieldsList(long ddmStructureId,
                           List<String> fieldNames,
                           OrderByComparator orderByComparator)
                           throws StorageException
Throws:
StorageException

getFieldsList

List<Fields> getFieldsList(long ddmStructureId,
                           long[] classPKs,
                           List<String> fieldNames,
                           OrderByComparator orderByComparator)
                           throws StorageException
Throws:
StorageException

getFieldsList

List<Fields> getFieldsList(long ddmStructureId,
                           long[] classPKs,
                           OrderByComparator orderByComparator)
                           throws StorageException
Throws:
StorageException

getFieldsMap

Map<Long,Fields> getFieldsMap(long ddmStructureId,
                              long[] classPKs)
                              throws StorageException
Throws:
StorageException

getFieldsMap

Map<Long,Fields> getFieldsMap(long ddmStructureId,
                              long[] classPKs,
                              List<String> fieldNames)
                              throws StorageException
Throws:
StorageException

query

List<Fields> query(long ddmStructureId,
                   List<String> fieldNames,
                   Condition condition,
                   OrderByComparator orderByComparator)
                   throws StorageException
Throws:
StorageException

queryCount

int queryCount(long ddmStructureId,
               Condition condition)
               throws StorageException
Throws:
StorageException

update

void update(long classPK,
            Fields fields,
            boolean mergeFields,
            ServiceContext serviceContext)
            throws StorageException
Throws:
StorageException

update

void update(long classPK,
            Fields fields,
            ServiceContext serviceContext)
            throws StorageException
Throws:
StorageException

Liferay 6.2.0