com.partnersoft.v3x.data
Class Cog

java.lang.Object
  extended by com.partnersoft.v3x.data.Cog

public class Cog
extends java.lang.Object


Constructor Summary
Cog()
           
Cog(java.lang.Object root)
           
 
Method Summary
 int addSequenceNumber(java.lang.String propertyName, java.lang.String sequencePropertyName, java.lang.String uniquenessMonitor)
          Sets a sequence number based on another property that has duplicate values.
 Aggregation aggregate()
           
 Aggregation aggregate(java.lang.String propertyPath)
           
 Aggregation aggregate(java.lang.String collectionPath, java.lang.String propertyPath)
           
 void copy(java.lang.String originalPropertyName, java.lang.String newPropertyName)
          Copies a property value to a new name.
 Cog getCog(java.lang.String propertyPath)
           
 double getDouble(java.lang.String propertyPath)
           
 float getFloat(java.lang.String propertyPath)
           
 int getInt(java.lang.String propertyPath)
           
 long getLong(java.lang.String propertyPath)
           
 java.lang.Object getObject(java.lang.String propertyPath)
           
 java.lang.Object getProperty(java.lang.String propertyPath)
           
 java.lang.Object getRoot()
           
 java.lang.String getString(java.lang.String propertyPath)
           
 Cog group(java.lang.String propertyName)
           
 Cog group(java.lang.String groupOnPropertyName, java.lang.String storePropertyName)
           
 java.util.Iterator iterate(java.lang.String propertyPath)
           
 void move(java.lang.String originalPropertyName, java.lang.String newPropertyName)
          Changes the name of a property, "moving" its value.
 void remove(java.lang.String propertyName)
          Removes a property by setting its value to null.
 void setCog(java.lang.String propertyPath, Cog newValue)
           
 void setDouble(java.lang.String propertyPath, double newValue)
           
 void setFloat(java.lang.String propertyPath, float newValue)
           
 void setInt(java.lang.String propertyPath, int newValue)
           
 void setLong(java.lang.String propertyPath, long newValue)
           
 void setObject(java.lang.String propertyPath, java.lang.Object newValue)
           
 void setProperty(java.lang.String propertyPath, java.lang.Object newValue)
           
 void setRoot(java.lang.Object newRoot)
           
 void setString(java.lang.String propertyPath, java.lang.String newValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Cog

public Cog()

Cog

public Cog(java.lang.Object root)
Method Detail

getProperty

public java.lang.Object getProperty(java.lang.String propertyPath)

setProperty

public void setProperty(java.lang.String propertyPath,
                        java.lang.Object newValue)

getCog

public Cog getCog(java.lang.String propertyPath)

setCog

public void setCog(java.lang.String propertyPath,
                   Cog newValue)

getInt

public int getInt(java.lang.String propertyPath)

setInt

public void setInt(java.lang.String propertyPath,
                   int newValue)

getObject

public java.lang.Object getObject(java.lang.String propertyPath)

setObject

public void setObject(java.lang.String propertyPath,
                      java.lang.Object newValue)

getLong

public long getLong(java.lang.String propertyPath)

setLong

public void setLong(java.lang.String propertyPath,
                    long newValue)

getFloat

public float getFloat(java.lang.String propertyPath)

setFloat

public void setFloat(java.lang.String propertyPath,
                     float newValue)

getDouble

public double getDouble(java.lang.String propertyPath)

setDouble

public void setDouble(java.lang.String propertyPath,
                      double newValue)

getString

public java.lang.String getString(java.lang.String propertyPath)

setString

public void setString(java.lang.String propertyPath,
                      java.lang.String newValue)

iterate

public java.util.Iterator iterate(java.lang.String propertyPath)

aggregate

public Aggregation aggregate()

aggregate

public Aggregation aggregate(java.lang.String propertyPath)

aggregate

public Aggregation aggregate(java.lang.String collectionPath,
                             java.lang.String propertyPath)

group

public Cog group(java.lang.String propertyName)

group

public Cog group(java.lang.String groupOnPropertyName,
                 java.lang.String storePropertyName)

move

public void move(java.lang.String originalPropertyName,
                 java.lang.String newPropertyName)
Changes the name of a property, "moving" its value.


copy

public void copy(java.lang.String originalPropertyName,
                 java.lang.String newPropertyName)
Copies a property value to a new name.


remove

public void remove(java.lang.String propertyName)
Removes a property by setting its value to null.


addSequenceNumber

public int addSequenceNumber(java.lang.String propertyName,
                             java.lang.String sequencePropertyName,
                             java.lang.String uniquenessMonitor)
Sets a sequence number based on another property that has duplicate values. Handy for fixing various problems with unique keys. Requires a uniquess monitor name; this is kept by UniquenessLib and you MUST remember to clear it if you ever want to see your memory again or if you want to start the sequencing over.


getRoot

public java.lang.Object getRoot()

setRoot

public void setRoot(java.lang.Object newRoot)