QueryHeaderBuilder { public static QueryHeader build(final ResultSetMetaData resultSetMetaData, final ShardingSphereSchema schema, final int columnIndex) throws SQLException { return build(resultSetMetaData, schema, resultSetMetaData.getColumnName(columnIndex), columnIndex); }  static QueryHeader build(final ResultSetMetaData resultSetMetaData, final ShardingSphereSchema schema, final int columnIndex); static QueryHeader build(final ProjectionsContext projectionsContext,
                                    final ResultSetMetaData resultSetMetaData, final ShardingSphereSchema schema, final int columnIndex);  }
@Test public void assertQueryHeaderSchema() throws SQLException { QueryHeader header = QueryHeaderBuilder.build(createResultSetMetaData(), createSchema(), 1); assertThat(header.getSchema(), is("sharding_schema")); }
@Test public void assertQueryHeaderTable() throws SQLException { QueryHeader header = QueryHeaderBuilder.build(createResultSetMetaData(), createSchema(), 1); assertThat(header.getTable(), is("t_logic_order")); }
@Test public void assertQueryHeaderColumnLabel() throws SQLException { QueryHeader header = QueryHeaderBuilder.build(createResultSetMetaData(), createSchema(), 1); assertThat(header.getColumnLabel(), is("order_id")); }
@Test public void assertQueryHeaderColumnLength() throws SQLException { QueryHeader header = QueryHeaderBuilder.build(createResultSetMetaData(), createSchema(), 1); assertThat(header.getColumnLength(), is(1)); }
@Test public void assertQueryHeaderColumnType() throws SQLException { QueryHeader header = QueryHeaderBuilder.build(createResultSetMetaData(), createSchema(), 1); assertThat(header.getColumnType(), is(Types.INTEGER)); }
@Test public void assertQueryHeaderDecimals() throws SQLException { QueryHeader header = QueryHeaderBuilder.build(createResultSetMetaData(), createSchema(), 1); assertThat(header.getDecimals(), is(1)); }
@Test public void assertQueryHeaderSigned() throws SQLException { QueryHeader header = QueryHeaderBuilder.build(createResultSetMetaData(), createSchema(), 1); assertTrue(header.isSigned()); }
@Test public void assertQueryHeaderPrimaryKey() throws SQLException { QueryHeader header = QueryHeaderBuilder.build(createResultSetMetaData(), createSchema(), 1); assertTrue(header.isPrimaryKey()); }
@Test public void assertQueryHeaderNotNull() throws SQLException { QueryHeader header = QueryHeaderBuilder.build(createResultSetMetaData(), createSchema(), 1); assertTrue(header.isNotNull()); }
@Test public void assertQueryHeaderAutoIncrement() throws SQLException { QueryHeader header = QueryHeaderBuilder.build(createResultSetMetaData(), createSchema(), 1); assertTrue(header.isAutoIncrement()); }