PK '* META-INF/PK '*35DDMETA-INF/MANIFEST.MFManifest-Version: 1.0 Created-By: 1.3.0 (Sun Microsystems Inc.) PK *mx/PK * mx/udlap/PK * mx/udlap/ict/PK 55*` VFVFmx/udlap/ict/gpl.txt GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) 19yy This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) 19yy name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. PK *mx/udlap/ict/util/PK 55* <>"mx/udlap/ict/util/FileHandler.java/* Copyright (C) 2000 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA JUDBC v1.2 , Copyright (C) 2000 UDLA-P */ /** * @(#)FileHandler.java * * Date Author Changes * Mar 24 2000 Carlos Proal Created * * Copyright 2000 by Dragon Corp. * All rights reserved. */ package mx.udlap.ict.util; import javax.swing.*; import java.net.*; import java.awt.*; import java.io.*; import java.util.*; /** * Provides a set of useful utilities for recover files from jars * Note: all filenames are based on classpath * ie. mx/udlap/ict/uva/images/image.gif * even when class is on mx.udlap.ict.uva.browser.Browser * if filename is image.gif file must reside on root directory on * jar file * * Note: please compress the jar with level 0 * jar -cvf0 filename.jar directory * * @author Carlos Proal * @version 1.0 * @since 1.0 */ public class FileHandler{ /** * Recover as URL a file contained in the loader directory * or in an uncompressed jar file * @param _this_ Class who need the stream * @param filename File name * @return URL */ public static URL fetchURL(Object _this_, String filename) { URL fetchurl; try { URLClassLoader cl = (URLClassLoader)_this_.getClass().getClassLoader(); if (cl!=null) { URL url =cl.findResource(filename); fetchurl=url; } else { fetchurl = ClassLoader.getSystemResource(filename); } } catch(Exception e1) { e1.printStackTrace(); return null; } return fetchurl; } /** * Recover as Stream a file contained in the loader directory * or in an uncompressed jar file * @param _this_ Class who need the stream * @param filename File name * @return InputStream */ public static InputStream fetchStream(Object _this_, String filename) { InputStream stream; try { URLClassLoader cl = (URLClassLoader)_this_.getClass().getClassLoader(); if (cl!=null) { URL url =cl.findResource(filename); stream=url.openStream(); } else { stream=ClassLoader.getSystemResourceAsStream(filename); } } catch(Exception e1) { e1.printStackTrace(); return null; } return stream; } /** * Recover as ByteArray a file contained in the loader directory * or in an uncompressed jar file * @param _this_ Class who need the stream * @param filename File name * @return ByteArray */ public static byte[] fetchBytes(Object _this_, String filename) { InputStream inputStream=fetchStream(_this_,filename); ByteArrayOutputStream baos=new ByteArrayOutputStream(); int abyte; while(true) { try { abyte=inputStream.read(); if (abyte== -1) break; baos.write(abyte); } catch(Exception e1) { e1.printStackTrace(); break; } }//while return baos.toByteArray(); } /** * Recover as Image a file contained in the loader directory * or in an uncompressed jar file * @param _this_ Class who need the stream * @param filename File name * @return Image */ public static Image fetchImage(Object _this_, String filename) { Image image=null; try{ image = Toolkit.getDefaultToolkit().createImage(fetchURL(_this_,filename)); }catch(Exception e) { e.printStackTrace(); image =null;} return image; } /** * Recover as ImageIcon a file contained in the loader directory * or in an uncompressed jar file * @param _this_ Class who need the stream * @param filename File name * @return ImageIcon */ public static ImageIcon fetchImageIcon(Object _this_, String filename) { ImageIcon icon=null; try{ icon = new ImageIcon(fetchURL(_this_,filename)); }catch(Exception e) { e.printStackTrace(); icon =null;} return icon; } } PK 55*cc#mx/udlap/ict/util/StaticApplet.java /* Copyright (C) 2000 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA JUDBC v1.2 , Copyright (C) 2000 UDLA-P */ /** * @(#)StaticApplet.java * * Date Author Changes * Oct 31 2000 Carlos Proal Created * * Copyright 2000 by Dragon Corp. * All rights reserved. */ package mx.udlap.ict.util; import java.applet.*; /** * Class to store the original applet from a page * this applet can be used inside frames that comes from * the applet so can access the context and explode * the browser properties. * @author Carlos Proal * @version 1.0 * @since 1.0 */ public class StaticApplet { private static Applet mainapplet=null; public StaticApplet(){} public StaticApplet(Applet mainapplet) { setApplet(mainapplet); } /** * Sets the applet to be stored statically along the current connection * @param mainapplet The applet to be saved. */ public void setApplet(Applet mainapplet) { this.mainapplet=mainapplet; } /** * Retrieve the applet stored in this warehouse * @return Applet */ public Applet getApplet() { return this.mainapplet; } } PK *]r#mx/udlap/ict/util/FileHandler.class-a ( ) *+, - ./0 12 34 .5 67 ( 89 : ; <= > <?@ ABC()VCodeLineNumberTablefetchURL4(Ljava/lang/Object;Ljava/lang/String;)Ljava/net/URL; fetchStream;(Ljava/lang/Object;Ljava/lang/String;)Ljava/io/InputStream; fetchBytes((Ljava/lang/Object;Ljava/lang/String;)[B fetchImage6(Ljava/lang/Object;Ljava/lang/String;)Ljava/awt/Image;fetchImageIcon=(Ljava/lang/Object;Ljava/lang/String;)Ljavax/swing/ImageIcon; SourceFileFileHandler.java  DEF GHjava/net/URLClassLoader IJK LJjava/lang/ExceptionM NO PQ RS java/io/ByteArrayOutputStreamT UV WX YZ[ \]  ^_javax/swing/ImageIcon `mx/udlap/ict/util/FileHandlerjava/lang/ObjectgetClass()Ljava/lang/Class;java/lang/ClassgetClassLoader()Ljava/lang/ClassLoader; findResource"(Ljava/lang/String;)Ljava/net/URL;java/lang/ClassLoadergetSystemResourcejava/lang/ThrowableprintStackTrace java/net/URL openStream()Ljava/io/InputStream;getSystemResourceAsStream)(Ljava/lang/String;)Ljava/io/InputStream;java/io/InputStreamread()Iwrite(I)V toByteArray()[Bjava/awt/ToolkitgetDefaultToolkit()Ljava/awt/Toolkit; createImage (Ljava/net/URL;)Ljava/awt/Image;(Ljava/net/URL;)V!*4 i-*N--+:M+M N-,!$"D EGHN$U)V+X l0*N--+: M+ M N-,$'"i jlmt'{,|.~ !|8*+ M Y N,6-:-&)*  )03 "#JM*+M N-M, $%KMY*+M N-M,&'PK ***$mx/udlap/ict/util/StaticApplet.class-    mainappletLjava/applet/Applet;()VCodeLineNumberTable(Ljava/applet/Applet;)V setApplet getApplet()Ljava/applet/Applet; SourceFileStaticApplet.java  mx/udlap/ict/util/StaticAppletjava/lang/Object!   * 0  * **+ 34 5  !+ =>  F   .PK *mx/udlap/ict/database/PK 55*\\qq'mx/udlap/ict/database/SQLArguments.java/* Copyright (C) 2000 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA JUDBC v1.2 , Copyright (C) 2000 UDLA-P */ /** * @(#)SQLArguments.java * * Date Author Changes * Feb 1 2000 Dragon Team Created * Feb 18 2000 Jos Rodrguez Documented * Apr 1 2000 Added Serializable and Stream types * Copyright 2000 by Dragon Corp. * All rights reserved. */ package mx.udlap.ict.database; /** * SQLArguments stores a threesome: the name of the argument, its value * and its type value. This class is used specially in JUDBC like a * collection holder. * *

Examples:

* *
JUDBC jius;
 * jius = new JUDBC(myserver,
 *                 myport,
 *                 mydbmsDriver,
 *                 myurl,
 *                 mydatabaseName,
 *                 mydatabaseUsername,
 *                 mydatabasePassword);
 *
 * Vector args = new Vector(2);
 * SQLArguments sqlArgs;
 *
 * args.add(new SQLArguments("name", "duke", SQLArguments.STRING));
 * args.add(new SQLArguments("password", "java|sucks", SQLArguments.STRING));
 *
 * int numberOfInsertedValues = jius.insertValues("users", args);
* * @author Manuel Vargas * @author Carlos Proal * @version 1.0 * @since SQLArguments 1.0 * @see JUDBC */ public class SQLArguments { /** * Represents the string type */ public static final char STRING = 's'; /** * Represents the byte type */ public static final char BYTE = 'b'; /** * Represents the integer type */ public static final char INTEGER = 'i'; /** * Represents the long type */ public static final char LONG = 'l'; /** * Represents the boolean type */ public static final char BOOLEAN = 'o'; /** * Represents the float type */ public static final char FLOAT = 'f'; /** * Represents the double type */ public static final char DOUBLE = 'd'; /** * Represents the date type */ public static final char DATE = 'a'; /** * Represents the short type */ public static final char SHORT = 'h'; /** * Represents the time type */ public static final char TIME = 't'; /** * Represents the time stamp type */ public static final char TIME_STAMP = 'm'; /** * Represents the object type */ public static final char OBJECT = 'j'; /** * Represents the file type */ public static final char FILE = 'n'; /** * Represents the stream type */ public static final char STREAM = 'r'; /** * Represents the serializable object */ public static final char SERIALIZABLE = 'z'; /** * The argument name */ private String name; /** * The argument value */ private Object value; /** * The argument value type */ private char argumentValueType; /** * Creates a SQLArguments object with the given name, value and type * @param name The argument name * @param value The argument value * @param argumentValueType The argument type */ public SQLArguments(String name, Object value, char argumentValueType) { setName(name); setValue(value, argumentValueType); } /** * Creates a SQLArguments object with the given name and value; its type * is not defined yet. * @param name The argument name * @param value The value */ public SQLArguments(String name, Object value) { this(name, value, OBJECT); } /** * Creates a SQLArguments object with the given name; its value and type * are not defined yet. * @param name The argument name */ public SQLArguments(String name) { this(name, null, OBJECT); } /** * Creates a SQLArguments object;; its name, value and type are not defined yet. */ public SQLArguments() { this(null, null, OBJECT); } /** * Sets the argument name * @param name The argument name */ public void setName(String name) { this.name = name; } /** * Sets the argument value and type * @param value The argument value * @param argumentValueType The argument type */ public void setValue(Object value, char argumentValueType) { this.value = value; this.argumentValueType = argumentValueType; } /** * Gets the argument name * @return The argument name; null if it is not defined yet */ public String getName() { return (name); } /** * Gets the argument value * @return The argument value; null if it is not defined yet */ public Object getValue() { return (value); } /** * Gets the argument type * @return The argument type; null if it is not defined yet */ public char getArgumentValueType() { return (argumentValueType); } } PK 55* ' '%mx/udlap/ict/database/SQLUtility.java/* Copyright (C) 2000 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA JUDBC v1.2 , Copyright (C) 2000 UDLA-P */ /** * @(#)SQLUtility.java * * Date Author Changes * Feb 2 2000 Carlos Proal Created * Mar 24 2000 Carlos Proal Added new recover methods: getImageAsArray, getStreamAsArray * Apr 1 2000 Carlos Proal Added new recover methods: getImageIcon, getObject * * Copyright 2000 by Dragon Corp. * All rights reserved. */ package mx.udlap.ict.database; import java.awt.Image; import java.awt.Toolkit; import javax.swing.*; import java.util.Vector; import java.io.*; /** * Provides a set of useful utilities such as the creation of images from * a set of bytes. * @author Carlos Proal * @version 1.0 * @since 1.0 */ public class SQLUtility { public static final int LIKECONDITION=0; public static final int MATCHCONDITION=1; public static final int ANDCONDITION=2; public static final int ORCONDITION=3; /** * Gets a set of bytes, obtained through an input stream. In * this case, the input stream is the connection established with the DB, * when a select query is executed. * @param inputStream The input stream where the set of bytes, that conform * the image, are extracted. * @return The image */ public static byte[] getImageAsArray(InputStream inputStream) { ByteArrayOutputStream baos=new ByteArrayOutputStream(); int abyte; while(true) { try { abyte=inputStream.read(); if (abyte== -1) break; baos.write(abyte); } catch(Exception e1) { break; } }//while return baos.toByteArray(); } /** * Gets an Image from a set of bytes, obtained through an input stream. In * this case, the input stream is the connection established with the DB, * when a select query is executed. * @param inputStream The input stream where the set of bytes, that conform * the image, are extracted. * @return The Image */ public static Image getImage(InputStream inputStream) { byte imageBytes[]; imageBytes=getImageAsArray(inputStream); return (Toolkit.getDefaultToolkit().createImage(imageBytes)); } /** * Gets an ImageIcon obtained through an input stream. In * this case, the input stream is the connection established with the DB, * when a select query is executed. * @param inputStream The input stream where the set of bytes, that conform * the image, are extracted. * @return The ImageIcon */ public static ImageIcon getImageIcon(InputStream inputStream) { byte imageBytes[]; imageBytes=getImageAsArray(inputStream); return (new ImageIcon(imageBytes)); } /** * Gets a set of bytes, obtained through an input stream. In * this case, the input stream is the connection established with the DB, * when a select query is executed. * @param inputStream The input stream where the set of bytes, that conform * the image, are extracted. * @return The image */ public static byte[] getStreamAsArray(InputStream inputStream) { return getImageAsArray(inputStream); } /** * Gets an Object obtained through an input stream. In * this case, the input stream is the connection established with the DB, * when a select query is executed. * Useful on ObjectPersistency (Serializable objects) * @param inputStream The input stream where the set of bytes, that conform * the image, are extracted. * @return The Object */ public static Object getObject(InputStream inputStream) { try { ByteArrayInputStream inputstream=new ByteArrayInputStream(getStreamAsArray(inputStream)); ObjectInputStream obj=new ObjectInputStream(inputstream); return obj.readObject(); } catch(Exception e) { e.printStackTrace(); return null; } } /** * Transform a query to be used in a where condition * specific dbms utilize different kinds of "like" ej. * informix where xx matches '*[Uu][Nn][Ii][Xx]*' * mysql where xx like '%unike%' * @param query for example unix * @param type matches or like, see this class * @return The transformed string */ public static String getLikeMatchCondition(String query,int type) { switch(type) { case SQLUtility.LIKECONDITION: return getLikeCondition(query); case SQLUtility.MATCHCONDITION: return getMatchesCondition(query); } return new String(); } /** * Transform a query to be used in a where condition * specific dbms utilize different kinds of "like" ej. * informix where xx matches '*[Uu][Nn][Ii][Xx]*' * mysql where xx like '%unike%' * @param query for example unix * @param type matches or like, see this class * @param likematches if the word like/matches should be appended * @param prefix if first wildcard included * @param suffix if last wildcard included * @return The transformed string */ public static String getLikeMatchCondition(String query,int type,boolean likematches,boolean prefix,boolean suffix) { switch(type) { case SQLUtility.LIKECONDITION: return getLikeCondition(query,likematches,prefix,suffix); case SQLUtility.MATCHCONDITION: return getMatchesCondition(query,likematches,prefix,suffix,SQLUtility.ANDCONDITION); } return new String(); } /** * Get where condition for like grammar * @param query where expresion ej. unix * @return transformed string */ public static String getLikeCondition(String query) { StringBuffer buffer; buffer=new StringBuffer().append(" like ").append(" \'%").append(query).append("%\' "); return buffer.toString(); } /** * Get where condition for like grammar * @param query where expresion ej. unix * @param like if the word like should be appended * @param prefix if first wildcard included * @param suffix if last wildcard included * @return transformed string */ public static String getLikeCondition(String query,boolean like,boolean prefix, boolean suffix) { StringBuffer buffer; buffer=new StringBuffer(); if(like) buffer.append(" like "); buffer.append("\'"); if(prefix) buffer.append("%"); buffer.append(query); if(suffix) buffer.append("%"); buffer.append("\'"); return buffer.toString(); } /** * Get where condition for matches grammar * @param query where expresion ej. unix * @return transformed string */ public static String getMatchesCondition(String query) { String queryUC=new String(query.toUpperCase()); String queryLC=new String(query.toLowerCase()); StringBuffer buffer; buffer=new StringBuffer().append(" matches ").append(" \'*"); for(int i=0;i * (SQLUtility.ANDCONDITION) or separated (SQLUtility.ORCONDITION) * @return transformed string */ public static String getMatchesCondition(String query,boolean matches,boolean prefix,boolean suffix,int condition) { String queryUC=new String(query.toUpperCase()); String queryLC=new String(query.toLowerCase()); StringBuffer buffer; buffer=new StringBuffer(); if(matches) buffer.append(" matches "); buffer.append("\'"); if(prefix) buffer.append("*"); if (condition==SQLUtility.ANDCONDITION) for(int i=0;i This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA JUDBC v1.2 , Copyright (C) 2000 UDLA-P */ /** * @(#)JUDBC.java * Version 1.1 * Date Author Changes * Apr 26 1997 Carlos Proal Created * Feb 01 2000 Carlos Proal Modified * Manuel Vargas * Feb 02 2000 Manuel Vargas Documented * Feb 17 2000 Griselda Chevalier * H0ctor Cocoletzi * Carlos Proal Added more functionality and definition * Mar 08 2000 Carlos Proal Added ODBC funcionality and performed executequery * Apr 24 2000 Carlos Proal Added simpleExecuteQuery method * Apr 24 2000 Carlos Proal Added executeUpdate method * * Copyright 1997-2000 by Dragon Corporation. All Rights Reserved. */ package mx.udlap.ict.database; import java.io.*; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.sql.Time; import java.sql.Timestamp; import java.util.Vector; import mx.udlap.ict.database.SQLUtility; /** *

The class JUDBC, provides to the progammer a useful API * for the interaction with a DMBS such as Informix(tm) Universal Server. * or the Illustra

* *

In order to use this class is necessary to have the needed * drivers installed. These drivers can be found in * http://www.javasoft.com or the DBMS company website. * *

It is important to realize that if you want to create an instance of this * class within an Applet, the last one should be provided by the same server as * the DBMS, i.e. Informix(tm) Universal Server.

* * @author Manuel Vargas * @author Carlos Proal * @author Griselda Chevalier * @author H0ctor Cocoletzi * * @version 4.0 */ public class JUDBC { /** * The server hostname where the DMBS is located *
* i.e. www.server.com; server.mycompany.com */ private String server; /** * The port where the server is listening requests *
* i.e. 1979 */ private int port; /** * The DBMS driver *
* i.e. com.informix.jdbc.IfxDriver or mijdbc */ private String dbmsDriver; /** * The url *
* i.e. jdbc:informix-sqli */ private String url; /** * The database name the user is going to use *
* i.e. mydatabasename */ private String databaseName; /** * The database username *
* i.e. mydatabaseuser */ private String databaseUsername; /** * The database password *
* i.e. mydatabasepassword */ private String databasePassword; /** * The Connection */ private Connection connection; /** * Complete constructor * @param server The server hostname where the DMBS is located i.e. www.server.com; server.mycompany.com * @param port The port where the server is listening requests i.e. 1979 * @param dbmsDriver The DBMS driver i.e. com.informix.jdbc.IfxDriver or mijdbc * @param url The url i.e. jdbc:informix-sqli * @param databaseName The database username i.e. mydatabasename * @param databaseUsername The database username i.e. mydatabaseuser * @param databasePassword The database password i.e. mydatabasepassword */ public JUDBC(String server, int port, String dbmsDriver, String url, String databaseName, String databaseUsername, String databasePassword) { setServer(server); setPort(port); setDbmsDriver(dbmsDriver); setUrl(url); setDatabaseName(databaseName); setDatabaseUsername(databaseUsername); setDatabasePassword(databasePassword); } /** * Short constructor * @param server The server hostname where the DMBS is located i.e. www.server.com; server.mycompany.com * @param port The port where the server is listening requests i.e. 1979 * @param dbmsDriver The DBMS driver i.e. com.informix.jdbc.IfxDriver or mijdbc * @param url The url */ public JUDBC(String server, int port, String dbmsDriver, String url) { this(server, port, dbmsDriver, url, null, null, null); } /** * Short constructor * @param server The server hostname where the DMBS is located i.e. www.server.com; server.mycompany.com * @param dbmsDriver The DBMS driver i.e. com.informix.jdbc.IfxDriver or mijdbc * @param url The url */ public JUDBC(String server, String dbmsDriver, String url, String databaseName, String databaseUsername, String databasePassword) { setServer(server); setDbmsDriver(dbmsDriver); setUrl(url); setDatabaseName(databaseName); setDatabaseUsername(databaseUsername); setDatabasePassword(databasePassword); } /** * Short constructor * @param dbmsDriver The DBMS driver i.e. com.informix.jdbc.IfxDriver or mijdbc * @param url The url i.e. jdbc:informix-sqli * @param databaseUsername The database username i.e. mydatabaseuser * @param databasePassword The database password i.e. mydatabasepassword */ public JUDBC( String dbmsDriver, String url, String databaseUsername, String databasePassword) { setServer(null); setPort(0); setDbmsDriver(dbmsDriver); setUrl(url); setDatabaseName(null); setDatabaseUsername(databaseUsername); setDatabasePassword(databasePassword); } /** * Sets the server * @param server The server hostname where the DMBS is located i.e. www.server.com; server.mycompany.com */ public void setServer(String server) { this.server = server; } /** * Sets the port * @param port The port where the server is listening requests i.e. 1979 */ public void setPort(int port) { this.port = port; } /** * Sets the DBMS driver * @param dbmsDriver The DBMS driver i.e. com.informix.jdbc.IfxDriver or mijdbc */ public void setDbmsDriver(String dbmsDriver) { this.dbmsDriver = dbmsDriver; } /** * Sets the url * @param url The url i.e. jdbc:informix-sqli */ public void setUrl(String url) { this.url = url; } /** * Sets the DB name * @param databaseName The database username i.e. mydatabasename */ public void setDatabaseName(String databaseName) { this.databaseName = databaseName; } /** * Sets the DB username * @param databaseUsername The database username i.e. mydatabaseuser */ public void setDatabaseUsername(String databaseUsername) { this.databaseUsername = databaseUsername; } /** * Sets the DB password * @param databasePassword The database password i.e. mydatabasepassword */ public void setDatabasePassword(String databasePassword) { this.databasePassword = databasePassword; } /** * Gets the server name * @return The server name */ public String getServer() { return (server); } /** * Gets the port used in the connection * @return The port used in the connection */ public int getPort() { return (port); } /** * Gets the DBMS used driver * @return The DBMS used driver */ public String getDbmsDriver() { return (dbmsDriver); } /** * Gets the used URL (not a common URL) * @return The used URL (not a common URL) */ public String getUrl() { return (url); } /** * Gets the name of the used database * @return The name of the used database; null if it has not been set yet */ public String getDatabaseName() { return (databaseName); } /** * Gets the database username * @return The database username; null if it has not been set yet */ public String getDatabaseUsername() { return (databaseUsername); } /** * Gets the database password; null is it has not been set. * @return The database password; null if it has not been set yet */ public String getDatabasePassword() { return (databasePassword); } /** * Open the connection with the DBMS server * @exception SQLException If the connection fails to open */ public void openConnection() throws SQLException, ClassNotFoundException { if (dbmsDriver.indexOf("odbc")!=-1) openODBCConnection(); else { //the complete URL is built in the following way: // url://server:port/databasename // i.e. jdbc:dbms://www.myserver.com:1979/mydatabasename StringBuffer completeURL = new StringBuffer(url); if(server!=null && port!=0 && databaseName!=null) { completeURL.append("://"); completeURL.append(server); completeURL.append(":"); completeURL.append(port); completeURL.append("/"); completeURL.append(databaseName); } Class.forName(dbmsDriver); //entablish the connection connection = DriverManager.getConnection(completeURL.toString(), databaseUsername, databasePassword ); } } /** * Open the connection with the DBMS server via ODBC * @exception SQLException If the connection fails to open */ public void openODBCConnection() throws SQLException, ClassNotFoundException { //the complete URL is built in the following way: // url:databasename // i.e. jdbc:odbc:mydatabasename StringBuffer completeURL = new StringBuffer(url); completeURL.append(":"); completeURL.append(databaseName); Class.forName(dbmsDriver); //entablish the connection connection = DriverManager.getConnection(completeURL.toString(), databaseUsername, databasePassword ); } /** * Close the connection with the DBMS server. * @exception SQLException If the connection fails to close. */ public void closeConnection() throws SQLException { //close the connection connection.close(); } /** * Return current connection for user manipulation */ public Connection getConnection() { return connection; } /** * Change current connection to the another different */ public void setConnection(Connection connection) { this.connection=connection; } /** * Makes all changes made since the previous commit/rollback permanent * and releases any database locks currently held by the Connection. * @exception SQLException if a database access error occurs */ public void commit() throws SQLException { connection.commit(); } /** * Sets this connection's auto-commit mode. If a connection is in auto-commit * mode, then all its SQL statements will be executed and committed as individual * transactions. Otherwise, its SQL statements are grouped into transactions * that are terminated by a call to either the method commit or the method * rollback. By default, new connections are in auto-commit mode. The commit * occurs when the statement completes or the next execute occurs, whichever * comes first. In the case of statements returning a ResultSet, the statement * completes when the last row of the ResultSet has been retrieved or the * ResultSet has been closed. In advanced cases, a single statement may return * multiple results as well as output parameter values. In these cases the * commit occurs when all results and output parameter values have been retrieved. * @param auto autoCommit true enables auto-commit; false disables auto-commit. * @exception SQLException if a database access error occurs */ public void setAutoCommit(boolean auto) throws SQLException { connection.setAutoCommit(auto); } /** * Gets the current auto-commit state. * @return the current state of auto-commit mode * @exception if a database access error occurs */ public boolean getAutoCommit() throws SQLException { return (connection.getAutoCommit()); } /** * Drops all changes made since the previous * commit/rollback and releases any database locks currently held * by this Connection. This method should be used only when auto- * commit has been disabled. * * @exception SQLException if a database access error occurs * @see #setAutoCommit */ public void rollback() throws SQLException { connection.rollback(); } /** * Creates a table and stores it into the DB * @param tableName The table name * @param data The vector that contains the SQLArguments * @exception SQLException if a database access error occurs * @see SQLArguments */ public void createTable(String tableName, Vector arguments) throws SQLException { //gets the number of arguments in the vector int vectorSize = arguments.size(); //creates the SQL query in the following way: // create table TABLENAME(ARGUMENT NAME ARGUMENT TYPE, ...); StringBuffer query = new StringBuffer("create table "); query.append(tableName); query.append("("); //for each argument in the vector for(int i=0;i ?@A BCD `EFG cH eI eJ eK cL cMNOPQ R  S TUV WX WY IZ[ W\]^_ ` abc defgserverLjava/lang/String;portI dbmsDriverurl databaseNamedatabaseUsernamedatabasePassword connectionLjava/sql/Connection;p(Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)VCodeLineNumberTable:(Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;)Vo(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)VK(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V setServer(Ljava/lang/String;)VsetPort(I)V setDbmsDriversetUrlsetDatabaseNamesetDatabaseUsernamesetDatabasePassword getServer()Ljava/lang/String;getPort()I getDbmsDrivergetUrlgetDatabaseNamegetDatabaseUsernamegetDatabasePasswordopenConnection()V ExceptionshiopenODBCConnectioncloseConnection getConnection()Ljava/sql/Connection; setConnection(Ljava/sql/Connection;)Vcommit setAutoCommit(Z)V getAutoCommit()Zrollback createTable'(Ljava/lang/String;Ljava/util/Vector;)V'(Ljava/lang/String;Ljava/lang/String;)V deleteTable insertValues'(Ljava/lang/String;Ljava/lang/String;)I'(Ljava/lang/String;Ljava/util/Vector;)I deleteValuesdeleteAllValues(Ljava/lang/String;)I selectValuesM(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)Ljava/sql/ResultSet;M(Ljava/lang/String;Ljava/util/Vector;Ljava/lang/String;Z)Ljava/sql/ResultSet;:(Ljava/lang/String;Ljava/util/Vector;)Ljava/sql/ResultSet;:(Ljava/lang/String;Ljava/lang/String;)Ljava/sql/ResultSet;selectDistinctValuesL(Ljava/lang/String;Ljava/util/Vector;Ljava/lang/String;)Ljava/sql/ResultSet;selectAllValues((Ljava/lang/String;)Ljava/sql/ResultSet;getMaxColumnNumericValue'(Ljava/lang/String;Ljava/lang/String;)D getRowsNumber existValue'(Ljava/lang/String;Ljava/lang/String;)ZdefinePermissions9(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V executeQuerysimpleExecuteQuery executeUpdateupdateAllValues updateValues9(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I9(Ljava/lang/String;Ljava/util/Vector;Ljava/lang/String;)I SourceFile JUDBC.java odbc j java/lang/StringBuffer :// kl: km/n op qr s t u v w create table ( xy"mx/udlap/ict/database/SQLArguments z {|java/lang/String,) }~  drop table   insert into  values ( ) values (?  java/lang/Byte  java/lang/Integer  java/lang/Long  java/lang/Boolean  java/lang/Float  java/lang/Double   java/sql/Date java/lang/Short   java/sql/Time java/sql/Timestamp  java/io/FileInputStream java/io/File   java/io/FileNotFoundException java/io/InputStream java/io/ByteArrayInputStream java/lang/Exceptionjava/io/ByteArrayOutputStreamjava/io/ObjectOutputStream     delete from  where select  distinct  from *max(   count(*) grant  on  to  update  set  = ? mx/udlap/ict/database/JUDBCjava/lang/Objectjava/sql/SQLException java/lang/ClassNotFoundExceptionindexOfappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;(I)Ljava/lang/StringBuffer;java/lang/ClassforName%(Ljava/lang/String;)Ljava/lang/Class;toStringjava/sql/DriverManagerM(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/sql/Connection;java/sql/Connectionclosejava/util/Vectorsize elementAt(I)Ljava/lang/Object;getNamegetValue()Ljava/lang/Object;prepareStatement0(Ljava/lang/String;)Ljava/sql/PreparedStatement;java/sql/PreparedStatementcreateStatement()Ljava/sql/Statement;java/sql/StatementgetArgumentValueType()C setString(ILjava/lang/String;)V byteValue()BsetByte(IB)VintValuesetInt(II)V longValue()JsetLong(IJ)V booleanValue setBoolean(IZ)V floatValue()FsetFloat(IF)V doubleValue()D setDouble(ID)VsetDate(ILjava/sql/Date;)V shortValue()SsetShort(IS)VsetTime(ILjava/sql/Time;)V setTimestamp(ILjava/sql/Timestamp;)V setObject(ILjava/lang/Object;)V(Ljava/io/File;)VlengthsetBinaryStream(ILjava/io/InputStream;I)Vjava/lang/ThrowableprintStackTrace mx/udlap/ict/database/SQLUtilitygetStreamAsArray(Ljava/io/InputStream;)[B([B)V(Ljava/io/OutputStream;)V writeObject(Ljava/lang/Object;)Vflush toByteArray()[Bjava/sql/ResultSetnext getDouble(I)D MIN_VALUEDgetInt(I)Iexecute(Ljava/lang/String;)Z!4d,**+**-****&  %+) *+-   Z&**+*,*-***" %a)****+*,**-*&  "("*+  "*  "*+  "*+  "*+ "*+ "*+   * * * $* -*6*?*H*  *oY* L* A* :*3+W+* W+W+* W+W+*W* W*+**6 T U[ \5^<_E`LaUb\ceemgnd8Y* L+W+*W* W*+**z {|~$7& *  *"*+ & *   ' *!  " *"& *#  ,$>Y%:+W&W6E,'()W*W,'(+,Wd -W.W*/:0W>%7?T\dmup<Y%N-+W-&W-,W-.W*-/:0W"   $ 3 ;bN&Y1M,+W*2N-,3W % k;Y4N-+W-5W-,W-.W*2:-3. /012$4/6J,$>Y4:+W&W6,,'(:)Wd -W6W67Wd -W.W*/:6n,'(:  8Xaz#X XX9~XhXXwRXXXXX ` +,9` +:;<` +=>?` +@AB` +CDEj` +FGHQ` +IJK8` +LM"` +NOP ` +QR` +ST` +U: V6 WY +XY:  +XZ6 `  [:  ]:  +^:  _: ``Y a [Z:  ]PcYd: eY f: +gh`Y ia:` j[ :]0Iwz\bbADHIJM%P0R;TCUKMTX\[b]j_r`z[cehkn(q;r>tTuWwmxpz{}~,/?BEIZhz h`4YkN-+W-lW-,W*2:-3 (I%YkM,+W*2N-,3 YYm: nW,WoW+W-lW-W*2:p.     ' .2:AL QYq:,$66*,',:Wd -W*+-r& , -02 3(51690C9! *+,sH! *+,rW! *+,-sj! *+,rx" *+trY5*+Yqu,.rN-v -wx )1B*+yrM,v ,zV ;*+t,rN-v IY{:-W|W+W}W,W*2:~W&  !)0;H.*2M,+p  G*2M,+pWN-] b 3*+/M,0W  *+,LY:+WW,W-lW-W*2:3& 1 234!5%7-84;?= *+,M,$6Y:+WW61,'()WWd -W-lW-W*/:6o,'(:  8Yaz$Y YY:YiYYxSYYYYY ` +,9` +:;<` +=>?` +@AB` +CDEj` +FGHQ` +IJK8` +LM"` +NOP ` +QR` +ST` +U: V6 WY +XY:  +XZ6 `  [:  ]:  +^:  _: ``Y a [Z:  ]PcYd: eY f: +gh`Y ia:` j[ :]0-[^\kbb=`def i&k8l@oIpQi[t_vgwn{~} "8;QTjm#&)->L^hku|}PK *+(mx/udlap/ict/database/SQLArguments.class-J A B C D E F GHISTRINGC ConstantValuesBYTEbINTEGERiLONGlBOOLEANoFLOATfDOUBLEdDATEaSHORThTIMEt TIME_STAMPmOBJECTjFILEnSTREAMr SERIALIZABLEznameLjava/lang/String;valueLjava/lang/Object;argumentValueType((Ljava/lang/String;Ljava/lang/Object;C)VCodeLineNumberTable'(Ljava/lang/String;Ljava/lang/Object;)V(Ljava/lang/String;)V()VsetNamesetValue(Ljava/lang/Object;C)VgetName()Ljava/lang/String;getValue()Ljava/lang/Object;getArgumentValueType()C SourceFileSQLArguments.java /5 64 78 /0 *+ ,- . "mx/udlap/ict/database/SQLArgumentsjava/lang/Object!                        !"  #$  %&  '(  )*+,-. /014**+*,2 /31% *+,j2 /41% *+j2 /51% *j2 641"*+2 781+ *+*2 9:1*2;<1*2=>1*2?@PK *Uע &mx/udlap/ict/database/SQLUtility.class- 1ST S UV WX Y 0Z [\ []^ _` 0a _b c d ef 0g 0hi S 0j 0kl Sm nop qrs t u vwxy z {| }~ LIKECONDITIONI ConstantValueMATCHCONDITION ANDCONDITION ORCONDITION()VCodeLineNumberTablegetImageAsArray(Ljava/io/InputStream;)[BgetImage'(Ljava/io/InputStream;)Ljava/awt/Image; getImageIcon.(Ljava/io/InputStream;)Ljavax/swing/ImageIcon;getStreamAsArray getObject)(Ljava/io/InputStream;)Ljava/lang/Object;getLikeMatchCondition'(Ljava/lang/String;I)Ljava/lang/String;*(Ljava/lang/String;IZZZ)Ljava/lang/String;getLikeCondition&(Ljava/lang/String;)Ljava/lang/String;)(Ljava/lang/String;ZZZ)Ljava/lang/String;getMatchesCondition*(Ljava/lang/String;ZZZI)Ljava/lang/String; SourceFileSQLUtility.java <=java/io/ByteArrayOutputStream java/lang/Exception @A javax/swing/ImageIcon <java/io/ByteArrayInputStream FAjava/io/ObjectInputStream <  = LM OMjava/lang/String LN OPjava/lang/StringBuffer like  '%%' '% <  matches  '*[ ] *' *'  mx/udlap/ict/database/SQLUtilityjava/lang/Objectjava/io/InputStreamread()Iwrite(I)V toByteArray()[Bjava/awt/ToolkitgetDefaultToolkit()Ljava/awt/Toolkit; createImage([B)Ljava/awt/Image;([B)V(Ljava/io/InputStream;)V readObject()Ljava/lang/Object;java/lang/ThrowableprintStackTraceappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;toString()Ljava/lang/String; toUpperCase(Ljava/lang/String;)V toLowerCasecharAt(I)C(C)Ljava/lang/StringBuffer;length!01234563478349:34; <=>*?- @A>e)YL*=+N+  ?"CG KNOQ U$Y BC>) *L + ? mo DE>**L Y+ ?  FA>*? GH>Q! Y*LY+M,L+?  IJ>R.% **Y?!& IK>[7.$**Y?%/ LM>< Y*L+ ?  LN>JY: W!W "W*W "W!W ?. !)04< D OM>fY*#$LY*%$MY&'N6$-(+)*,)*+W*,--W- ?" *0NZa OP>: һY*#$:Y*%$:Y: &W!W .W96'()*)*+W*,֧<(W6  )* )*W  *,+W .W/W ?V/ 04#5'6/97:;;C=I>O?p>ABCBDHIJLQRPK '* META-INF/PK '*35DD+META-INF/MANIFEST.MFPK *mx/PK * mx/udlap/PK * mx/udlap/ict/PK 55*` VFVFmx/udlap/ict/gpl.txtPK *Gmx/udlap/ict/util/PK 55* <>"Gmx/udlap/ict/util/FileHandler.javaPK 55*cc#[mx/udlap/ict/util/StaticApplet.javaPK *]r#Pcmx/udlap/ict/util/FileHandler.classPK ***$Akmx/udlap/ict/util/StaticApplet.classPK *mmx/udlap/ict/database/PK 55*\\qq'mmx/udlap/ict/database/SQLArguments.javaPK 55* ' '%mx/udlap/ict/database/SQLUtility.javaPK *3ӳ mx/udlap/ict/database/JUDBC.javaPK *;?L..!Umx/udlap/ict/database/JUDBC.classPK *+(Єmx/udlap/ict/database/SQLArguments.classPK *Uע &mx/udlap/ict/database/SQLUtility.classPK