com.liferay.portlet.dynamicdatamapping.storage
Interface StorageAdapter
- All Known Subinterfaces:
- StorageEngine
- All Known Implementing Classes:
- BaseStorageAdapter
public interface StorageAdapter
Method Summary |
long |
create(long companyId,
long ddmStructureId,
Fields fields,
ServiceContext serviceContext)
|
void |
deleteByClass(long classPK)
|
void |
deleteByDDMStructure(long ddmStructureId)
|
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)
|
List<Fields> |
query(long ddmStructureId,
List<String> fieldNames,
Condition condition,
OrderByComparator orderByComparator)
|
int |
queryCount(long ddmStructureId,
Condition condition)
|
void |
update(long classPK,
Fields fields,
boolean mergeFields,
ServiceContext serviceContext)
|
void |
update(long classPK,
Fields fields,
ServiceContext serviceContext)
|
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