Class DBObject

java.lang.Object
org.apache.empire.db.DBObject
Direct Known Subclasses:
DBDatabase, DBExpr, DBIndex, DBRecordData, DBRelation

public abstract class DBObject extends Object
Base class for all objects that directly or indirectly belong to a database including the database object itself. Examples are: tables, views, columns, indexes, relations etc. Not included are: DBMSHandlers, helper classes
  • Constructor Details

    • DBObject

      public DBObject()
  • Method Details

    • checkParamNull

      public static <T> T checkParamNull(String name, T param)
      Internally used for parameter checking
      Type Parameters:
      T - the object type
      Parameters:
      name - the name of the param to check
      param - the param vlaue to check
      Returns:
      the param value
    • getDatabase

      public abstract <T extends DBDatabase> T getDatabase()
      Returns the database object to which this object belongs to. For the database object itself this function will return the this pointer.
      Type Parameters:
      T - the object type
      Returns:
      the database object