/** * Determines whether database tables should be dropped by the store on shutdown */ public S dropOnExit(boolean dropOnExit) { attributes.attribute(DROP_ON_EXIT).set(dropOnExit); return self(); }
/** * The name of the database column used to store the keys */ public S idColumnName(String idColumnName) { attributes.attribute(ID_COLUMN_NAME).set(idColumnName); return self(); }
/** * The name of the database column used to store the entries */ public S dataColumnName(String dataColumnName) { attributes.attribute(DATA_COLUMN_NAME).set(dataColumnName); return self(); }
/** * The type of the database column used to store the entries */ public S dataColumnType(String dataColumnType) { attributes.attribute(DATA_COLUMN_TYPE).set(dataColumnType); return self(); }
/** * For DB queries the fetch size is on {@link java.sql.ResultSet#setFetchSize(int)}. This is optional * parameter, if not specified will be defaulted to {@link TableManager#DEFAULT_FETCH_SIZE}. */ public S fetchSize(int fetchSize) { attributes.attribute(FETCH_SIZE).set(fetchSize); return self(); }
/** * Determines whether database tables should be created by the store on startup */ public S createOnStart(boolean createOnStart) { attributes.attribute(CREATE_ON_START).set(createOnStart); return self(); }
/** * The type of the database column used to store the segments */ public S segmentColumnType(String segmentColumnType) { attributes.attribute(SEGMENT_COLUMN_TYPE).set(segmentColumnType); return self(); }
/** * Sets the prefix for the name of the table where the data will be stored. "_<cache name>" will * be appended to this prefix in order to enforce unique table names for each cache. */ public S tableNamePrefix(String tableNamePrefix) { attributes.attribute(TABLE_NAME_PREFIX).set(tableNamePrefix); return self(); }
/** * The type of the database column used to store the keys */ public S idColumnType(String idColumnType) { attributes.attribute(ID_COLUMN_TYPE).set(idColumnType); return self(); }
/** * The name of the database column used to store the timestamps */ public S timestampColumnName(String timestampColumnName) { attributes.attribute(TIMESTAMP_COLUMN_NAME).set(timestampColumnName); return self(); }
/** * The type of the database column used to store the timestamps */ public S timestampColumnType(String timestampColumnType) { attributes.attribute(TIMESTAMP_COLUMN_TYPE).set(timestampColumnType); return self(); }
/** * The name of the database column used to store the segments */ public S segmentColumnName(String segmentColumnName) { attributes.attribute(SEGMENT_COLUMN_NAME).set(segmentColumnName); return self(); }
/** * @deprecated Please use {@link org.infinispan.configuration.cache.AbstractStoreConfigurationBuilder#maxBatchSize(int)} instead. */ @Deprecated public S batchSize(int batchSize) { attributes.attribute(BATCH_SIZE).set(batchSize); maxBatchSize(batchSize); return self(); }