public interface CustomEntityFactory
| Modifier and Type | Method and Description |
|---|---|
<T extends Entity> |
newInstance(TxBindings txBindings,
java.lang.Class<T> entityInterface)
Constructs classes implementing the entity API interfaces.
|
<T extends Entity> T newInstance(TxBindings txBindings, java.lang.Class<T> entityInterface)
import org.example.schema.mydatabase.Actor;
import manifold.sql.rt.api.*;
public class MyActor extends BaseEntity implements Actor {
private MyActor(TxBindings bindings) {
super(bindings);
}
// your code here...
}
A custom class may override any of the entityInterface methods and provide any number of its own methods.T - The entity interface to implement.txBindings - The TxBindings instance the returned class instance receives in its constructor. This instance
must be maintained by this class and returned from the getBindings() method.entityInterface - The interface the class of the returned entity instance must implement.entityInterface or null the entity is not customized.Copyright © 2024. All rights reserved.