|
Oracle Warehouse Builder Java API Reference 10g Release 1 (10.1) B12155-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Snapshot
This interface represent a instance of Snapshot. Snapshot has two paradigms to traverse, one, Snapshot to Component and another Component to Snapshot Component to Snapshots traversal actually immitates version tree of component (All histories for a component). That traversal is realised in Snapshotable
. Snapshot to Object actually realises a label concept of conventional versioing systems A repository may have multiple histories of projects containing ETL or Dimension models User can pick a label (Snapshot) and invoke operations on it or can traverse contents of this Snapshot. This interface realizes Snapshot to Object traversals. Snapshot to Object traversal entry point is Snapshot itself. Snapshot has many properties assciated with it, for e.g.time stamp, user who created this Snapshot. All these properties can be fetched. Furthermore, all actions on Snapshot are invoked through this interface. Some examples of Snapshot actions include Restore, Delete, Compare ...
Field Summary | |
static int |
FULL Snapshot Type constant, for component's entire metadata to be included in snapshot. |
static int |
SIGNATURE Snapshot type constant, for components signature only to be included in snapshot. |
Method Summary | |
boolean |
add(Snapshotable comp) Alters Snapshot and enables users to add current definition component to this Snapshot. |
boolean |
add(Snapshotable[] comps) Alters Snapshot and enables users to add current definition of components to this Snapshot. |
void |
compare(Snapshot tgtSnap, java.lang.String diffFileName) This method computes difference between (tgtSnap - thisSnap) This method by default applies MCMServiceHandler.COMPARE_FILTER_CHANGED_OBJECT_ONLY for compare filter and MCMServiceHandler.OBJECTS_TYPE_FILTER_ANY_OBJECTS for object type filter. |
void |
compare(Snapshot tgtSnap, java.lang.String diffFileName, int compareFilter, int objTypeFilter) This method computes difference between (tgtSnap - thisSnap). |
boolean |
delete() Deletes this Snapshot. |
SnapshotComponentImage |
getComponentImageByUOID(java.lang.String uoid) Gets SnapshotComponentImage searched by UOID. |
SnapshotComponentImage[] |
getComponentImages() Gets components in this snapshot. |
java.util.Date |
getCreationDate() Gets this snapshot creation time stamp. |
java.lang.String |
getDescription() Gets the description of snapshot. |
java.lang.String |
getName() Gets snapshot name. |
java.lang.String |
getUOID() Gets snapshot UOID. |
boolean |
isModelConsistent() Checks if current state of repository model is consistent with snapshot. |
boolean |
isOfTypeFull() checks snapshot type. |
boolean |
isRestorableWithoutCascade() This method checks if this Snapshot would have valid legal container. |
boolean |
remove(SnapshotComponentImage comp) Alters Snapshot and enables users to remove component from this Snapshot. |
boolean |
remove(SnapshotComponentImage[] comps) Alters Snapshot and enables users to remove found components from this Snapshot. |
boolean |
replace(Snapshotable comp) Alters Snapshot and enables users to replace components in this Snapshot. |
boolean |
replace(Snapshotable[] comps) Alters Snapshot and enables users to replace components in this Snapshot. |
boolean |
restore() Restores this Snapshot and replaces current definition of components in repository with components contained in this Snapshot. |
boolean |
restore(SnapshotComponentImage[] comps) This perform partial restore action, and restores only specified components from this Snapshot. |
boolean |
restoreCascadeUp() Restores this Snapshot and replaces current definition of components in repository with components contained in this Snapshot. |
boolean |
restoreCascadeUp(SnapshotComponentImage[] comps) This perform partial restore action, and restores only specified components from this Snapshot. |
void |
setDescription(java.lang.String description) Specify the description of this snapshot. |
boolean |
shrink() Shrinks FULL Snapshot to SIGNATURE Snapshot. |
int |
size() Gets size of this snapshot. |
Field Detail |
public static final int FULL
public static final int SIGNATURE
Method Detail |
public java.lang.String getName()
public java.lang.String getUOID()
public boolean restore() throws SnapshotLockException, RestoreException, MCMException
SnapshotLockException
- When components getting restored can not be locked or snapshot lock failed.RestoreException
- When Restore action can not be completed. One reason of restore failture could be illegal state of component's container, or component container can not be travered to. For e.g. if a Table's Snapshot is being restored, then its container module/project doesnt exist in repository.MCMException
- Any other error causing this operation to fail.public boolean restoreCascadeUp() throws SnapshotLockException, RestoreException, MCMException
SnapshotLockException
- When components getting restored can not be locked or snapshot lock failed.RestoreException
- When Restore action can not be completed.MCMException
- Any other error causing this operation to fail.public boolean restore(SnapshotComponentImage[] comps) throws SnapshotLockException, RestoreException, MCMException
comps
- partial list of snapshot components contained in this Snapshot, which needs to be restored.SnapshotLockException
- When components getting restored can not be locked or snapshot lock failed.RestoreException
- When Restore action can not be completed. One reason of restore failture could be illegal state of component's container, or component container can not be traversed to. For e.g. if a Table's Snapshot is being restored, then if its container module/project does not exist in repository, this exception is thrown.MCMException
- Any other error causing this operation to fail.public boolean restoreCascadeUp(SnapshotComponentImage[] comps) throws SnapshotLockException, RestoreException, MCMException
comps
- partial list of component contained in this Snapshot, which needs to be restored.SnapshotLockException
- When components getting restored can not be locked or snapshot lock failed.RestoreException
- When Restore action can not be completed.MCMException
- Any other error causing this operation to fail.public boolean isRestorableWithoutCascade() throws MCMException
MCMException
- Any other error causing this operation to fail.public boolean delete() throws SnapshotDelException, MCMException
SnapshotDelException
- When snapshot deletion couldnt be completed.MCMException
- Any other error causing this operation to fail.public void compare(Snapshot tgtSnap, java.lang.String diffFileName, int compareFilter, int objTypeFilter) throws CompareException, MCMException
tgtSnap
- Target Snapshot with which this Snapshot will be compareddiffFileName
- File name where diff XML would be storedcompareFilter
- Valid filter values are defined in MCMServiceHandler
for example MCMServiceHandler.COMPARE_FILTER_FOUND_OBJECTS_IN_TARGET_ONLY , MCMServiceHandler.COMPARE_FILTER_FOUND_OBJECTS_IN_SOURCE_ONLY ... All compare filters are prefixed with COMPARE_FILTERobjTypeFilter
- - This filters is on object types in diff, Using this filter only Logical or Physical objects can be put in generated diff file. for e.g. MCMServiceHandler.OBJECT_TYPE_FILTER_LOGICAL_OBJECT_ONLY All object type filters are prefixed with OBJECT_TYPE_FILTERCompareException
- When snapshots couldnt be compared.MCMException
- Any other error causing this operation to fail.public void compare(Snapshot tgtSnap, java.lang.String diffFileName) throws CompareException, MCMException
tgtSnap
- Target Snapshot with which this Snapshot will be compareddiffFileName
- File name where diff XML would be storedCompareException
- When snapshots couldnt be compared.MCMException
- Any other error causing this operation to fail.public int size()
public java.util.Date getCreationDate()
public boolean isOfTypeFull()
public SnapshotComponentImage[] getComponentImages() throws MCMException, ClassDefNotFoundException
ClassDefNotFoundException
- When MetaModel can not find class of a component.MCMException
- Any other error causing this operation to fail.public SnapshotComponentImage getComponentImageByUOID(java.lang.String uoid) throws MCMException, ClassDefNotFoundException
uoid
- UOID of component.ClassDefNotFoundException
- When MetaModel can not find class of a component.MCMException
- Any other error causing this operation to fail.public boolean shrink() throws SnapshotConvertException, MCMException
SnapshotConvertException
- When Snapshot.shrink action can not be completed.MCMException
- Any other error causing this operation to fail.public boolean add(Snapshotable[] comps) throws SnapshotLockException, SnapshotUpdateException, MCMException
comps
- Components which needs to be added to this SnapshotSnapshotLockException
- When components getting added can not be locked or this snapshot lock operation failed.SnapshotUpdateException
- When Snapshot update operation (add components) couldnt be completed.MCMException
- Any other error causing this operation to fail.public boolean add(Snapshotable comp) throws SnapshotLockException, SnapshotUpdateException, MCMException
comp
- Component which needs to be added to this SnapshotSnapshotLockException
- When component getting added can not be locked or this snapshot lock operation failed.SnapshotUpdateException
- When Snapshot update operation (add a component) couldnt be completed. One reason could be Snapshot already has this component , which is being added.MCMException
- Any other error causing this operation to fail.public boolean remove(SnapshotComponentImage[] comps) throws SnapshotLockException, SnapshotUpdateException, MCMException
comps
- Components which needs to be removed from this SnapshotSnapshotLockException
- When components getting removed can not be locked or this snapshot lock operation failed.SnapshotUpdateException
- When Snapshot update operation (remove components) couldnt be completed.MCMException
- Any other error causing this operation to fail.public boolean remove(SnapshotComponentImage comp) throws SnapshotLockException, SnapshotUpdateException, MCMException
comp
- Component which needs to be removed from this SnapshotSnapshotLockException
- When component getting removed can not be locked or this snapshot lock operation failed.SnapshotUpdateException
- When Snapshot update operation (remove a component) couldnt be completed.MCMException
- Any other error causing this operation to fail.public boolean replace(Snapshotable[] comps) throws SnapshotLockException, SnapshotUpdateException, MCMException
comps
- Components which needs to be replaced in this SnapshotSnapshotLockException
- When components getting replaces can not be locked or this snapshot lock operation failed.SnapshotUpdateException
- When Snapshot update operation (replace components) couldnt be completed.MCMException
- Any other error causing this operation to fail.public boolean replace(Snapshotable comp) throws SnapshotLockException, SnapshotUpdateException, MCMException
comp
- Component which needs to be added to this SnapshotSnapshotLockException
- When component getting replaces can not be locked or this snapshot lock operation failed.SnapshotUpdateException
- When Snapshot update operation (replace a component) couldnt be completed.MCMException
- Any other error causing this operation to fail.public java.lang.String getDescription()
setDescription(java.lang.String)
public void setDescription(java.lang.String description) throws SnapshotUpdateException, MCMException
description
- for this Snapshot.SnapshotUpdateException
- When Snapshot update operation (set a new description) couldnt be completed.MCMException
- Any other error causing this operation to fail.getDescription()
public boolean isModelConsistent() throws MCMException
MCMException
- When this operation can not be completed sucessfully.
|
Oracle Warehouse Builder Java API Reference 10g Release 1 (10.1) B12155-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |