Class TransactionBuilder
java.lang.Object
net.tnemc.plugincore.core.component.builder.TransactionBuilder
- All Implemented Interfaces:
ComponentBuilder
TransactionBuilder
- Since:
- 1.0.0.2
- Author:
- creatorfromhell
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Returns a component builder instance that can be used to build components.Returns the identifier of the component.static TransactionBuilder
Returns a new TransactionBuilder instance for the specified type.with
(Transaction transaction) Sets the provided transaction for the current TransactionBuilder instance.with
(TransactionParameters parameters) Sets the provided TransactionParameters for the current TransactionBuilder instance.
-
Constructor Details
-
TransactionBuilder
public TransactionBuilder() -
TransactionBuilder
-
-
Method Details
-
of
Returns a new TransactionBuilder instance for the specified type.- Parameters:
type
- the type of transaction- Returns:
- a new TransactionBuilder instance
-
with
Sets the provided TransactionParameters for the current TransactionBuilder instance.- Parameters:
parameters
- the TransactionParameters to set for the builder- Returns:
- the current TransactionBuilder instance with the provided parameters set
-
with
Sets the provided transaction for the current TransactionBuilder instance.- Parameters:
transaction
- the transaction to set for the builder- Returns:
- the current TransactionBuilder instance with the provided transaction set
-
identifier
Returns the identifier of the component.- Specified by:
identifier
in interfaceComponentBuilder
- Returns:
- the identifier of the component as a string.
-
builder
Returns a component builder instance that can be used to build components.- Specified by:
builder
in interfaceComponentBuilder
- Returns:
- a ComponentBuilder instance.
-