1 /* 2 3 Derby - Class org.apache.derby.iapi.services.loader.GeneratedByteCode 4 5 Licensed to the Apache Software Foundation (ASF) under one or more 6 contributor license agreements. See the NOTICE file distributed with 7 this work for additional information regarding copyright ownership. 8 The ASF licenses this file to you under the Apache License, Version 2.0 9 (the "License"); you may not use this file except in compliance with 10 the License. You may obtain a copy of the License at 11 12 http://www.apache.org/licenses/LICENSE-2.0 13 14 Unless required by applicable law or agreed to in writing, software 15 distributed under the License is distributed on an "AS IS" BASIS, 16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 See the License for the specific language governing permissions and 18 limitations under the License. 19 20 */ 21 22 package org.apache.derby.iapi.services.loader; 23 24 import org.apache.derby.iapi.error.StandardException; 25 import org.apache.derby.iapi.services.context.Context; 26 27 /** 28 Generated classes must implement this interface. 29 30 */ 31 public interface GeneratedByteCode { 32 33 /** 34 Initialize the generated class from a context. 35 Called by the class manager just after 36 creating the instance of the new class. 37 */ 38 public void initFromContext(Context context) 39 throws StandardException; 40 41 /** 42 Set the Generated Class. Call by the class manager just after 43 calling initFromContext. 44 */ 45 public void setGC(GeneratedClass gc); 46 47 /** 48 Called by the class manager just after calling setGC(). 49 */ 50 public void postConstructor() throws StandardException; 51 52 /** 53 Get the GeneratedClass object for this object. 54 */ 55 public GeneratedClass getGC(); 56 57 public GeneratedMethod getMethod(String methodName) throws StandardException; 58 59 60 public Object e0() throws StandardException ; 61 public Object e1() throws StandardException ; 62 public Object e2() throws StandardException ; 63 public Object e3() throws StandardException ; 64 public Object e4() throws StandardException ; 65 public Object e5() throws StandardException ; 66 public Object e6() throws StandardException ; 67 public Object e7() throws StandardException ; 68 public Object e8() throws StandardException ; 69 public Object e9() throws StandardException ; 70 } 71