SQLPersistenceExecutor
classin packageklyn.data.sql.internal
public final class SQLPersistenceExecutor:
SQLPersistenceExecutor

Prepared SQL persistence executor owned by one EntityManager session.

Mapping reflection and dialect selection are completed before execution; per-operation work only renders validated identifiers, binds values and consumes provider results.

Constructors
Modifier and Type Member Description
public SQLPersistenceExecutor Creates one manager-scoped persistence executor.
Methods
Modifier and Type Member Description
public delete
delete(mapping as SQLMappedEntity, entity as Object) as Long:
Deletes one entity by its mapped identity.
public find
find(mapping as SQLMappedEntity, id as Object) as Object:
Finds one entity by identity, returning null when absent.
public insert
insert(mapping as SQLMappedEntity, entity as Object) as Long:
Inserts one new entity and assigns a generated identity when configured.
public update
update( mapping as SQLMappedEntity, entity as Object, changed as IList<SQLPropertyMapping> ) as Long:
Updates only changed persistent properties.