CustomEntityClassGenerator

class LOGS.Auxiliary.CustomEntityClassGenerator.CustomEntityClassGenerator[source]

Bases: Generic[_T]

classmethod convert(value, customTypeOrId, connection, fieldName=None, limitToEntityType=None)[source]
Return type:

TypeVar(_T, bound= Union[Sample, Dataset, InventoryItem, DatasetTemplate, Person, Project])

classmethod convertFromUntyped(entity, fieldName=None, limitToEntityType=None)[source]
Return type:

TypeVar(_T, bound= Union[Sample, Dataset, InventoryItem, DatasetTemplate, Person, Project])

classmethod convertToUntyped(entity, fieldName=None)[source]
Return type:

TypeVar(_T, bound= Union[Sample, Dataset, InventoryItem, DatasetTemplate, Person, Project])

classmethod fetchCustomType(customTypeOrId, connection)[source]
classmethod generate(customType, connection, fieldName=None, limitToEntityType=None)[source]
Return type:

Type[TypeVar(_T, bound= Union[Sample, Dataset, InventoryItem, DatasetTemplate, Person, Project])]