1 24 25 package org.objectweb.cjdbc.controller.scheduler.schema; 26 27 import java.io.Serializable ; 28 29 import org.objectweb.cjdbc.common.sql.schema.DatabaseTable; 30 31 42 public class SchedulerDatabaseTable implements Serializable 43 { 44 45 private String name; 46 47 private TransactionExclusiveLock lock = new TransactionExclusiveLock(); 48 49 54 public SchedulerDatabaseTable(DatabaseTable databaseTable) 55 { 56 name = databaseTable.getName(); 58 } 59 60 65 public String getName() 66 { 67 return name; 68 } 69 70 76 public TransactionExclusiveLock getLock() 77 { 78 return lock; 79 } 80 81 88 public boolean equals(Object other) 89 { 90 if ((other == null) || !(other instanceof SchedulerDatabaseTable)) 91 return false; 92 else 93 return name.equals(((SchedulerDatabaseTable) other).getName()); 94 } 95 96 103 public String getInformation(boolean longFormat) 104 { 105 return "Table " + name + ": "; 106 } 107 } 108 | Popular Tags |