~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/event_observer.h

  • Committer: Brian Aker
  • Date: 2011-01-17 23:44:48 UTC
  • mfrom: (2088.1.5 drizzle-build)
  • Revision ID: brian@tangent.org-20110117234448-0tt6rd6fxa3csdaf
Rollup of all changes for identifier/error

Show diffs side-by-side

added added

removed removed

Lines of Context:
221
221
  /* Static meathods called by drizzle to notify interested plugins 
222
222
   * of a schema an event,
223
223
 */
224
 
  static bool beforeDropTable(Session &session, const drizzled::TableIdentifier &table);
225
 
  static bool afterDropTable(Session &session, const drizzled::TableIdentifier &table, int err);
226
 
  static bool beforeRenameTable(Session &session, const drizzled::TableIdentifier &from, const drizzled::TableIdentifier &to);
227
 
  static bool afterRenameTable(Session &session, const drizzled::TableIdentifier &from, const drizzled::TableIdentifier &to, int err);
 
224
  static bool beforeDropTable(Session &session, const drizzled::identifier::Table &table);
 
225
  static bool afterDropTable(Session &session, const drizzled::identifier::Table &table, int err);
 
226
  static bool beforeRenameTable(Session &session, const drizzled::identifier::Table &from, const drizzled::identifier::Table &to);
 
227
  static bool afterRenameTable(Session &session, const drizzled::identifier::Table &from, const drizzled::identifier::Table &to, int err);
228
228
  static bool connectSession(Session &session);
229
229
  static bool disconnectSession(Session &session);
230
230
  static bool beforeStatement(Session &session);
434
434
class BeforeDropTableEventData: public SchemaEventData
435
435
{
436
436
public:
437
 
  const drizzled::TableIdentifier &table;
 
437
  const drizzled::identifier::Table &table;
438
438
 
439
 
  BeforeDropTableEventData(Session &session_arg, const drizzled::TableIdentifier &table_arg): 
 
439
  BeforeDropTableEventData(Session &session_arg, const drizzled::identifier::Table &table_arg): 
440
440
    SchemaEventData(EventObserver::BEFORE_DROP_TABLE, session_arg, table_arg.getSchemaName()), 
441
441
    table(table_arg)
442
442
  {}  
446
446
class AfterDropTableEventData: public SchemaEventData
447
447
{
448
448
public:
449
 
  const drizzled::TableIdentifier &table;
 
449
  const drizzled::identifier::Table &table;
450
450
  int err;
451
451
 
452
 
  AfterDropTableEventData(Session &session_arg, const drizzled::TableIdentifier &table_arg, int err_arg): 
 
452
  AfterDropTableEventData(Session &session_arg, const drizzled::identifier::Table &table_arg, int err_arg): 
453
453
    SchemaEventData(EventObserver::AFTER_DROP_TABLE, session_arg, table_arg.getSchemaName()), 
454
454
    table(table_arg), 
455
455
    err(err_arg)
460
460
class BeforeRenameTableEventData: public SchemaEventData
461
461
{
462
462
public:
463
 
  const drizzled::TableIdentifier &from;
464
 
  const drizzled::TableIdentifier &to;
 
463
  const drizzled::identifier::Table &from;
 
464
  const drizzled::identifier::Table &to;
465
465
 
466
 
  BeforeRenameTableEventData(Session &session_arg, const drizzled::TableIdentifier &from_arg, const drizzled::TableIdentifier &to_arg): 
 
466
  BeforeRenameTableEventData(Session &session_arg, const drizzled::identifier::Table &from_arg, const drizzled::identifier::Table &to_arg): 
467
467
    SchemaEventData(EventObserver::BEFORE_RENAME_TABLE, session_arg, from_arg.getSchemaName()), 
468
468
    from(from_arg), 
469
469
    to(to_arg)
474
474
class AfterRenameTableEventData: public SchemaEventData
475
475
{
476
476
public:
477
 
  const drizzled::TableIdentifier &from;
478
 
  const drizzled::TableIdentifier &to;
 
477
  const drizzled::identifier::Table &from;
 
478
  const drizzled::identifier::Table &to;
479
479
  int err;
480
480
 
481
 
  AfterRenameTableEventData(Session &session_arg, const drizzled::TableIdentifier &from_arg, const drizzled::TableIdentifier &to_arg, int err_arg): 
 
481
  AfterRenameTableEventData(Session &session_arg, const drizzled::identifier::Table &from_arg, const drizzled::identifier::Table &to_arg, int err_arg): 
482
482
    SchemaEventData(EventObserver::AFTER_RENAME_TABLE, session_arg, from_arg.getSchemaName()), 
483
483
    from(from_arg), 
484
484
    to(to_arg),