Package net.solarnetwork.dao
Class BasicBatchOptions
java.lang.Object
net.solarnetwork.dao.BasicBatchOptions
- All Implemented Interfaces:
BatchableDao.BatchOptions
Basic implementation of
BatchableDao.BatchOptions.- Since:
- 1.74
- Version:
- 1.0
- Author:
- matt
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringA default batch name.static final intA default batch size. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.BasicBatchOptions(String name) Construct with a name.BasicBatchOptions(String name, int batchSize, boolean updatable, Map<String, Object> parameters) Construct with values. -
Method Summary
Modifier and TypeMethodDescriptionintGet a batch size hint.getName()Get a unique name for this batch operation.Get optional additional parameters, implementation specific.booleanIf true the batch should be updatable.
-
Field Details
-
DEFAULT_BATCH_NAME
A default batch name.- See Also:
-
DEFAULT_BATCH_SIZE
public static final int DEFAULT_BATCH_SIZEA default batch size.- See Also:
-
-
Constructor Details
-
BasicBatchOptions
public BasicBatchOptions()Default constructor. -
BasicBatchOptions
Construct with a name.- Parameters:
name- the name
-
BasicBatchOptions
public BasicBatchOptions(String name, int batchSize, boolean updatable, Map<String, Object> parameters) Construct with values.- Parameters:
name- the namebatchSize- the sizeupdatable- updatableparameters- the parameters
-
-
Method Details
-
getName
Description copied from interface:BatchableDao.BatchOptionsGet a unique name for this batch operation.- Specified by:
getNamein interfaceBatchableDao.BatchOptions- Returns:
- a name
-
getBatchSize
public int getBatchSize()Description copied from interface:BatchableDao.BatchOptionsGet a batch size hint.- Specified by:
getBatchSizein interfaceBatchableDao.BatchOptions- Returns:
- a batch size
-
isUpdatable
public boolean isUpdatable()Description copied from interface:BatchableDao.BatchOptionsIf true the batch should be updatable.- Specified by:
isUpdatablein interfaceBatchableDao.BatchOptions- Returns:
- boolean
-
getParameters
Description copied from interface:BatchableDao.BatchOptionsGet optional additional parameters, implementation specific.- Specified by:
getParametersin interfaceBatchableDao.BatchOptions- Returns:
- parameters
-