Class EBXTargetTableSpec
- java.lang.Object
-
- com.orchestranetworks.addon.dint.dataconnector.spec.TableSpec
-
- com.orchestranetworks.addon.dint.dataconnector.spec.EBXTableSpec
-
- com.orchestranetworks.addon.dint.dataconnector.spec.EBXTargetTableSpec
-
public final class EBXTargetTableSpec extends EBXTableSpec
Specification for anEBXTargetTable
.- Since:
- 4.1.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EBXTargetTableSpec.EBXTargetTableSpecBuilder
Builder for creating an instance ofEBXTargetTableSpec
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EBXTransaction
getTransaction()
Returns the transaction.EBXWriteMode
getWriteMode()
Returns the EBX write mode.boolean
isNullOrEmptyPrimaryKeyAllowed()
Returnstrue
if a null or empty primary key is allowed when persisting.boolean
isNullOrEmptyValueIgnored()
Returnstrue
if null or empty values are allowed when persisting.static EBXTargetTableSpec.EBXTargetTableSpecBuilder
newBuilder(com.onwbp.adaptation.AdaptationTable adaptationTable, com.orchestranetworks.service.Session session)
Creates a builder instance.static EBXTargetTableSpec.EBXTargetTableSpecBuilder
newBuilder(EBXTransaction transaction, com.onwbp.adaptation.AdaptationTable adaptationTable, com.orchestranetworks.service.Session session)
Creates a builder instance with anEBXTransaction
.-
Methods inherited from class com.orchestranetworks.addon.dint.dataconnector.spec.EBXTableSpec
getAdaptationTable, getSession, getUnsupportedDataTypes, isForeignKeyHierarchyIncluded
-
-
-
-
Method Detail
-
newBuilder
public static EBXTargetTableSpec.EBXTargetTableSpecBuilder newBuilder(com.onwbp.adaptation.AdaptationTable adaptationTable, com.orchestranetworks.service.Session session)
Creates a builder instance.Each table will belong to a separate
EBXTransaction
.- Parameters:
adaptationTable
- The adaptation table.session
- The session.- See Also:
newBuilder(EBXTransaction, AdaptationTable, Session)
-
newBuilder
public static EBXTargetTableSpec.EBXTargetTableSpecBuilder newBuilder(EBXTransaction transaction, com.onwbp.adaptation.AdaptationTable adaptationTable, com.orchestranetworks.service.Session session)
Creates a builder instance with anEBXTransaction
.- Parameters:
transaction
- The transaction.adaptationTable
- The adaptation table. The table must belong to the same dataspace as the transaction.session
- The session.- Since:
- 4.2.0
-
getWriteMode
public EBXWriteMode getWriteMode()
Returns the EBX write mode.Returns
EBXWriteMode.UPDATE_OR_INSERT
by default.
-
isNullOrEmptyValueIgnored
public boolean isNullOrEmptyValueIgnored()
Returnstrue
if null or empty values are allowed when persisting.Returns
true
by default.
-
isNullOrEmptyPrimaryKeyAllowed
public boolean isNullOrEmptyPrimaryKeyAllowed()
Returnstrue
if a null or empty primary key is allowed when persisting.Returns
false
by default.
-
getTransaction
public EBXTransaction getTransaction()
Returns the transaction.- Since:
- 4.2.0
-
-