1 21 22 package org.apache.derby.impl.sql.execute; 23 24 import org.apache.derby.iapi.services.sanity.SanityManager; 25 import org.apache.derby.iapi.error.StandardException; 26 import org.apache.derby.iapi.sql.execute.ConstantAction; 27 28 import org.apache.derby.iapi.sql.Activation; 29 30 import org.apache.derby.catalog.UUID; 31 32 36 class DropJarConstantAction extends DDLConstantAction 37 { 38 39 private final UUID id; 40 private final String schemaName; 41 private final String sqlName; 42 43 49 56 DropJarConstantAction(UUID id, 57 String schemaName, 58 String sqlName) 59 { 60 this.id = id; 61 this.schemaName = schemaName; 62 this.sqlName = sqlName; 63 } 64 65 66 72 public String toString() 73 { 74 return "DROP JAR FILE " + schemaName + "." + sqlName; 77 } 78 79 85 86 90 public void executeConstantAction( Activation activation ) 91 throws StandardException 92 { 93 JarUtil.drop(null,schemaName,sqlName, 94 purgeOnCommit()); 95 } 96 97 protected boolean purgeOnCommit() { return true; } 101 102 } 103 | Popular Tags |