接口的使用
org.redkale.util.Attribute
-
使用Attribute的程序包 程序包 说明 org.redkale.convert 提供数据的序列化和反解析功能org.redkale.convert.json 提供JSON的序列化和反解析功能org.redkale.convert.pb org.redkale.source 数据源(数据库、缓存)操作包org.redkale.util Redkale工具包 -
-
org.redkale.convert中Attribute的使用
声明为Attribute的org.redkale.convert中的字段 修饰符和类型 字段 说明 protected Attribute<T,F>DeMember. attribute类型参数类型为Attribute的org.redkale.convert中的字段 修饰符和类型 字段 说明 protected BiFunction<Attribute,Object,Object>Writer. objFieldFunc返回Attribute的org.redkale.convert中的方法 修饰符和类型 方法 说明 Attribute<T,F>DeMember. getAttribute()Attribute<T,F>EnMember. getAttribute()参数类型为Attribute的org.redkale.convert中的方法 修饰符和类型 方法 说明 static <R extends Reader,T,F>
DeMember<R,T,F>DeMember. create(Attribute<T,F> attribute, ConvertFactory factory, Class<F> fieldType)static <W extends Writer,T,F>
EnMember<W,T,F>EnMember. create(Attribute<T,F> attribute, ConvertFactory factory, Class<F> fieldtype)类型变量类型为Attribute的org.redkale.convert中的方法参数 修饰符和类型 方法 说明 protected <S extends W>
SConvert. fieldFunc(S writer, BiFunction<Attribute,Object,Object> objFieldFunc, BiFunction mapFieldFunc, Function<Object,ConvertField[]> objExtFunc)Convert<R,W>Convert. newConvert(BiFunction<Attribute,Object,Object> objFieldFunc)Convert<R,W>Convert. newConvert(BiFunction<Attribute,Object,Object> objFieldFunc, BiFunction mapFieldFunc)abstract Convert<R,W>Convert. newConvert(BiFunction<Attribute,Object,Object> objFieldFunc, BiFunction mapFieldFunc, Function<Object,ConvertField[]> objExtFunc)Convert<R,W>Convert. newConvert(BiFunction<Attribute,Object,Object> objFieldFunc, Function<Object,ConvertField[]> objExtFunc)参数类型为Attribute的org.redkale.convert中的构造器 构造器 说明 DeMember(Attribute<T,F> attribute, int tag, Decodeable<R,F> decoder)DeMember(Attribute<T,F> attribute, Field field, Method method)DeMember(Attribute<T,F> attribute, Decodeable<R,F> decoder, Field field, Method method)EnMember(Attribute<T,F> attribute, Encodeable<W,F> encoder)EnMember(Attribute<T,F> attribute, Encodeable<W,F> encoder, Field field, Method method, BiFunction fieldFunc) -
org.redkale.convert.json中Attribute的使用
类型变量类型为Attribute的org.redkale.convert.json中的方法参数 修饰符和类型 方法 说明 JsonConvertJsonConvert. newConvert(BiFunction<Attribute,Object,Object> objFieldFunc)JsonConvertJsonConvert. newConvert(BiFunction<Attribute,Object,Object> objFieldFunc, BiFunction mapFieldFunc)JsonConvertJsonConvert. newConvert(BiFunction<Attribute,Object,Object> objFieldFunc, BiFunction mapFieldFunc, Function<Object,ConvertField[]> objExtFunc)JsonConvertJsonConvert. newConvert(BiFunction<Attribute,Object,Object> objFieldFunc, Function<Object,ConvertField[]> objExtFunc) -
org.redkale.convert.pb中Attribute的使用
类型变量类型为Attribute的org.redkale.convert.pb中的方法参数 修饰符和类型 方法 说明 ProtobufConvertProtobufConvert. newConvert(BiFunction<Attribute,Object,Object> objFieldFunc)ProtobufConvertProtobufConvert. newConvert(BiFunction<Attribute,Object,Object> objFieldFunc, BiFunction mapFieldFunc)ProtobufConvertProtobufConvert. newConvert(BiFunction<Attribute,Object,Object> fieldFunc, BiFunction mapFieldFunc, Function<Object,ConvertField[]> objExtFunc)ProtobufConvertProtobufConvert. newConvert(BiFunction<Attribute,Object,Object> objFieldFunc, Function<Object,ConvertField[]> objExtFunc) -
org.redkale.source中Attribute的使用
声明为Attribute的org.redkale.source中的字段 修饰符和类型 字段 说明 protected Attribute<T,Serializable>[]EntityFullFunc. attrs返回Attribute的org.redkale.source中的方法 修饰符和类型 方法 说明 Attribute<T,Serializable>EntityCache. getAttribute(String fieldname)Attribute<T,Serializable>EntityInfo. getAttribute(String fieldname)根据Entity字段名获取字段的AttributeAttribute<T,Serializable>[]EntityFullFunc. getAttrs()Attribute<T,Serializable>[]EntityInfo. getInsertAttributes()Attribute<T,Serializable>EntityInfo. getPrimary()获取主键字段的AttributeAttribute<T,Serializable>[]EntityInfo. getPrimaryOneArray()获取主键字段的Attribute单一元素数组Attribute<T,Serializable>[]EntityInfo. getQueryAttributes()Attribute<T,Serializable>EntityInfo. getUpdateAttribute(String fieldname)根据Entity字段名获取可更新字段的AttributeAttribute<T,Serializable>[]EntityInfo. getUpdateAttributes()Attribute<T,Serializable>[]EntityInfo. getUpdateEntityAttributes()返回变量类型为Attribute的类型的org.redkale.source中的方法 修饰符和类型 方法 说明 protected Map<String,Attribute<T,Serializable>>EntityInfo. getAttributes()获取所有数据表字段的Attribute, 不包含@Transient字段类型变量类型为Attribute的org.redkale.source中的方法参数 修饰符和类型 方法 说明 protected Stream<T>EntityCache. distinctStream(Stream<T> stream, List<Attribute<T,Serializable>> keyattrs)voidEntityInfo. forEachAttribute(BiConsumer<String,Attribute<T,Serializable>> action)遍历数据库表对应的所有字段, 不包含@Transient字段TEntityCache. update(T entity, Collection<Attribute<T,Serializable>> attrs)T[]EntityCache. update(T entity, Collection<Attribute<T,Serializable>> attrs, FilterNode node)TEntityCache. updateColumn(Serializable pk, List<Attribute<T,Serializable>> attrs, List<ColumnValue> values)T[]EntityCache. updateColumn(FilterNode node, Flipper flipper, List<Attribute<T,Serializable>> attrs, List<ColumnValue> values)参数类型为Attribute的org.redkale.source中的构造器 构造器 说明 EntityFullFunc(Class<T> type, Creator<T> creator, Attribute<T,Serializable>[] attrs) -
org.redkale.util中Attribute的使用
返回Attribute的org.redkale.util中的方法 修饰符和类型 方法 说明 static <T,F>
Attribute<T,F>[]Attribute. create(Class<T> clazz)根据Class生成getter、setter方法都存在的字段对应的 Attribute 对象数组。static <T,F>
Attribute<T,F>Attribute. create(Class<T> subclass, Class<T> clazz, Field field)根据一个Class和Field生成 Attribute 对象。static <T,F>
Attribute<T,F>Attribute. create(Class<T> subclass, Class<T> clazz, Field field, Object attach)根据一个Class和Field生成 Attribute 对象。static <T,F>
Attribute<T,F>Attribute. create(Class<T> clazz, Field field)根据一个Class和Field生成 Attribute 对象。static <T,F>
Attribute<T,F>Attribute. create(Class<T> clazz, Field field, Object attach)根据一个Class和Field生成 Attribute 对象。static <T,F>
Attribute<T,F>Attribute. create(Class<T> clazz, Method getter, Method setter)根据Class、getter和setter方法生成 Attribute 对象。static <T,F>
Attribute<T,F>Attribute. create(Class<T> clazz, Method getter, Method setter, Object attach)根据Class、getter和setter方法生成 Attribute 对象。static <T,F>
Attribute<T,F>Attribute. create(Class<T> clazz, String fieldName)根据一个Class和field真实名称生成 Attribute 对象。static <T,F>
Attribute<T,F>Attribute. create(Class<T> clazz, String fieldAlias, Class<F> fieldType)根据Class、字段别名、字段类型生成虚构的 Attribute 对象,get、set方法为空方法。static <T,F>
Attribute<T,F>Attribute. create(Class<T> clazz, String fieldAlias, Class<F> fieldType, Object attach)根据Class、字段别名、字段类型生成虚构的 Attribute 对象,get、set方法为空方法。static <T,F>
Attribute<T,F>Attribute. create(Class<T> clazz, String fieldAlias, Class<F> fieldType, Field field, Method getter, Method setter)根据Class、字段别名、字段类型、Field、getter和setter方法生成 Attribute 对象。static <T,F>
Attribute<T,F>Attribute. create(Class<T> clazz, String fieldAlias, Class<F> fieldType, Field field, Method getter, Method setter, Object attach)根据Class、字段别名、字段类型、Field、getter和setter方法生成 Attribute 对象。static <T,F>
Attribute<T,F>Attribute. create(Class<T> clazz, String fieldName, Class<F> fieldType, Type fieldGenericType, Function<T,F> getter, BiConsumer<T,F> setter)根据Class、字段名、字段类型、getter和setter方法生成 Attribute 对象。static <T,F>
Attribute<T,F>Attribute. create(Class<T> clazz, String fieldName, Class<F> fieldType, Type fieldGenericType, Function<T,F> getter, BiConsumer<T,F> setter, Object attach)根据Class、字段名、字段类型、getter和setter方法生成 Attribute 对象。static <T,F>
Attribute<T,F>Attribute. create(Class<T> clazz, String fieldName, Class<F> fieldType, Function<T,F> getter, BiConsumer<T,F> setter)根据Class、字段名、字段类型、getter和setter方法生成 Attribute 对象。static <T,F>
Attribute<T,F>Attribute. create(Class<T> clazz, String fieldName, Class<F> fieldType, Function<T,F> getter, BiConsumer<T,F> setter, Object attach)根据Class、字段名、字段类型、getter和setter方法生成 Attribute 对象。static <T,F>
Attribute<T,F>Attribute. create(Class<T> clazz, String fieldName, Object attach)根据一个Class和field真实名称生成 Attribute 对象。static <T,F>
Attribute<T,F>Attribute. create(Class<T> clazz, String fieldAlias, Field field)根据一个Class、field别名和Field生成 Attribute 对象。static <T,F>
Attribute<T,F>Attribute. create(Class<T> clazz, String fieldAlias, Field field, Object attach)根据一个Class、field别名和Field生成 Attribute 对象。static <T,F>
Attribute<T,F>Attribute. create(Class<T> clazz, String fieldAlias, Field field, Method getter, Method setter)根据Class、字段别名、Field、getter和setter方法生成 Attribute 对象。static <T,F>
Attribute<T,F>Attribute. create(Class<T> clazz, String fieldAlias, Field field, Method getter, Method setter, Object attach)根据Class、字段别名、Field、getter和setter方法生成 Attribute 对象。static <T,F>
Attribute<T,F>Attribute. create(Class<T> clazz, String fieldAlias, Method getter, Method setter)根据Class、字段别名、getter和setter方法生成 Attribute 对象。static <T,F>
Attribute<T,F>Attribute. create(Class<T> clazz, String fieldAlias, Method getter, Method setter, Object attach)根据Class、字段别名、getter和setter方法生成 Attribute 对象。static <T,F>
Attribute<T,F>Attribute. create(Field field)根据一个Field生成 Attribute 对象。static <T,F>
Attribute<T,F>Attribute. create(Field field, Object attach)根据一个Field生成 Attribute 对象。static <T,F>
Attribute<T,F>Attribute. create(Method getter, Method setter)根据一个getter和setter方法生成 Attribute 对象。static <T,F>
Attribute<T,F>Attribute. create(Method getter, Method setter, Object attach)根据一个getter和setter方法生成 Attribute 对象。static <T,F>
Attribute<T,F>Attribute. create(Type subclass, Class<T> clazz, String fieldAlias, Class<F> fieldType, Field field, Method getter, Method setter, Object attach)根据Class、字段别名、字段类型、Field、getter和setter方法生成 Attribute 对象。static <T,F>
Attribute<T,F>Attribute. create(String fieldAlias, Field field)根据一个Field和field的别名生成 Attribute 对象。static <T,F>
Attribute<T,F>Attribute. create(String fieldAlias, Field field, Object attach)根据一个Field和field的别名生成 Attribute 对象。static <T,F>
Attribute<T,F>Attribute. createGetter(Class<T> clazz, String fieldName)根据一个Class和字段名生成 Attribute 的getter对象。static <T,F>
Attribute<T,F>[]Attribute. createGetters(Class<T> clazz)根据Class生成getter方法对应的 Attribute 对象数组。static <T,F>
Attribute<T,F>[]Attribute. createSetters(Class<T> clazz)根据Class生成setter方法对应的 Attribute 对象数组。static <T extends Map,F>
Attribute<T,F>Attribute. map(String fieldName)根据Map类生成 Attribute 对象。
-