com.liferay.portlet.dynamicdatamapping.storage
Class StorageEngineUtil
java.lang.Object
com.liferay.portlet.dynamicdatamapping.storage.StorageEngineUtil
public class StorageEngineUtil
- extends Object
Method Summary |
static long |
create(long companyId,
long ddmStructureId,
Fields fields,
ServiceContext serviceContext)
|
static void |
deleteByClass(long classPK)
|
static void |
deleteByDDMStructure(long ddmStructureId)
|
static Fields |
getFields(long classPK)
|
static Fields |
getFields(long classPK,
List<String> fieldNames)
|
static List<Fields> |
getFieldsList(long ddmStructureId,
List<String> fieldNames)
|
static List<Fields> |
getFieldsList(long ddmStructureId,
List<String> fieldNames,
OrderByComparator orderByComparator)
|
static List<Fields> |
getFieldsList(long ddmStructureId,
long[] classPKs,
List<String> fieldNames,
OrderByComparator orderByComparator)
|
static List<Fields> |
getFieldsList(long ddmStructureId,
long[] classPKs,
OrderByComparator orderByComparator)
|
static Map<Long,Fields> |
getFieldsMap(long ddmStructureId,
long[] classPKs)
|
static Map<Long,Fields> |
getFieldsMap(long ddmStructureId,
long[] classPKs,
List<String> fieldNames)
|
static StorageEngine |
getStorageEngine()
|
static List<Fields> |
query(long ddmStructureId,
List<String> fieldNames,
Condition condition,
OrderByComparator orderByComparator)
|
static int |
queryCount(long ddmStructureId,
Condition condition)
|
void |
setStorageEngine(StorageEngine storageEngine)
|
static void |
update(long classPK,
Fields fields,
boolean mergeFields,
ServiceContext serviceContext)
|
static 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 |
StorageEngineUtil
public StorageEngineUtil()
create
public static long create(long companyId,
long ddmStructureId,
Fields fields,
ServiceContext serviceContext)
throws StorageException
- Throws:
StorageException
deleteByClass
public static void deleteByClass(long classPK)
throws StorageException
- Throws:
StorageException
deleteByDDMStructure
public static void deleteByDDMStructure(long ddmStructureId)
throws StorageException
- Throws:
StorageException
getFields
public static Fields getFields(long classPK)
throws StorageException
- Throws:
StorageException
getFields
public static Fields getFields(long classPK,
List<String> fieldNames)
throws StorageException
- Throws:
StorageException
getFieldsList
public static List<Fields> getFieldsList(long ddmStructureId,
List<String> fieldNames)
throws StorageException
- Throws:
StorageException
getFieldsList
public static List<Fields> getFieldsList(long ddmStructureId,
List<String> fieldNames,
OrderByComparator orderByComparator)
throws StorageException
- Throws:
StorageException
getFieldsList
public static List<Fields> getFieldsList(long ddmStructureId,
long[] classPKs,
List<String> fieldNames,
OrderByComparator orderByComparator)
throws StorageException
- Throws:
StorageException
getFieldsList
public static List<Fields> getFieldsList(long ddmStructureId,
long[] classPKs,
OrderByComparator orderByComparator)
throws StorageException
- Throws:
StorageException
getFieldsMap
public static Map<Long,Fields> getFieldsMap(long ddmStructureId,
long[] classPKs)
throws StorageException
- Throws:
StorageException
getFieldsMap
public static Map<Long,Fields> getFieldsMap(long ddmStructureId,
long[] classPKs,
List<String> fieldNames)
throws StorageException
- Throws:
StorageException
getStorageEngine
public static StorageEngine getStorageEngine()
query
public static List<Fields> query(long ddmStructureId,
List<String> fieldNames,
Condition condition,
OrderByComparator orderByComparator)
throws StorageException
- Throws:
StorageException
queryCount
public static int queryCount(long ddmStructureId,
Condition condition)
throws StorageException
- Throws:
StorageException
update
public static void update(long classPK,
Fields fields,
boolean mergeFields,
ServiceContext serviceContext)
throws StorageException
- Throws:
StorageException
update
public static void update(long classPK,
Fields fields,
ServiceContext serviceContext)
throws StorageException
- Throws:
StorageException
setStorageEngine
public void setStorageEngine(StorageEngine storageEngine)