1 22 23 package org.continuent.sequoia.controller.scheduler.schema; 24 25 import org.continuent.sequoia.controller.sql.schema.DatabaseTable; 26 27 37 public class SchedulerDatabaseTable 38 { 39 40 private String name; 41 42 private TransactionExclusiveLock lock = new TransactionExclusiveLock(); 43 44 49 public SchedulerDatabaseTable(DatabaseTable databaseTable) 50 { 51 name = databaseTable.getName(); 53 } 54 55 60 public String getName() 61 { 62 return name; 63 } 64 65 71 public TransactionExclusiveLock getLock() 72 { 73 return lock; 74 } 75 76 83 public boolean equals(Object other) 84 { 85 if ((other == null) || !(other instanceof SchedulerDatabaseTable)) 86 return false; 87 else 88 return name.equals(((SchedulerDatabaseTable) other).getName()); 89 } 90 91 98 public String getInformation(boolean longFormat) 99 { 100 return "Table " + name + ": "; 101 } 102 } 103 | Popular Tags |