org.objectweb.cjdbc.controller.scheduler.schema
Class SchedulerDatabaseTable

java.lang.Object
  extended byorg.objectweb.cjdbc.controller.scheduler.schema.SchedulerDatabaseTable
All Implemented Interfaces:
java.io.Serializable

public class SchedulerDatabaseTable
extends java.lang.Object
implements java.io.Serializable

A CacheDatabaseTable represents a database table and its associated cache entries. It has an array of CacheDatabaseColumn objects.

Keep it mind that ArrayList is not synchronized...

Version:
1.0
Author:
Emmanuel Cecchet
See Also:
Serialized Form

Field Summary
private  TransactionExclusiveLock lock
           
private  java.lang.String name
          Database table name.
 
Constructor Summary
SchedulerDatabaseTable(DatabaseTable databaseTable)
          Creates a new CacheDatabaseTable instance.
 
Method Summary
 boolean equals(java.lang.Object other)
          Two CacheDatabaseColumn are equals if they have the same name and the same columns.
 java.lang.String getInformation(boolean longFormat)
          Returns information about the database table and its columns.
 TransactionExclusiveLock getLock()
          Returns the lock for this table.
 java.lang.String getName()
          Gets the name of the table.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

private java.lang.String name
Database table name.


lock

private TransactionExclusiveLock lock
Constructor Detail

SchedulerDatabaseTable

public SchedulerDatabaseTable(DatabaseTable databaseTable)
Creates a new CacheDatabaseTable instance.

Parameters:
databaseTable - the database table
Method Detail

getName

public java.lang.String getName()
Gets the name of the table.

Returns:
the table name

getLock

public TransactionExclusiveLock getLock()
Returns the lock for this table.

Returns:
a TransactionExclusiveLock instance
See Also:
TransactionExclusiveLock

equals

public boolean equals(java.lang.Object other)
Two CacheDatabaseColumn are equals if they have the same name and the same columns.

Parameters:
other - the object to compare with
Returns:
true if the 2 objects are the same

getInformation

public java.lang.String getInformation(boolean longFormat)
Returns information about the database table and its columns.

Parameters:
longFormat - true for a long format, false for a short summary
Returns:
a String value


Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.