@Test public void testIsUnsignedColumnMetadata() { assertFalse("Null cm should return false", MysqlNativeTypeUtils.isUnsigned(null)); ColumnMetadata cm = new ColumnMetadata(); assertFalse("Empty cm should return false", MysqlNativeTypeUtils.isUnsigned(cm)); cm.setUnsigned(true); assertTrue("Unsigned modifier should return true", MysqlNativeTypeUtils.isUnsigned(cm)); }
public static boolean isUnsigned(ColumnMetadata columnMetadata, MysqlNativeType mysqlNativeType) { if (MysqlType.BIT.equals(mysqlNativeType.getMysqlType())) return true; return mysqlNativeType.isUnsignedAttribute() && isUnsigned(columnMetadata); }
MysqlNativeTypeUtils { public static boolean isUnsigned(ColumnMetadata columnMetadata, MysqlNativeType mysqlNativeType) { if (MysqlType.BIT.equals(mysqlNativeType.getMysqlType())) return true; return mysqlNativeType.isUnsignedAttribute() && isUnsigned(columnMetadata); } }
MysqlNativeTypeUtils { public static boolean isUnsigned(ColumnMetadata columnMetadata, MysqlNativeType mysqlNativeType) { if (MysqlType.BIT.equals(mysqlNativeType.getMysqlType())) return true; return mysqlNativeType.isUnsignedAttribute() && isUnsigned(columnMetadata); } private  MysqlNativeTypeUtils(); }
MysqlNativeTypeUtils { public static boolean isUnsigned(ColumnMetadata columnMetadata, MysqlNativeType mysqlNativeType) { if (MysqlType.BIT.equals(mysqlNativeType.getMysqlType())) return true; return mysqlNativeType.isUnsignedAttribute() && isUnsigned(columnMetadata); } private  MysqlNativeTypeUtils(); static boolean isUnsigned(ColumnMetadata columnMetadata, MysqlNativeType mysqlNativeType); static boolean isUnsigned(ColumnMetadata columnMetadata); }
MysqlNativeTypeUtils { public static boolean isUnsigned(ColumnMetadata columnMetadata, MysqlNativeType mysqlNativeType) { if (MysqlType.BIT.equals(mysqlNativeType.getMysqlType())) return true; return mysqlNativeType.isUnsignedAttribute() && isUnsigned(columnMetadata); } private  MysqlNativeTypeUtils(); static boolean isUnsigned(ColumnMetadata columnMetadata, MysqlNativeType mysqlNativeType); static boolean isUnsigned(ColumnMetadata columnMetadata);  }