@Test public void testInvalidNullQuoteString() { thrown.expect(RuntimeException.class); NullPartition partition = new NullPartition(COL_RAW); partition.toSqlConstraint(null, dbProduct); }
@Override public String toSqlConstraint(String quoteString, DbProduct dbProduct) { if (quoteString == null) { throw new RuntimeException("Quote string cannot be null"); } StringBuilder sb = new StringBuilder(); String columnQuoted = quoteString + column + quoteString; sb.append( columnQuoted ).append( isNull ? " IS NULL" : " IS NOT NULL" ); return sb.toString(); }
NullPartition extends BasePartition implements JdbcFragmentMetadata { @Override public String toSqlConstraint(String quoteString, DbProduct dbProduct) { if (quoteString == null) { throw new RuntimeException("Quote string cannot be null"); } StringBuilder sb = new StringBuilder(); String columnQuoted = quoteString + column + quoteString; sb.append( columnQuoted ).append( isNull ? " IS NULL" : " IS NOT NULL" ); return sb.toString(); } }
NullPartition extends BasePartition implements JdbcFragmentMetadata { @Override public String toSqlConstraint(String quoteString, DbProduct dbProduct) { if (quoteString == null) { throw new RuntimeException("Quote string cannot be null"); } StringBuilder sb = new StringBuilder(); String columnQuoted = quoteString + column + quoteString; sb.append( columnQuoted ).append( isNull ? " IS NULL" : " IS NOT NULL" ); return sb.toString(); } NullPartition(String column, boolean isNull);  NullPartition(String column); }
NullPartition extends BasePartition implements JdbcFragmentMetadata { @Override public String toSqlConstraint(String quoteString, DbProduct dbProduct) { if (quoteString == null) { throw new RuntimeException("Quote string cannot be null"); } StringBuilder sb = new StringBuilder(); String columnQuoted = quoteString + column + quoteString; sb.append( columnQuoted ).append( isNull ? " IS NULL" : " IS NOT NULL" ); return sb.toString(); } NullPartition(String column, boolean isNull);  NullPartition(String column); @Override String toSqlConstraint(String quoteString, DbProduct dbProduct); boolean isNull(); }
NullPartition extends BasePartition implements JdbcFragmentMetadata { @Override public String toSqlConstraint(String quoteString, DbProduct dbProduct) { if (quoteString == null) { throw new RuntimeException("Quote string cannot be null"); } StringBuilder sb = new StringBuilder(); String columnQuoted = quoteString + column + quoteString; sb.append( columnQuoted ).append( isNull ? " IS NULL" : " IS NOT NULL" ); return sb.toString(); } NullPartition(String column, boolean isNull);  NullPartition(String column); @Override String toSqlConstraint(String quoteString, DbProduct dbProduct); boolean isNull();  }