Package org.teiid.metadata.Table

Examples of org.teiid.metadata.Table.TriggerEvent


    Alter<? extends Command> alter = (Alter<? extends Command>)command;
    ResolverUtil.resolveGroup(alter.getTarget(), metadata);
    int type = Command.TYPE_QUERY;
    boolean viewTarget = true;
    if (alter instanceof AlterTrigger) {
      TriggerEvent event = ((AlterTrigger)alter).getEvent();
      switch (event) {
      case DELETE:
        type = Command.TYPE_DELETE;
        break;
      case INSERT:
View Full Code Here


      @Override
      public void visit(AlterTrigger obj) {
        VDBMetaData vdb = workContext.getVDB();
        Table t = (Table)obj.getTarget().getMetadataID();
        String sql = null;
        TriggerEvent event = obj.getEvent();
        if (obj.getEnabled() == null) {
          if (obj.isCreate()) {
              if (getPlanForEvent(t, event) != null) {
                throw new TeiidRuntimeException(new TeiidProcessingException(QueryPlugin.Util.getString("DdlPlan.event_already_exists", t.getName(), obj.getEvent()))); //$NON-NLS-1$
              }
View Full Code Here

TOP

Related Classes of org.teiid.metadata.Table.TriggerEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.