org.javalite.activejdbc
Class Association

java.lang.Object
  extended by org.javalite.activejdbc.Association
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BelongsToAssociation, BelongsToPolymorphicAssociation, Many2ManyAssociation, OneToManyAssociation, OneToManyPolymorphicAssociation

public class Association
extends Object
implements Serializable

Associations are synonymous with relationships. However, in some cases, the DB might have referential integrity constraints. ActiveJDBC does not account for DB referential integrity constraints, associations rather based on conventions and convention overrides.

Author:
Igor Polevoy
See Also:
Serialized Form

Constructor Summary
protected Association(String source, String target)
           
 
Method Summary
 String getSource()
          Returns source table name of this association.
 String getTarget()
          Returns target table name of this association.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Association

protected Association(String source,
                      String target)
Parameters:
source - source table name of this association.
target - target table name of this association.
Method Detail

getSource

public String getSource()
Returns source table name of this association.

Returns:
source table name of this association.

getTarget

public String getTarget()
Returns target table name of this association.

Returns:
target table name of this association.

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2015 JavaLite. All rights reserved.