com.bankframe.admin.tools
Class ConvertToEJB11

java.lang.Object
  extended by com.bankframe.admin.tools.DirectoryIterator
      extended by com.bankframe.admin.tools.ConvertToEJB11

public class ConvertToEJB11
extends DirectoryIterator

ConvertToEJB11 extends DirectoryIterator and converts all the processed files from EJB1.0 format to EJB1.1 format. The ejbCreate method is modified to return the primary key and not a void.


Field Summary
 String baseDir
           
 String EJB_CREATE_TAG
           
 String PRIMARY_KEY_TAG
           
 String RETURN_CLAUSE
           
 String RETURN_TAG
           
 
Constructor Summary
ConvertToEJB11(String[] args)
          Constructor takes a list of String arguments.
 
Method Summary
static void main(String[] args)
          This method recursively converts files current dir or a dir specified on the command line to EJB1.1 format
 
Methods inherited from class com.bankframe.admin.tools.DirectoryIterator
iterate, iterate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PRIMARY_KEY_TAG

public final String PRIMARY_KEY_TAG
See Also:
Constant Field Values

RETURN_TAG

public final String RETURN_TAG
See Also:
Constant Field Values

RETURN_CLAUSE

public final String RETURN_CLAUSE
See Also:
Constant Field Values

EJB_CREATE_TAG

public final String EJB_CREATE_TAG
See Also:
Constant Field Values

baseDir

public String baseDir
Constructor Detail

ConvertToEJB11

public ConvertToEJB11(String[] args)
               throws IOException
Constructor takes a list of String arguments. Argument specifies directory of files to iterate and convert to EJB1.1 format.

Parameters:
args - String array of args, "-p" specifies base dir.
Throws:
IOException - This exceptionthrows an IO exception if an error occurs reading the file. Occurs if file manipulation failed.
Method Detail

main

public static void main(String[] args)
This method recursively converts files current dir or a dir specified on the command line to EJB1.1 format

Parameters:
args - String array of args, "-p" specifies base dir.


Copyright © 2005, 2007, Oracle. All rights reserved.