P - the type of the parent of the entity to create (if entity has
no parent then used the Void type).E - the type of entity to createpublic interface Creator<P,E>
| Modifier and Type | Method and Description |
|---|---|
E |
create(TopiaContext tx,
P parent,
E from)
Perform the creation of an entity.
|
E create(TopiaContext tx, P parent, E from) throws TopiaException
from entity should not have already been created in
database ? it should only be here to prepare the creation of the entity.
TODO Review this explanation :)tx - the current available transactionparent - the parent of the entityfrom - the entity to createTopiaException - if any db problem.Copyright © 2004–2022 Code Lutin. All rights reserved.