bee.util

class HoneyUtil:

Util for Bee framework.

@staticmethod
def get_obj_field_value(obj):

Return the property dictionary of the given object, if not, return None

@staticmethod
def get_class_field_value(cls):
@staticmethod
def get_class_field(cls):

Returns a list of properties for a given class, but does not include the system's.

@staticmethod
def remove_prefix(dict_obj):

remove __ or _ prefix

@staticmethod
def get_list_params(classField, entity_list):

get object value with tuple. eg: # list_params = [
# (None, 'Alice', 30, 'Likes swimming', '123 Maple St'),
# (None, 'Charlie', 35, 'Enjoys hiking', None),
# (None, 'David', 28, None, None), # remark 和 addr 均为空
# ]

@staticmethod
def get_table_name(obj):
@staticmethod
def get_table_name_by_class(cls):
@staticmethod
def get_pk(obj):
@staticmethod
def get_pk_by_class(cls):

get pk from bean

@staticmethod
def get_unique_key(cls):
@staticmethod
def get_not_null_filels(cls):
@staticmethod
def is_sql_key_word_upper():
@staticmethod
def generate_pk_statement():
@staticmethod
def adjustUpperOrLower(value):
@staticmethod
def python_type_to_sql_type(python_type):
@staticmethod
def sql_type_to_python_type(sql_type):
@staticmethod
def mid_type_to_sql_type(mid_type):
@staticmethod
def get_class_normal_field(cls):
@staticmethod
def get_field_and_type(cls):
@staticmethod
def get_mid_field_and_type(cls):