SQLMutationDialect
classin packageklyn.data.sql.internal
public abstract class SQLMutationDialect:
SQLMutationDialect

Internal DML renderer separated from query and schema rendering.

Identifiers originate exclusively from validated mappings and values remain ordered prepared-statement parameters.

Properties
Modifier and Type Member Description
public readonly property dialect
dialect as SQLDialect
Query dialect used for identifier quoting and parameter markers.
public abstract readonly property generatedIdentityMode
generatedIdentityMode as SQLGeneratedIdentityMode
Generated-key retrieval used by this dialect.
public abstract readonly property generatedIdentityQuery
generatedIdentityQuery as String
Scalar identity query for dialects using FOLLOW_UP_QUERY, otherwise empty.
Constructors
Modifier and Type Member Description
public SQLMutationDialect Creates a mutation renderer for one explicit dialect.
Methods
Modifier and Type Member Description
public delete
delete(mapping as SQLMappedEntity, entity as Object) as SQLMutationCommand:
Builds one prepared DELETE command by mapped identity.
public insert
insert(mapping as SQLMappedEntity, entity as Object) as SQLMutationCommand:
Builds one prepared INSERT command.
public qualifiedTable
qualifiedTable(mapping as SQLMappedEntity) as String:
Returns the dialect-quoted physical table name.
public abstract renderInsert
renderInsert( table as String, columns as IList<String>, markers as IList<String>, generatedColumn as String ) as String
Renders dialect-specific INSERT placement and generated-key projection.
public update
update( mapping as SQLMappedEntity, entity as Object, changed as IList<SQLPropertyMapping> ) as SQLMutationCommand:
Builds one prepared UPDATE command containing only changed columns.