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 import org.apache.derby.iapi.sql.Activation; 28 import org.apache.derby.catalog.UUID; 29 30 34 class AddJarConstantAction extends DDLConstantAction 35 { 36 37 private final UUID id; 38 private final String schemaName; 39 private final String sqlName; 40 private final String externalPath; 41 42 43 49 56 AddJarConstantAction(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 68 74 public String toString() 75 { 76 return "ADD JAR FILE " + schemaName + "." + sqlName; 79 } 80 81 87 88 92 public void executeConstantAction( Activation activation ) 93 throws StandardException 94 { 95 JarUtil.add(id,schemaName,sqlName,externalPath); 96 } 97 98 } 99 | Popular Tags |