Package org.apache.empire.db
Class DBObject
java.lang.Object
org.apache.empire.db.DBObject
- Direct Known Subclasses:
DBDatabase,DBExpr,DBIndex,DBRecordData,DBRelation
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TcheckParamNull(String name, T param) Internally used for parameter checkingabstract <T extends DBDatabase>
TReturns the database object to which this object belongs to.
-
Constructor Details
-
DBObject
public DBObject()
-
-
Method Details
-
checkParamNull
Internally used for parameter checking- Type Parameters:
T- the object type- Parameters:
name- the name of the param to checkparam- the param vlaue to check- Returns:
- the param value
-
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
-