public class DefaultCustomEntityFactory extends java.lang.Object implements CustomEntityFactory
| Constructor and Description |
|---|
DefaultCustomEntityFactory() |
| Modifier and Type | Method and Description |
|---|---|
<T extends Entity> |
newInstance(TxBindings txBindings,
java.lang.Class<T> entityInterface)
Constructs classes implementing the entity API interfaces.
|
public <T extends Entity> T newInstance(TxBindings txBindings, java.lang.Class<T> entityInterface)
CustomEntityFactory
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.newInstance in interface CustomEntityFactoryT - 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.