Liferay 6.1.2-ce-ga3

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, Fields fields, ServiceContext serviceContext)
           
 void deleteByClass(long classPK)
           
 void deleteByDDMStructure(long ddmStructureId)
           
protected  StorageAdapter getClassStorageAdapter(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 orderByComparator)
           
 List<Fields> getFieldsList(long ddmStructureId, long[] classPKs, List<String> fieldNames, OrderByComparator orderByComparator)
           
 List<Fields> getFieldsList(long ddmStructureId, long[] classPKs, OrderByComparator 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)
           
protected  StorageAdapter getStructureStorageAdapter(long ddmStructureId)
           
 List<Fields> query(long ddmStructureId, List<String> fieldNames, Condition condition, OrderByComparator orderByComparator)
           
 int queryCount(long ddmStructureId, Condition condition)
           
 void setDefaultStorageAdapter(StorageAdapter defaultStorageAdapter)
           
 void setStorageAdapters(Map<String,StorageAdapter> storageAdapters)
           
 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,
                   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

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 orderByComparator)
                           throws StorageException
Specified by:
getFieldsList in interface StorageAdapter
Throws:
StorageException

getFieldsList

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

getFieldsList

public List<Fields> getFieldsList(long ddmStructureId,
                                  long[] classPKs,
                                  OrderByComparator 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

query

public List<Fields> query(long ddmStructureId,
                          List<String> fieldNames,
                          Condition condition,
                          OrderByComparator 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

setDefaultStorageAdapter

public void setDefaultStorageAdapter(StorageAdapter defaultStorageAdapter)

setStorageAdapters

public void setStorageAdapters(Map<String,StorageAdapter> storageAdapters)

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 6.1.2-ce-ga3