Class PersistTransaction.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class PersistTransaction.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for PersistTransaction instances.
-
-
Field Summary
Fields Modifier and Type Field Description public ByteBuffer
transaction
public String
status
public List<Integer>
visibleStatesIndexes
-
Method Summary
Modifier and Type Method Description ByteBuffer
getTransaction()
Gets the value of the 'transaction' field. PersistTransaction.Builder
setTransaction(ByteBuffer value)
Sets the value of the 'transaction' field. String
getStatus()
Gets the value of the 'status' field. PersistTransaction.Builder
setStatus(String value)
Sets the value of the 'status' field. List<Integer>
getVisibleStatesIndexes()
Gets the value of the 'visibleStatesIndexes' field. PersistTransaction.Builder
setVisibleStatesIndexes(List<Integer> value)
Sets the value of the 'visibleStatesIndexes' field. boolean
hasTransaction()
Checks whether the 'transaction' field has been set. PersistTransaction.Builder
clearTransaction()
Clears the value of the 'transaction' field. boolean
hasStatus()
Checks whether the 'status' field has been set. PersistTransaction.Builder
clearStatus()
Clears the value of the 'status' field. boolean
hasVisibleStatesIndexes()
Checks whether the 'visibleStatesIndexes' field has been set. PersistTransaction.Builder
clearVisibleStatesIndexes()
Clears the value of the 'visibleStatesIndexes' field. PersistTransaction
build()
-
-
Method Detail
-
getTransaction
ByteBuffer getTransaction()
Gets the value of the 'transaction' field. the serialized transaction
-
setTransaction
PersistTransaction.Builder setTransaction(ByteBuffer value)
Sets the value of the 'transaction' field. the serialized transaction
- Parameters:
value
- The value of 'transaction'.
-
setStatus
PersistTransaction.Builder setStatus(String value)
Sets the value of the 'status' field. the transaction status
- Parameters:
value
- The value of 'status'.
-
getVisibleStatesIndexes
List<Integer> getVisibleStatesIndexes()
Gets the value of the 'visibleStatesIndexes' field. indexes of the visible states
-
setVisibleStatesIndexes
PersistTransaction.Builder setVisibleStatesIndexes(List<Integer> value)
Sets the value of the 'visibleStatesIndexes' field. indexes of the visible states
- Parameters:
value
- The value of 'visibleStatesIndexes'.
-
hasTransaction
boolean hasTransaction()
Checks whether the 'transaction' field has been set. the serialized transaction
-
clearTransaction
PersistTransaction.Builder clearTransaction()
Clears the value of the 'transaction' field. the serialized transaction
-
hasStatus
boolean hasStatus()
Checks whether the 'status' field has been set. the transaction status
-
clearStatus
PersistTransaction.Builder clearStatus()
Clears the value of the 'status' field. the transaction status
-
hasVisibleStatesIndexes
boolean hasVisibleStatesIndexes()
Checks whether the 'visibleStatesIndexes' field has been set. indexes of the visible states
-
clearVisibleStatesIndexes
PersistTransaction.Builder clearVisibleStatesIndexes()
Clears the value of the 'visibleStatesIndexes' field. indexes of the visible states
-
build
PersistTransaction build()
-
-
-
-