ElegantJ Data Tables Java API Specification v1.1

com.elegantj.data.dataviewer
Class Join

java.lang.Object
  extended bycom.elegantj.data.dataviewer.Join
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable

public class Join
extends java.lang.Object
implements java.io.Externalizable

The Join provides the properties of the join for the master-detail relationship.

See Also:
Serialized Form

Constructor Summary
Join()
           
Join(java.lang.String[] masterColumns, java.lang.String[] detailColumns)
          Creates a Join with the specified binded column's.
Join(java.lang.String masterColumn, java.lang.String detailColumn)
          Creates a Join with the specified binded column's.
 
Method Summary
 java.lang.Object clone()
          Returns the clone of the caller object
 boolean equals(java.lang.Object obj)
          Compares the specified Object with this Join object for equality.
 java.lang.String getDetailColumn()
          Returns the first binded detail column name
 java.lang.String[] getDetailColumns()
          Returns the binded detail column names
 java.lang.String[][] getJoinColumns()
          Returns the binded master-detail column names
 java.lang.String getMasterColumn()
          Returns the first binded master column name
 java.lang.String[] getMasterColumns()
          Returns the binded master column names
 void readExternal(java.io.ObjectInput in)
           
 java.lang.String toString()
          Converts the object to a string
 void writeExternal(java.io.ObjectOutput out)
          Externalizable interface implementation to save and retrieve the state of this object
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Join

public Join()

Join

public Join(java.lang.String masterColumn,
            java.lang.String detailColumn)
Creates a Join with the specified binded column's.

Parameters:
masterColumn - the names of the binded master columns, default empty
detailColumn - the names of the binded detail columns, default empty

Join

public Join(java.lang.String[] masterColumns,
            java.lang.String[] detailColumns)
Creates a Join with the specified binded column's.

Parameters:
masterColumns - the names of the binded master columns, default null
detailColumns - the names of the binded detail columns, default null
Method Detail

getMasterColumn

public java.lang.String getMasterColumn()
Returns the first binded master column name


getDetailColumn

public java.lang.String getDetailColumn()
Returns the first binded detail column name


getMasterColumns

public java.lang.String[] getMasterColumns()
Returns the binded master column names


getDetailColumns

public java.lang.String[] getDetailColumns()
Returns the binded detail column names


getJoinColumns

public java.lang.String[][] getJoinColumns()
Returns the binded master-detail column names


clone

public java.lang.Object clone()
Returns the clone of the caller object


equals

public boolean equals(java.lang.Object obj)
Compares the specified Object with this Join object for equality. Returns true if and only if the specified Object is also a Join object, both Join objects have the same properties.

Parameters:
obj - the Object to be compared for equality with this Join object.
Returns:
true if the specified Object is equal to this Join object

toString

public java.lang.String toString()
Converts the object to a string

Returns:
a string representation of this class object

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Externalizable interface implementation to save and retrieve the state of this object

Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

ElegantJ Data Tables Java API Specification v1.1

Submit a bug or feature

Copyright(c)
Elegant Microweb Technologies Pvt. Ltd.
www.elegantmicroweb.com
www.elegantjbeans.com
All Rights Reserved.