public final class ImportResult<T extends Transaction> extends Object
| Constructor and Description |
|---|
ImportResult(T transaction,
SubordinateTransactionControl control,
boolean isNew)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
SubordinateTransactionControl |
getControl()
Get the subordinate controller.
|
T |
getTransaction()
Get the transaction.
|
boolean |
isNew()
Determine whether this import resulted in a new transaction.
|
<S extends Transaction> |
withTransaction(S transaction)
Get a copy of this import result, with a new transaction object.
|
public ImportResult(T transaction, SubordinateTransactionControl control, boolean isNew)
transaction - the new transaction (must not be null)control - the controller for the subordinate transaction (must not be null)isNew - true if the transaction was just now imported, false if the transaction already existedpublic T getTransaction()
null)public SubordinateTransactionControl getControl()
null)public boolean isNew()
true if the transaction was new, false otherwisepublic <S extends Transaction> ImportResult<S> withTransaction(S transaction)
S - the new transaction typetransaction - the transaction object (must not be null)null)Copyright © 2017 JBoss by Red Hat. All rights reserved.