|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.vc.baseline.StandardBaselineDelegate
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
static long |
EXTERNALIZATION_VERSION_UID
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
protected static StatementParameterFactory |
statementFactory
|
Constructor Summary | |
StandardBaselineDelegate()
|
Method Summary | |
boolean |
add(Baseline a_baseline,
ArrayList a_baselineMemberInfos)
Deprecated. All BaselineMemberInfo-based APIs are obsolete. |
void |
add(WTCollection baselineMembers,
Baseline baseline)
Handles the persistence of the baselineMembers WTCollection. |
protected boolean |
executeCall(String functionName,
StatementParameter[] procArgs)
This method invokes the proper stored procedure to add/replace/remove baselinemember links procArgs must be set up as StatementParameters by the calling method Return value indicates success or failure |
protected Class |
getBaselineMemberClass()
|
WTCollection |
getBaselineMembers(WTCollection baselineables,
Baseline baseline)
Returns the BaselineMember associations that link elements in the collection to the baseline. |
WTValuedMap |
getBaselineMembersToReplacingBaselineablesMap(WTValuedMap masterToIterationMap,
Baseline baseline)
Responsible for finding the existing (in-the-database) BaselineMember links that associate the baseline with any iterations of the given masters. |
protected void |
prepareArgsForReplace(ArrayList replacementInfo,
Object[] linkOids,
Object[] newBaselineableOids)
|
protected Object[] |
prepareBaselineablesArgForAdd(ArrayList memberLinkInfos)
|
protected Object[] |
prepareBaselineArg(Baseline a_baseline)
|
protected long[] |
prepareLinksForRemove(ArrayList memberLinks)
|
protected Object[] |
prepareSQLArg(BaselineMemberInfo info)
|
protected StatementParameter[] |
prepareStmtParamForAdd(Baseline a_baseline,
ArrayList a_baselineMemberInfos)
|
protected StatementParameter[] |
prepareStmtParamForRemove(ArrayList baselineMembers)
|
protected StatementParameter[] |
prepareStmtParamForReplace(Baseline a_baseline,
ArrayList replacementInfo)
|
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(StandardBaselineDelegate thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
boolean |
remove(Baseline a_baseline,
ArrayList a_baselineMembers)
Deprecated. All BaselineMemberInfo-based APIs are obsolete. |
void |
remove(WTCollection baselineMembers,
Baseline baseline)
Handles the removal of the baselineMembers from the database. |
boolean |
replace(Baseline a_baseline,
ArrayList replacementInfo)
Deprecated. All BaselineMemberInfo-based APIs are obsolete. |
void |
replace(WTValuedMap addToReplaceBaselineMembersMap,
Baseline baseline)
This API is responsible for the persistence operations necessary to replace iterations in the baseline with other iterations. |
protected void |
setAdditionalFields(BaselineMember addMember,
BaselineMember replaceMember)
|
protected void |
updateEmptyTables(String className)
This method update the EmptyTableManager to let the MethodServer know that a table is no longer empty. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
protected static StatementParameterFactory statementFactory
Constructor Detail |
public StandardBaselineDelegate()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(StandardBaselineDelegate thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public WTValuedMap getBaselineMembersToReplacingBaselineablesMap(WTValuedMap masterToIterationMap, Baseline baseline) throws WTException
NOTE: this API should return an entry for a member even if that member
points to the same iteration as the one that will be added -- the
calling API will handle the recognition of this and will then neither
"add" nor "replace" that iteration.
Supported API: false
getBaselineMembersToReplacingBaselineablesMap
in interface BaselineDelegate
masterToIterationMap
- baseline
-
WTException
public WTCollection getBaselineMembers(WTCollection baselineables, Baseline baseline) throws WTException
getBaselineMembers
in interface BaselineDelegate
baselineables
- baseline
-
WTException
public boolean add(Baseline a_baseline, ArrayList a_baselineMemberInfos) throws WTException
add
in interface BaselineDelegate
a_baseline
- a_baselineMemberInfos
-
WTException
public boolean replace(Baseline a_baseline, ArrayList replacementInfo) throws WTException
replace
in interface BaselineDelegate
a_baseline
- replacementInfo
- The replacementInfo contains information needed for replacing one link in the baseline with another. In this case, each element consists of an Object[3] containing the BaselineMemberInfo for the new baselineable, the BaselineMember link, and the original baselineable.
WTException
public boolean remove(Baseline a_baseline, ArrayList a_baselineMembers) throws WTException
remove
in interface BaselineDelegate
a_baseline
- a_baselineMembers
- ArrayList of BaselineMembers which will be removed
WTException
public void add(WTCollection baselineMembers, Baseline baseline) throws WTException
add
in interface BaselineDelegate
baselineMembers
- baseline
-
WTException
public void replace(WTValuedMap addToReplaceBaselineMembersMap, Baseline baseline) throws WTException
replace
in interface BaselineDelegate
addToReplaceBaselineMembersMap
- baseline
-
WTException
public void remove(WTCollection baselineMembers, Baseline baseline) throws WTException
remove
in interface BaselineDelegate
baselineMembers
- baseline
-
WTException
protected StatementParameter[] prepareStmtParamForAdd(Baseline a_baseline, ArrayList a_baselineMemberInfos) throws WTException
WTException
protected StatementParameter[] prepareStmtParamForReplace(Baseline a_baseline, ArrayList replacementInfo) throws WTException
WTException
protected Object[] prepareBaselineArg(Baseline a_baseline)
protected Object[] prepareSQLArg(BaselineMemberInfo info) throws WTException
WTException
protected Object[] prepareBaselineablesArgForAdd(ArrayList memberLinkInfos) throws WTException
WTException
protected void prepareArgsForReplace(ArrayList replacementInfo, Object[] linkOids, Object[] newBaselineableOids) throws WTException
WTException
protected StatementParameter[] prepareStmtParamForRemove(ArrayList baselineMembers) throws WTException
WTException
protected long[] prepareLinksForRemove(ArrayList memberLinks)
protected boolean executeCall(String functionName, StatementParameter[] procArgs) throws WTException
WTException
protected void updateEmptyTables(String className) throws WTException
WTException
protected Class getBaselineMemberClass()
protected void setAdditionalFields(BaselineMember addMember, BaselineMember replaceMember) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |