程序包 gu.sql2java

类 IBeanConverter.AbstractHandle<L,R>

java.lang.Object
gu.sql2java.IBeanConverter.AbstractHandle<L,R>
类型参数:
L - left type
R - right type
所有已实现的接口:
IBeanConverter<L,R>
直接已知子类:
BeanConverter, MapConverter
封闭接口:
IBeanConverter<L,R>

public abstract static class IBeanConverter.AbstractHandle<L,R> extends Object implements IBeanConverter<L,R>
Default abstract implementation of IBeanConverter
作者:
guyadong
  • 字段详细资料

    • leftType

      protected final Class<?> leftType
      L type
    • rightType

      protected final Class<?> rightType
      R type
  • 构造器详细资料

    • AbstractHandle

      public AbstractHandle()
    • AbstractHandle

      public AbstractHandle(Class<L> leftClass, Class<R> rightClass)
  • 方法详细资料

    • doFromRight

      protected abstract void doFromRight(L left, R right)
      copy right TO left, left and right must not be null
      参数:
      left -
      right -
    • doToRight

      protected abstract void doToRight(L left, R right)
      copy left TO right, left and right must not be null
      参数:
      left -
      right -
    • newInstanceL

      protected L newInstanceL()
      Creates a new L instance by calling constructor with an empty argument list
      you must override the method if the L class haven't default constructor.
      返回:
      L instance
    • newInstanceR

      protected R newInstanceR()
      Creates a new R instance by calling constructor with an empty argument list
      you must override the method if the R class haven't default constructor.
      返回:
      R instance
    • newInstance

      protected static <T> T newInstance(Class<T> clazz)
    • fromRight

      public L fromRight(L left, R right)
      从接口复制的说明: IBeanConverter
      copy right TO left
      指定者:
      fromRight 在接口中 IBeanConverter<L,R>
      返回:
      left,or new instance if left is null
    • toRight

      public R toRight(L left, R right)
      从接口复制的说明: IBeanConverter
      copy left TO right
      指定者:
      toRight 在接口中 IBeanConverter<L,R>
      返回:
      right,or new instance if right is null
    • fromRight

      public L fromRight(R bean)
      从接口复制的说明: IBeanConverter
      return an new instance converted from R bean
      指定者:
      fromRight 在接口中 IBeanConverter<L,R>
      返回:
      L bean
    • toRight

      public R toRight(L bean)
      从接口复制的说明: IBeanConverter
      return an new instance converted from L bean
      指定者:
      toRight 在接口中 IBeanConverter<L,R>
      返回:
      R bean
    • toRight

      public R[] toRight(L[] lefts, R[] rights)
      从接口复制的说明: IBeanConverter
      copy lefts TO rights
      指定者:
      toRight 在接口中 IBeanConverter<L,R>
      返回:
      rights,or new array if rights is null
    • fromRight

      public L[] fromRight(L[] lefts, R[] rights)
      从接口复制的说明: IBeanConverter
      copy rights TO lefts
      指定者:
      fromRight 在接口中 IBeanConverter<L,R>
      返回:
      lefts,or new array if lefts is null
    • toRight

      public R[] toRight(L[] lefts)
      从接口复制的说明: IBeanConverter
      an new array converted from L beans
      指定者:
      toRight 在接口中 IBeanConverter<L,R>
      返回:
      R bean array
    • fromRight

      public L[] fromRight(R[] rights)
      从接口复制的说明: IBeanConverter
      return an new array converted from R beans
      指定者:
      fromRight 在接口中 IBeanConverter<L,R>
      返回:
      L bean array
    • toRight

      public List<R> toRight(Collection<L> beans)
      从接口复制的说明: IBeanConverter
      an new list converted from L beans
      指定者:
      toRight 在接口中 IBeanConverter<L,R>
      返回:
      R bean list
    • fromRight

      public List<L> fromRight(Collection<R> beans)
      从接口复制的说明: IBeanConverter
      return an new list converted from R beans
      指定者:
      fromRight 在接口中 IBeanConverter<L,R>
      返回:
      L bean list
    • toRight

      public List<R> toRight(List<L> lefts, List<R> rights)
      从接口复制的说明: IBeanConverter
      copy lefts TO rights
      指定者:
      toRight 在接口中 IBeanConverter<L,R>
      返回:
      rights,or new array if rights is null
    • fromRight

      public List<L> fromRight(List<L> lefts, List<R> rights)
      从接口复制的说明: IBeanConverter
      copy rights TO lefts
      指定者:
      fromRight 在接口中 IBeanConverter<L,R>
      返回:
      lefts,or new array if lefts is null
    • toRight

      public List<R> toRight(List<L> lefts)
      从接口复制的说明: IBeanConverter
      return an new list converted from L beans
      指定者:
      toRight 在接口中 IBeanConverter<L,R>
      返回:
      R bean list
    • fromRight

      public List<L> fromRight(List<R> rights)
      从接口复制的说明: IBeanConverter
      return an new list converted from R beans
      指定者:
      fromRight 在接口中 IBeanConverter<L,R>
      返回:
      L bean list
    • toRightKey

      public <V> Map<R,V> toRightKey(Map<L,V> lmap)
      从接口复制的说明: IBeanConverter
      return an new map with R key converted from map with L key
      指定者:
      toRightKey 在接口中 IBeanConverter<L,R>
      返回:
      Map with R key
    • toRightValue

      public <K> Map<K,R> toRightValue(Map<K,L> lmap)
      从接口复制的说明: IBeanConverter
      return an new map with R value converted from map with L value
      指定者:
      toRightValue 在接口中 IBeanConverter<L,R>
      返回:
      Map with R value
    • fromRightKey

      public <V> Map<L,V> fromRightKey(Map<R,V> rmap)
      从接口复制的说明: IBeanConverter
      return an new map with L key converted from map with R key
      指定者:
      fromRightKey 在接口中 IBeanConverter<L,R>
      返回:
      Map with L key
    • fromRightValue

      public <K> Map<K,L> fromRightValue(Map<K,R> rmap)
      从接口复制的说明: IBeanConverter
      return an new map with L value converted from map with R value
      指定者:
      fromRightValue 在接口中 IBeanConverter<L,R>
      返回:
      Map with L value
    • toRight

      public Map<R,R> toRight(Map<L,L> lmap)
      从接口复制的说明: IBeanConverter
      an new map with R key and R value converted from map with L key and L value
      指定者:
      toRight 在接口中 IBeanConverter<L,R>
      返回:
      Map with R key and value
    • fromRight

      public Map<L,L> fromRight(Map<R,R> rmap)
      从接口复制的说明: IBeanConverter
      return an new map with L key and L value converted from map with R key and R value
      指定者:
      fromRight 在接口中 IBeanConverter<L,R>
      返回:
      Map with L key and value