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 35 class ReplaceJarConstantAction extends DDLConstantAction 36 { 37 38 private final UUID id; 39 private final String schemaName; 40 private final String sqlName; 41 private final String externalPath; 42 48 56 ReplaceJarConstantAction(UUID id, 57 String schemaName, 58 String sqlName, 59 String externalPath) 60 { 61 this.id = id; 62 this.schemaName = schemaName; 63 this.sqlName = sqlName; 64 this.externalPath = externalPath; 65 } 66 67 73 public String toString() 74 { 75 return "REPLACE JAR FILE " + schemaName + "." + sqlName; 78 } 79 80 89 public void executeConstantAction( Activation activation ) 90 throws StandardException 91 { 92 JarUtil.replace(id,schemaName, 93 sqlName, 94 externalPath, 95 purgeOnCommit()); 96 } 97 98 protected boolean purgeOnCommit() { return true; } 102 103 } 104 | Popular Tags |