T - type of KRA PersistableBusinessObjectX - type of JAXB import objectpublic abstract class PersistableBoMergeAdapter<T,X> extends Object implements Comparator<T>
HRImportRecord to
a PersistableBusinessObject within the KIM domain model.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
boIsDefaultable
track whether the type T implements Defaultable
|
protected boolean |
boIsInactivatable
track whether the type T implements Inactivatable
|
| Constructor and Description |
|---|
PersistableBoMergeAdapter() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(T bo0,
T bo1)
Compare two objects of type T to impose a strict ordering.
|
abstract int |
compareBOProperties(T bo0,
T bo1)
Implements comparison logic to allow sorting of BusinessObjects.
|
void |
delete(org.kuali.rice.krad.service.LegacyDataAdapter legacyDataAdapter,
T bo)
Implements the default delet logic for the business object.
|
abstract Class<T> |
getBusinessObjectClass()
This is a method which allows
HRImportService
to determine the specific type of business object handled by this class. |
abstract Class<X> |
getIncomingClass()
This is a method which allows
HRImportService
to determine the specific type of incoming JAXB object handled by this class. |
boolean |
isBoDefaultable() |
boolean |
isBoInactivatable() |
abstract T |
newBO(String entityId)
This is a factory method for the business object.
|
int |
nullSafeCompare(String val0,
String val1)
Compare two strings accounting for null values.
|
int |
nullSafeCompareIgnoreCase(String val0,
String val1)
Compare two strings accounting for null values, ignoring case.
|
T |
save(int index,
org.kuali.rice.krad.service.LegacyDataAdapter legacyDataAdapter,
T bo)
Implements the default save logic for the business object.
|
T |
setFields(int index,
T bo,
X source)
Provides a new default interface that provides the index of the business object within its collection.
|
abstract T |
setFields(T bo,
X source)
This is the method which translates the incoming JAXB object to the business object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongprotected boolean boIsInactivatable
protected boolean boIsDefaultable
public final int nullSafeCompare(String val0, String val1)
val0 - val1 - public final int nullSafeCompareIgnoreCase(String val0, String val1)
val0 - val1 - public final int compare(T bo0, T bo1)
compare in interface Comparator<T>public boolean isBoInactivatable()
public boolean isBoDefaultable()
public T save(int index, org.kuali.rice.krad.service.LegacyDataAdapter legacyDataAdapter, T bo)
index - order of the business object in its collectionlegacyDataAdapter - bo - public void delete(org.kuali.rice.krad.service.LegacyDataAdapter legacyDataAdapter,
T bo)
bo - public abstract int compareBOProperties(T bo0, T bo1)
bo0 - bo1 - public abstract T newBO(String entityId)
entityId - public abstract T setFields(T bo, X source)
bo - source - public T setFields(int index, T bo, X source)
index - bo - source - public abstract Class<T> getBusinessObjectClass()
HRImportService
to determine the specific type of business object handled by this class. Type erasure prevents
determining the type of the generic parameter T at runtime, so this explicit method is
necessary.public abstract Class<X> getIncomingClass()
HRImportService
to determine the specific type of incoming JAXB object handled by this class. Type erasure prevents
determining the type of the generic parameter X at runtime, so this explicit method is
necessary.Copyright © 2018 KualiCo. All rights reserved.