org.mmbase.module.core
Class MMTable

java.lang.Object
  |
  +--org.mmbase.module.core.MMTable
Direct Known Subclasses:
MMObjectBuilder

public class MMTable
extends java.lang.Object

MMTable is the base abstraction of a cloud of objects stored in one database tabel, essentially a cloud of objects of the same type. It provides a starting point for MMObjectBuilder by defining a scope - the database table - and basic functionality to create the table and query properties such as its size. This class does not contain actual management of nodes (this is left to MMOBjectBuilder).

Version:
31 januari 2001
Author:
Daniel Ockeloen, Pierre van Rooden (javadoc)

Field Summary
 MMBase mmb
          The MMBase module that this table belongs to
 java.lang.String tableName
          The table name
 
Constructor Summary
MMTable()
          Empty constructor.
MMTable(MMBase m)
          Constructor.
 
Method Summary
 boolean created()
          Check whether the table is accessible.
 int size()
          Determine the number of objects in this table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mmb

public MMBase mmb
The MMBase module that this table belongs to

tableName

public java.lang.String tableName
The table name
Constructor Detail

MMTable

public MMTable()
Empty constructor.

MMTable

public MMTable(MMBase m)
Constructor. Associates the table with a MMBase module.
Parameters:
m - MMBase module to associate the table with
Method Detail

size

public int size()
Determine the number of objects in this table.
Returns:
The number of entries in the table.

created

public boolean created()
Check whether the table is accessible. In general, this means the table does not exist. Please note that this routine may also return false if the table is inaccessible due to insufficient rights.
Returns:
true if the table is accessible, false otherwise.


MMBase 2002