org.mmbase.module.core
Class MMTable

java.lang.Object
  extended byorg.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:
$Id: MMTable.java,v 1.12.2.1 2004/06/15 21:14:06 robmaris Exp $
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.
 
Method Summary
 boolean created()
          Check whether the table is accessible.
 java.lang.String getFullTableName()
          Retrieve the full table name (including the clouds' base name)
 java.lang.String getTableName()
          Retrieve the table name (without the clouds' base name)
 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

Warning: Scope will be changed to:
protected

tableName

public java.lang.String tableName
The table name

Warning: Scope will be changed to:
protected
Constructor Detail

MMTable

public MMTable()
Empty constructor.

Method Detail

getTableName

public java.lang.String getTableName()
Retrieve the table name (without the clouds' base name)

Returns:
a String containing the table name
Since:
MMBase-1.7

getFullTableName

public java.lang.String getFullTableName()
Retrieve the full table name (including the clouds' base name)

Returns:
a String containing the full table name
Since:
MMBase-1.7

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 build 1.7.1.20041002