文档介绍:×÷Õߣºsonymusic
email: sonymusic@
ÈÕÆÚ£º2001-5-17 11:36:03
//Îļþ£º
.;
import .*;
import .*;
public abstract class DbConnectionProvider {
/** Dummy values. Override in subclasses. **/
private static final String NAME = "";
private static final String DESCRIPTION = "";
private static final String AUTHOR = "";
private static final int MAJOR_VERSION = 0;
private static final int MINOR_VERSION = 0;
private static final boolean POOLED = false;
/**
* Returns the name of the connection provider.
*/
public String getName() {
return NAME;
}
/**
* Returns a description of the connection provider.
*/
public String getDescription() {
return DESCRIPTION;
}
/**
* Returns the author of the connection provider.
*/
public String getAuthor() {
return AUTHOR;
}
/**
* Returns the major version of the connection provider, . the 1 in .
*/
public int getMajorVersion() {
return MAJOR_VERSION;
}
public int getMinorVersion() {
return MINOR_VERSION;
}
/**
* Returns true if this connection provider provides connections out
* of a connection pool.
*/
public boolean isPooled() {
return POOLED;
}
/**
* Returns a database connection. When a ponent is done with a
* connection, it will call the close method of that connection. Therefore,
* connection poo