biz.c24.io.api.data
Class DatabaseKeyRef

java.lang.Object
  extended by biz.c24.io.api.data.DatabaseKeyRef

public class DatabaseKeyRef
extends Object

This class is used to store the relationship between a child and a parent. This allows for correctly constructing database foreign keys


Constructor Summary
DatabaseKeyRef(String parentKey, String childKey)
          The Constructor.
 
Method Summary
 boolean equals(Object obj)
          Check if one DatabaseKeyRef equals another DatabaseKeyRef.
 String getChildKeyName()
          Returns the name of the key at the child's end.
 String getParentKeyName()
          Returns the name of the key at the parent's end.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseKeyRef

public DatabaseKeyRef(String parentKey,
                      String childKey)
The Constructor.

Parameters:
parentKey - The value in the parent
childKey - the value in the child
Method Detail

getChildKeyName

public String getChildKeyName()
Returns the name of the key at the child's end.

Returns:
String the name

getParentKeyName

public String getParentKeyName()
Returns the name of the key at the parent's end.

Returns:
String the name

equals

public boolean equals(Object obj)
Check if one DatabaseKeyRef equals another DatabaseKeyRef.

Overrides:
equals in class Object
Parameters:
obj - The object to compare
Returns:
whether the two objects are equal


C24 Technologies © 2002-2012: All Rights Reserved.