org.apache.empire.db
Class DBRelation

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

public class DBRelation
extends DBObject

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


Nested Class Summary
static class DBRelation.DBReference
           
 
Constructor Summary
DBRelation(DBDatabase db, java.lang.String name, DBRelation.DBReference[] references)
          Creates a DBReferene object for a foreing key relation.
 
Method Summary
 DBDatabase getDatabase()
          Returns the database object to which this object belongs to.
 java.lang.String getFullName()
          Returns the full qualified table name.
 java.lang.String getName()
          Returns the name.
 DBRelation.DBReference[] getReferences()
          Returns the references.
 
Methods inherited from class org.apache.empire.commons.ErrorObject
clearError, getErrorMessage, getErrorParams, getErrorSource, getErrorType, getMessage, hasError, isExceptionsEnabled, setExceptionsEnabled
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBRelation

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

Method Detail

getName

public java.lang.String getName()
Returns the name.

Returns:
Returns the name

getFullName

public java.lang.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