public class EntityExtensionUtil
extends Object
-
Constructor Summary
Constructors
-
Method Summary
static <T,
S extends T>
S
extend(T baseEntity,
Class<T> baseEntityClass,
Class<S> extendedEntityClass,
com.liferay.petra.function.UnsafeConsumer<S,? extends Exception> unsafeConsumer)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
EntityExtensionUtil
public EntityExtensionUtil()
-
Method Details
-
extend
public static <T,
S extends T> S extend(T baseEntity,
Class<T> baseEntityClass,
Class<S> extendedEntityClass,
com.liferay.petra.function.UnsafeConsumer<S,? extends Exception> unsafeConsumer)
throws Exception
- Throws:
Exception