|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.slamb.axamol.library.Library
public class Library
Library of SQL statements stored in XML. This mostly just handles parsing. You need a LibraryConnection to use a Library.
| Field Summary | |
|---|---|
static java.lang.String |
NS_LIBRARY
|
| Constructor Summary | |
|---|---|
Library(java.lang.Class theClass,
java.lang.String resourceName)
Opens a library as a resource in the given class's ClassLoader instance. |
|
Library(java.io.File libraryFile)
Opens a library from a File. |
|
Library(org.xml.sax.InputSource source)
Opens a library from an InputSource. |
|
| Method Summary | |
|---|---|
void |
clearTimings()
Resets all peformance timings for each of this library's statements. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String NS_LIBRARY
| Constructor Detail |
|---|
public Library(java.io.File libraryFile)
java.lang.RuntimeException - if unable to parse the library.
This is a RuntimeException because library files are considered part of the project's code.
Thus, this is analagous to ClassFormatError.public Library(org.xml.sax.InputSource source)
java.lang.RuntimeException - if unable to find or parse the library.
This is a RuntimeException because library files are considered part of the project's code.
Thus, this is analagous to ClassFormatError.
public Library(java.lang.Class theClass,
java.lang.String resourceName)
theClass - The class whose ClassLoader should be used to load the
resource. Typically, this is the caller's class. It can be any
class in the same jar file as the library.resourceName - The name of the resource, with no prefix. Slashes separate
package names. Should have a ".xml" suffix.
java.lang.RuntimeException - if unable to find, load, or parse the library. This is a
RuntimeException because library files are considered part of
the project's code. Thus, this is analagous to
ClassNotFoundError or ClassFormatError.| Method Detail |
|---|
public void clearTimings()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||