(
cls,
compile_state,
columns,
entities_collection,
raw_column_index,
is_current_entities,
parent_bundle=None,
)
| 3124 | |
| 3125 | @classmethod |
| 3126 | def _for_columns( |
| 3127 | cls, |
| 3128 | compile_state, |
| 3129 | columns, |
| 3130 | entities_collection, |
| 3131 | raw_column_index, |
| 3132 | is_current_entities, |
| 3133 | parent_bundle=None, |
| 3134 | ): |
| 3135 | for column in columns: |
| 3136 | annotations = column._annotations |
| 3137 | if "parententity" in annotations: |
| 3138 | _entity = annotations["parententity"] |
| 3139 | else: |
| 3140 | _entity = sql_util.extract_first_column_annotation( |
| 3141 | column, "parententity" |
| 3142 | ) |
| 3143 | |
| 3144 | if _entity: |
| 3145 | if "identity_token" in column._annotations: |
| 3146 | _IdentityTokenEntity( |
| 3147 | compile_state, |
| 3148 | column, |
| 3149 | entities_collection, |
| 3150 | _entity, |
| 3151 | raw_column_index, |
| 3152 | is_current_entities, |
| 3153 | parent_bundle=parent_bundle, |
| 3154 | ) |
| 3155 | else: |
| 3156 | _ORMColumnEntity( |
| 3157 | compile_state, |
| 3158 | column, |
| 3159 | entities_collection, |
| 3160 | _entity, |
| 3161 | raw_column_index, |
| 3162 | is_current_entities, |
| 3163 | parent_bundle=parent_bundle, |
| 3164 | ) |
| 3165 | else: |
| 3166 | _RawColumnEntity( |
| 3167 | compile_state, |
| 3168 | column, |
| 3169 | entities_collection, |
| 3170 | raw_column_index, |
| 3171 | is_current_entities, |
| 3172 | parent_bundle=parent_bundle, |
| 3173 | ) |
| 3174 | |
| 3175 | @property |
| 3176 | def type(self): |
no test coverage detected