程序包 gu.sql2java

类 Sql2javaSupport

java.lang.Object
gu.sql2java.Sql2javaSupport

public class Sql2javaSupport extends Object
  • 字段详细资料

    • ISO_8559_1

      public static final Charset ISO_8559_1
  • 方法详细资料

    • getBytesInBuffer

      public static final byte[] getBytesInBuffer(ByteBuffer buffer)
      返回buffer中所有字节(position~limit),不改变buffer状态
      参数:
      buffer -
      返回:
      byte array
    • toByteBuffer

      public static ByteBuffer toByteBuffer(String input)
    • toString

      public static String toString(ByteBuffer newVal)
    • parseDateString

      public static <D extends Date> D parseDateString(String dateStr, Class<D> targetClass)
      get a date from a date string representation in one of the registered formats
      参数:
      dateStr - the date as string.
      targetClass -
      返回:
      Date object ,otherwise null If (null or empty) or correct pattern was not found
    • formatDate

      public static String formatDate(Date date, String format)
      format Date to string
      参数:
      date -
      format - date time format string,use ISO8601 format if null
      返回:
      ISO8601 date time format string or null if date is null
    • findSubClass

      public static <T> Class<? extends T> findSubClass(Iterable<Class<? extends T>> iterable, Class<?> clazz)
      By calling 无效输入:'{@' link Class#isAssignableFrom (Class)} to search for subclasses of clazz in the iterator, return first or null If the input parameter is null or cannot be found
      参数:
      iterable -
      clazz -
      从以下版本开始:
      4.3.4
    • findSuperClass

      public static <T> Class<? extends T> findSuperClass(Iterable<Class<? extends T>> iterable, Class<?> clazz)
      By calling 无效输入:'{@' link Class#isAssignableFrom (Class)} to search for class assignable from clazz in the iterator, return first or null If the input parameter is null or cannot be found
      参数:
      iterable -
      clazz -
      从以下版本开始:
      3.32.6
    • hasNull

      public static boolean hasNull(Object... objects)
      参数:
      objects -
      返回:
      true if any one of object is null or objects is null
      从以下版本开始:
      4.3.4
    • hasNullPk

      public static <T extends BaseBean> boolean hasNullPk(T bean)
      参数:
      bean -
      返回:
      true if any primary key of B is null or B is null
      从以下版本开始:
      4.3.4