org.apache.empire.db
Class DBRelation

java.lang.Object
  extended by org.apache.empire.db.DBObject
      extended by org.apache.empire.db.DBRelation
All Implemented Interfaces:
Serializable

public class DBRelation
extends DBObject

This class creates a DBReferene object for a foreing key relation.

See Also:
Serialized Form

Nested Class Summary
static class DBRelation.DBReference
           
 
Constructor Summary
DBRelation(DBDatabase db, String name, DBRelation.DBReference[] references)
          Creates a DBRelation object for a foreing key relation.
 
Method Summary
 DBDatabase getDatabase()
          Returns the database object to which this object belongs to.
 String getFullName()
          Returns the full qualified table name.
 String getName()
          Returns the name.
 DBRelation.DBReference[] getReferences()
          Returns the references.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBRelation

public DBRelation(DBDatabase db,
                  String name,
                  DBRelation.DBReference[] references)
Creates a DBRelation object for a foreing key relation.

Parameters:
db - the database object
name - the name
references - the references for this relation
Method Detail

getName

public String getName()
Returns the name.

Returns:
Returns the name

getFullName

public String getFullName()
Returns the full qualified table name.

Returns:
the full qualified table name

getReferences

public DBRelation.DBReference[] getReferences()
Returns the references.

Returns:
the references

getDatabase

public DBDatabase getDatabase()
Description copied from class: DBObject
Returns the database object to which this object belongs to. For the database object itself this function will return the this pointer.

Specified by:
getDatabase in class DBObject
Returns:
the database object


Copyright © 2008-2011 Apache Software Foundation. All Rights Reserved.