Class RawSqlResultsToEntityTransformer
Hierarchy
RawSqlResultsToEntityTransformer
Properties
Protected Optional queryRunner
Protected rawRelationCountResults
Protected rawRelationIdResults
Methods
Protected buildColumnAlias
buildColumnAlias( aliasName: string , columnName: string ) : string
Parameters
aliasName: string
columnName: string
Returns string
Private createValueMapFromJoinColumns
Parameters
parentAlias: string
rawSqlResults: any []
Private extractEntityPrimaryIds
Protected group
group( rawResults: any [] , alias: Alias ) : Map < string , any [] >
Parameters
Returns Map < string , any [] >
transform
transform( rawResults: any [] , alias: Alias ) : any []
Protected transformColumns
Parameters
Returns boolean
Protected transformJoins
Parameters
Returns boolean
Protected transformRawResultsGroup
Protected transformRelationCounts
transformRelationCounts( rawSqlResults: any [] , alias: Alias , entity: ObjectLiteral ) : boolean
Parameters
Returns boolean
Protected transformRelationIds
Parameters
Returns boolean
Legend
Module
Object literal
Variable
Function
Function with type parameter
Index signature
Type alias
Enumeration
Enumeration member
Property
Method
Interface
Interface with type parameter
Constructor
Property
Method
Index signature
Class
Class with type parameter
Constructor
Property
Method
Accessor
Index signature
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Protected property
Protected method
Protected accessor
Private property
Private method
Private accessor
Static property
Static method
Transforms raw sql results returned from the database into entity object. Entity is constructed based on its entity metadata.