@Override public TableManipulationConfiguration get() { return new ConfigurationBuilder().persistence().addStore(JdbcStringBasedStoreConfigurationBuilder.class).table() .idColumnName(this.columns.get(ID).getKey()) .idColumnType(this.columns.get(ID).getValue()) .dataColumnName(this.columns.get(DATA).getKey()) .dataColumnType(this.columns.get(DATA).getValue()) .timestampColumnName(this.columns.get(TIMESTAMP).getKey()) .timestampColumnType(this.columns.get(TIMESTAMP).getValue()) .fetchSize(this.fetchSize) .tableNamePrefix(this.prefix) .create(); } }
@Override public TableManipulationConfiguration get() { return new ConfigurationBuilder().persistence().addStore(JdbcStringBasedStoreConfigurationBuilder.class).table() .idColumnName(this.columns.get(ID).getKey()) .idColumnType(this.columns.get(ID).getValue()) .dataColumnName(this.columns.get(DATA).getKey()) .dataColumnType(this.columns.get(DATA).getValue()) .timestampColumnName(this.columns.get(TIMESTAMP).getKey()) .timestampColumnType(this.columns.get(TIMESTAMP).getValue()) .fetchSize(this.fetchSize) .tableNamePrefix(this.prefix) .create(); } }
static TableManipulationConfiguration createTableConfig(StoreProperties props, Element tableType, JdbcStringBasedStoreConfigurationBuilder storeBuilder) { return storeBuilder.table() .createOnStart(props.isTargetStore()) .tableNamePrefix(props.get(TABLE, tableType, TABLE_NAME_PREFIX)) .idColumnName(props.get(TABLE, tableType, ID, NAME)) .idColumnType(props.get(TABLE, tableType, ID, TYPE)) .dataColumnName(props.get(TABLE, tableType, DATA, NAME)) .dataColumnType(props.get(TABLE, tableType, DATA, TYPE)) .timestampColumnName(props.get(TABLE, tableType, TIMESTAMP, NAME)) .timestampColumnType(props.get(TABLE, tableType, TIMESTAMP, TYPE)) .segmentColumnName(props.get(TABLE, tableType, SEGMENT, NAME)) .segmentColumnType(props.get(TABLE, tableType, SEGMENT, TYPE)) .create(); }
@Override public JdbcStringBasedStoreConfiguration create() { return new JdbcStringBasedStoreConfiguration(attributes.protect(), async.create(), singletonStore.create(), connectionFactory != null ? connectionFactory.create() : null, table.create()); }