|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.javatools.db.diff.Difference
oracle.javatools.db.diff.ResultSet
public class ResultSet
| Field Summary | |
|---|---|
static java.lang.String |
LEAF
|
static java.lang.String |
LIST
|
static java.lang.String |
MAP
|
static java.lang.String |
ORIGINAL
|
static java.lang.String |
UPDATED
|
| Constructor Summary | |
|---|---|
ResultSet(ResultSet parent,
boolean same,
java.lang.Object a,
java.lang.Object b,
java.lang.String propertyName)
Create a fully populated leaf node in the result set |
|
ResultSet(ResultSet parent,
java.lang.Object a,
java.lang.Object b,
int indexOfA,
int indexOfB,
java.lang.String name,
java.lang.String type)
create a LIST result node attached to its parent |
|
ResultSet(ResultSet parent,
java.lang.Object a,
java.lang.Object b,
java.lang.String name,
java.lang.String type)
create a result node attached to its parent |
|
| Method Summary | |
|---|---|
java.lang.Object |
a()
|
void |
addToList(ResultSet rs)
|
void |
addToMap(java.lang.String name,
ResultSet rs)
|
java.lang.Object |
b()
|
ResultSet |
copyTo(java.lang.Object target)
Copies the internal state of this object to the
specified copy. |
protected void |
copyToImpl(ResultSet copy)
|
java.util.List<ResultSet> |
getAList()
get a list of the objects which are in A |
java.util.List<ResultSet> |
getAllObjectsList()
If this is a LIST result set, return a copy of the list. |
java.util.Map<java.lang.String,ResultSet> |
getAllObjectsMap()
If this is a MAP ResultSet, return a copy of the Map. |
java.util.List<ResultSet> |
getAonlyList()
get a list of the objects which are in A and not in B |
java.util.Map |
getAonlyMap()
If this is a MAP ResultSet, return a Map of the objects that are only in A |
java.util.List<ResultSet> |
getBList()
get a list of the objects which are in B |
java.util.List<ResultSet> |
getBonlyList()
get a list of the objects which are in B but not in A |
java.util.Map<java.lang.String,ResultSet> |
getBonlyMap()
If this is a MAP ResultSet, return a Map of the objects that are only in B |
java.util.Iterator<ResultSet> |
getChildIterator()
Deprecated. use getChildren().iterator() |
java.util.Collection<ResultSet> |
getChildren()
Gets all the children of this Difference. |
java.lang.Class |
getDifferenceClass()
Gets the Class of the object this Difference is for. |
ResultSet |
getFilteredResultSet(DifferenceFilter rsf)
Deprecated. use getFilteredDifference |
int |
getIndexOf(java.lang.String contributor)
Get the index of the contributor in a list. |
int |
getIndexOfA()
|
int |
getIndexOfB()
|
java.util.List<Difference> |
getList(java.lang.String contributor)
|
java.util.List<ResultSet> |
getModifiedObjectList()
get a list of the objects which are in A and B and are not the same |
java.util.Map<java.lang.String,ResultSet> |
getModifiedObjectMap()
get a map of the attributes which have been modified. |
java.lang.String |
getName()
The ResultSet name is the base for the node names in the reconcile UI It also makes the ResultSet dumps more readable. |
java.util.List<ResultSet> |
getNotSameObjectList()
get a list of the objects which are not the same. |
java.util.Map<java.lang.String,ResultSet> |
getNotSameObjectMap()
get a map of the attributes which are not the same. |
java.lang.Object |
getObject(java.lang.String contributor)
Get an object which contributes to the Difference. |
java.lang.String |
getOriginalContributor()
Get the name of the contributor which describes the origianl object. |
ResultSet |
getParent()
Gets the parent of this Difference, if one exists. |
java.lang.String |
getPropertyName()
Returns the name of the property that this ResultSet is representing. |
java.lang.Class |
getResultSetClass()
get the class of the object of this ResultSet |
java.lang.Object |
getResultSetObject()
Gets an object for this result set - i.e. |
java.lang.String |
getType()
Get a String representing the type of the ResultSet (LIST, MAP or LEAF) |
java.lang.String |
getUpdateContributor()
Get the name of the contributor which describes the changes the user wishes to apply. |
boolean |
inA()
|
boolean |
inAbutNotB()
|
boolean |
inB()
|
boolean |
inBbutNotA()
|
boolean |
isChildListReorder()
|
boolean |
isLeaf()
Is this Difference a leaf? That is, it cannot have child differences. |
boolean |
isList()
Is this difference a list? That is, a list of children. |
boolean |
isMap()
Is this Difference a map? This is, a map of child attributes. |
boolean |
isModified()
Both the original and the update contibutors have This object, but it is different. |
void |
setA(java.lang.Object a)
|
void |
setB(java.lang.Object b)
|
void |
setListReordered(boolean listReordered)
|
void |
setName(java.lang.String name)
|
protected void |
setType(java.lang.String type)
Sets the type of this ResultSet as done at construction. |
void |
setUpdateContributor(java.lang.String contributor)
Set the name of the contributor which describes the changes the user wishes to apply. |
| Methods inherited from class oracle.javatools.db.diff.Difference |
|---|
copyToImpl, getFilteredDifference, getIndexOfOriginalObject, getIndexOfUpdatedObject, getOriginalObject, getProperties, getProperty, getProperty, getPropertyPath, getUpdatedObject, isSame, print, print, setParent, setProperties, setProperty, setSame, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String LIST
public static final java.lang.String MAP
public static final java.lang.String LEAF
public static java.lang.String ORIGINAL
public static java.lang.String UPDATED
| Constructor Detail |
|---|
public ResultSet(ResultSet parent,
java.lang.Object a,
java.lang.Object b,
int indexOfA,
int indexOfB,
java.lang.String name,
java.lang.String type)
parent - a - b - name - - take this as the property name for a leaf or a list,
use it as the object name for a maptype - MAP - an object difference node
LIST - a list property node
LEAF - a property/attribute node
public ResultSet(ResultSet parent,
java.lang.Object a,
java.lang.Object b,
java.lang.String name,
java.lang.String type)
parent - a - b - name - - take this as the property name for a leaf or a list,
use it as the object name for a maptype - MAP - an object difference node
LIST - a list property node
LEAF - a property/attribute node
public ResultSet(ResultSet parent,
boolean same,
java.lang.Object a,
java.lang.Object b,
java.lang.String propertyName)
parent - - this is expected to be a map node; a map of the leaf attributessame - - true if the attribute are the samea - - the parent 'a' object, eg Table, Column, etc.b - - the parent 'b' object, eg Table, Column, etc.propertyName - | Method Detail |
|---|
protected void setType(java.lang.String type)
public ResultSet getParent()
Difference
getParent in class Differencepublic java.lang.String getType()
public void addToList(ResultSet rs)
public void addToMap(java.lang.String name,
ResultSet rs)
public boolean isModified()
Difference
isModified in class Differencepublic java.lang.Object a()
public void setA(java.lang.Object a)
public java.lang.Object b()
public void setB(java.lang.Object b)
public void setName(java.lang.String name)
public java.lang.String getPropertyName()
getPropertyName in class Differencepublic java.lang.String getName()
public boolean isChildListReorder()
public void setListReordered(boolean listReordered)
public java.util.List<ResultSet> getModifiedObjectList()
public java.util.List<ResultSet> getNotSameObjectList()
public boolean inBbutNotA()
public int getIndexOfA()
public int getIndexOfB()
public int getIndexOf(java.lang.String contributor)
Difference
getIndexOf in class Differencepublic java.util.List<ResultSet> getAList()
public java.util.List<ResultSet> getBList()
public java.util.List<ResultSet> getBonlyList()
public boolean inA()
public boolean inB()
public boolean inAbutNotB()
public java.util.List<ResultSet> getAonlyList()
public java.util.List<ResultSet> getAllObjectsList()
public java.util.Map<java.lang.String,ResultSet> getModifiedObjectMap()
public java.util.Map<java.lang.String,ResultSet> getNotSameObjectMap()
public java.util.Map<java.lang.String,ResultSet> getBonlyMap()
public java.util.Map getAonlyMap()
public java.util.Map<java.lang.String,ResultSet> getAllObjectsMap()
public java.lang.Class getResultSetClass()
public java.lang.Object getResultSetObject()
public java.util.Collection<ResultSet> getChildren()
Difference
getChildren in class Difference@Deprecated public java.util.Iterator<ResultSet> getChildIterator()
public ResultSet copyTo(java.lang.Object target)
Copyablethis object to the
specified copy. If copy is
null, then this method should create a new instance
of this class and proceed to copy the internal state
to the newly created object. Generally, only the persistent
state of the object should be copied, but whether or not it is
appropriate to copy transient properties is at the discretion
of the individual implementor.
Regardless of whether the copy occurs to an existing object or to
a newly created object, the return value is object to which
this object's state was copied.
There is a standard implementation pattern for the
copyTo method that helps avoid problems that arise
when a Copyable object is subclassed. The pattern
is:
public Object copyTo( Object target )
{
final <this_class> copy =
target != null ? (<this_class>) target : new <this_class>();
copyToImpl( copy );
return copy;
}
protected final void copyToImpl( <this_class> copy )
{
super.copyToImpl( copy ); // if necessary
// put code here for copying the properties of <this_class>
}
The parameter passed into the copyToImpl method is
the same type of this class. The responsibility of
copyToImpl is to copy the state of this
class through direct access of the fields. The
copyToImpl method should not use getters and setters
since these may be overridden, causing the state of
this class to be incompletely copied.
target - The target object to which the state of
this object should be copied. If target
is null, then the copyTo method will
return a new instance of this class.
this
object was copied. If the target was
non-null, then the return value is the same as the
target object that was passed in; otherwise, the
return value is a new instance of this class.protected void copyToImpl(ResultSet copy)
@Deprecated public ResultSet getFilteredResultSet(DifferenceFilter rsf)
public boolean isLeaf()
Difference
isLeaf in class Differencepublic boolean isMap()
Difference
isMap in class Differencepublic boolean isList()
Difference
isList in class Differencepublic java.lang.Object getObject(java.lang.String contributor)
Difference
getObject in class Differencepublic java.util.List<Difference> getList(java.lang.String contributor)
public java.lang.String getOriginalContributor()
Difference
getOriginalContributor in class Differencepublic java.lang.Class getDifferenceClass()
Difference
getDifferenceClass in class Differencepublic void setUpdateContributor(java.lang.String contributor)
Difference
setUpdateContributor in class Differencepublic java.lang.String getUpdateContributor()
Difference
getUpdateContributor in class Difference
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||