|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.1.0) E13403-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.javatools.db.diff.ResultSet
public class ResultSet
Field Summary | |
---|---|
static java.lang.String |
LEAF
|
static java.lang.String |
LIST
|
static java.lang.String |
MAP
|
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,
boolean same,
java.lang.Object a,
java.lang.Object b,
java.lang.String propertyName,
java.lang.String aVal,
java.lang.String bVal)
Deprecated. |
|
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()
|
java.lang.Object |
copyTo(java.lang.Object target)
Copies the internal state of this object to the
specified 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()
get an iterator over the children of this result set |
ResultSet |
getFilteredResultSet(ResultSetFilter rsf)
|
int |
getIndexOfA()
|
int |
getIndexOfB()
|
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 mor 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. |
ResultSet |
getParent()
|
java.util.Map |
getProperties()
Retrieves a map holding the property-value pairs. |
java.lang.Object |
getProperty(java.lang.String key)
Retrieves the value associated with a property. |
java.lang.Object |
getProperty(java.lang.String key,
java.lang.Object defaultValue)
Retrieves the value associated with a property. |
java.lang.String |
getPropertyName()
Returns the name of the property that this ResultSet is representing. |
java.lang.String |
getPropertyPath()
|
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) |
boolean |
inA()
|
boolean |
inAbutNotB()
|
boolean |
inB()
|
boolean |
inBbutNotA()
|
boolean |
isChildListReorder()
|
boolean |
isModified()
|
boolean |
isSame()
|
void |
print()
|
void |
print(java.io.PrintWriter pw)
|
void |
printOne()
|
void |
setA(java.lang.Object a)
|
void |
setB(java.lang.Object b)
|
void |
setListReordered(boolean listReordered)
|
void |
setName(java.lang.String name)
|
void |
setProperties(java.util.Map properties)
Sets the map holding the property-value pairs. |
void |
setProperty(java.lang.String key,
java.lang.Object value)
Sets the value for a property. |
void |
setSame(boolean val)
|
protected void |
setType(java.lang.String type)
Sets the type of this ResultSet as done at construction. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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
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 nodepublic 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@Deprecated public ResultSet(ResultSet parent, boolean same, java.lang.Object a, java.lang.Object b, java.lang.String propertyName, java.lang.String aVal, java.lang.String bVal)
Deprecated - use DisplayProps.setAVal and DisplayProps.setBVal
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
- aVal
- - String representation of the valuebVal
- - String representation of the valuepublic 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 java.lang.String getType()
public void addToList(ResultSet rs)
public void addToMap(java.lang.String name, ResultSet rs)
public boolean isModified()
public boolean isSame()
public void setSame(boolean val)
public 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()
public 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 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.Iterator<ResultSet> getChildIterator()
public void print()
public void printOne()
public void print(java.io.PrintWriter pw)
public java.lang.String getPropertyPath()
public java.util.Map getProperties()
DynamicPropertySet
getProperties
in interface DynamicPropertySet
public java.lang.Object getProperty(java.lang.String key)
DynamicPropertySet
getProperty
in interface DynamicPropertySet
key
- the property key for which a value is desired.
exists.
null
value
if the property does not exist or is not set.public java.lang.Object getProperty(java.lang.String key, java.lang.Object defaultValue)
DynamicPropertySet
getProperty
in interface DynamicPropertySet
key
- the property key for which a value is desired.defaultValue
- the value to return if no value currently
exists.
public void setProperties(java.util.Map properties)
DynamicPropertySet
setProperties
in interface DynamicPropertySet
public void setProperty(java.lang.String key, java.lang.Object value)
DynamicPropertySet
null
removes that property.
setProperty
in interface DynamicPropertySet
key
- the property key to setvalue
- the value to setpublic java.lang.Object copyTo(java.lang.Object target)
Copyable
this
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:
The parameter passed into thepublic 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> }
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.
copyTo
in interface Copyable
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.public ResultSet getFilteredResultSet(ResultSetFilter rsf)
public ResultSet getParent()
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.1.0) E13403-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |