考慮下封裝類就好了寓娩,還有一些其他類型 比如if (type == Integer.class || type == int.class) {
stringBuffer.append(Objects.
requireNonNull(field.getAnnotation(DbField.class)).value())
.append(" INTEGER,");
} else if (type == Long.class || type == long.class) {
stringBuffer.append(Objects.
requireNonNull(field.getAnnotation(DbField.class)).value())
.append(" BIGINT,");
android自己動手封裝Sqllite數(shù)據(jù)庫廢話: android數(shù)據(jù)庫框架現(xiàn)在特別多她渴,比如greenDAO,litepal都是各個大神封裝好的抡医,有時候自己只知道用躲因,卻不知道實現(xiàn)原理,于是自己準備動手擼一個忌傻。此框架是面...