1. Java Advance 4/deleteQuery.PNG
Java Advance 4/deleteQuerySuccess.PNG
Java Advance 4/insertQuery.PNG
Java Advance 4/insertQuerySuccess.PNG
Java Advance 4/Instructions.docx
1. Open netBean Project
2. Export war file or use exported file I provided
3. Go to webapps directory of Apache Tomcat.
4. Paste war file there
5. Go to web browser and enter url :
http://localhost:8080/wildenProj/myservlet
6. 8080 is a port that my tomcat is using
Java Advance 4/Project.zip
wildenProj/build/web/index.html
Customer Number:
Customer Name:
Product Name:
Product Quantity:
2. The data from servlet: ${message}
List productValues ${listProdValues}
List CustomerValues ${listCustValues}
wildenProj/build/web/META-INF/context.xml
wildenProj/build/web/META-INF/MANIFEST.MF
Manifest-Version: 1.0
wildenProj/build/web/WEB-
INF/classes/.netbeans_automatic_build
wildenProj/build/web/WEB-
INF/classes/.netbeans_update_resources
wildenProj/build/web/WEB-
INF/classes/myservlet.classpublicsynchronizedclass myservlet
extends javax.servlet.http.HttpServlet {
public void myservlet();
protected void
processRequest(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse) throws
javax.servlet.ServletException, java.io.IOException;
protected void doGet(javax.servlet.http.HttpServletRequest,
3. javax.servlet.http.HttpServletResponse) throws
javax.servlet.ServletException, java.io.IOException;
protected void doPost(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse) throws
javax.servlet.ServletException, java.io.IOException;
public String getServletInfo();
}
wildenProj/build/web/WEB-INF/lib/mysql-connector-java-
5.1.22-bin.jar
META-INF/MANIFEST.MF
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.8.2
Created-By: 1.5.0_22-b03 (Sun Microsystems Inc.)
Built-By: pb2user
Bundle-Vendor: Sun Microsystems Inc.
Bundle-Classpath: .
Bundle-Version: 5.1.22
Bundle-Name: Sun Microsystems' JDBC Driver for MySQL
Bundle-ManifestVersion: 2
Bundle-SymbolicName: com.mysql.jdbc
Export-Package:
com.mysql.jdbc;version="5.1.22";uses:="com.mysql.jdbc.
9. privatesynchronized void checkClosed() throws
java.sql.SQLException;
}
com/mysql/jdbc/BlobFromLocator$LocatorInputStream.classpac
kage com.mysql.jdbc;
synchronizedclass BlobFromLocator$LocatorInputStream
extends java.io.InputStream {
long currentPositionInBlob;
long length;
java.sql.PreparedStatement pStmt;
void
BlobFromLocator$LocatorInputStream(BlobFromLocator)
throws java.sql.SQLException;
void
BlobFromLocator$LocatorInputStream(BlobFromLocator, long,
long) throws java.sql.SQLException;
public int read() throws java.io.IOException;
public int read(byte[], int, int) throws java.io.IOException;
public int read(byte[]) throws java.io.IOException;
public void close() throws java.io.IOException;
}
com/mysql/jdbc/BlobFromLocator.classpackage
com.mysql.jdbc;
publicsynchronizedclass BlobFromLocator implements
java.sql.Blob {
private java.util.List primaryKeyColumns;
private java.util.List primaryKeyValues;
private ResultSetImpl creatorResultSet;
private String blobColumnName;
private String tableName;
private int numColsInResultSet;
private int numPrimaryKeys;
10. private String quotedId;
private ExceptionInterceptor exceptionInterceptor;
void BlobFromLocator(ResultSetImpl, int,
ExceptionInterceptor) throws java.sql.SQLException;
private void notEnoughInformationInQuery() throws
java.sql.SQLException;
public java.io.OutputStream setBinaryStream(long) throws
java.sql.SQLException;
public java.io.InputStream getBinaryStream() throws
java.sql.SQLException;
public int setBytes(long, byte[], int, int) throws
java.sql.SQLException;
public int setBytes(long, byte[]) throws
java.sql.SQLException;
public byte[] getBytes(long, int) throws
java.sql.SQLException;
public long length() throws java.sql.SQLException;
public long position(java.sql.Blob, long) throws
java.sql.SQLException;
public long position(byte[], long) throws
java.sql.SQLException;
public void truncate(long) throws java.sql.SQLException;
java.sql.PreparedStatement createGetBytesStatement() throws
java.sql.SQLException;
byte[] getBytesInternal(java.sql.PreparedStatement, long, int)
throws java.sql.SQLException;
public void free() throws java.sql.SQLException;
public java.io.InputStream getBinaryStream(long, long)
throws java.sql.SQLException;
}
com/mysql/jdbc/Buffer.classpackage com.mysql.jdbc;
publicsynchronizedclass Buffer {
staticfinal int MAX_BYTES_TO_DUMP = 512;
staticfinal int NO_LENGTH_LIMIT = -1;
11. staticfinal long NULL_LENGTH = -1;
private int bufLength;
private byte[] byteBuffer;
private int position;
protected boolean wasMultiPacket;
public void Buffer(byte[]);
void Buffer(int);
final void clear();
final void dump();
final String dump(int);
final String dumpClampedBytes(int);
final void dumpHeader();
final void dumpNBytes(int, int);
final void ensureCapacity(int) throws java.sql.SQLException;
public int fastSkipLenString();
public void fastSkipLenByteArray();
protectedfinal byte[] getBufferSource();
public int getBufLength();
public byte[] getByteBuffer();
final byte[] getBytes(int);
byte[] getBytes(int, int);
int getCapacity();
public java.nio.ByteBuffer getNioBuffer();
public int getPosition();
final boolean isLastDataPacket();
final boolean isAuthMethodSwitchRequestPacket();
final boolean isOKPacket();
final boolean isRawPacket();
final long newReadLength();
final byte readByte();
final byte readByte(int);
final long readFieldLength();
final int readInt();
final int readIntAsLong();
final byte[] readLenByteArray(int);
final long readLength();
12. final long readLong();
final int readLongInt();
final long readLongLong();
final int readnBytes();
publicfinal String readString();
final String readString(String, ExceptionInterceptor) throws
java.sql.SQLException;
final String readString(String, ExceptionInterceptor, int)
throws java.sql.SQLException;
public void setBufLength(int);
public void setByteBuffer(byte[]);
public void setPosition(int);
public void setWasMultiPacket(boolean);
public String toString();
public String toSuperString();
public boolean wasMultiPacket();
publicfinal void writeByte(byte) throws
java.sql.SQLException;
publicfinal void writeBytesNoNull(byte[]) throws
java.sql.SQLException;
final void writeBytesNoNull(byte[], int, int) throws
java.sql.SQLException;
final void writeDouble(double) throws
java.sql.SQLException;
final void writeFieldLength(long) throws
java.sql.SQLException;
final void writeFloat(float) throws java.sql.SQLException;
final void writeInt(int) throws java.sql.SQLException;
final void writeLenBytes(byte[]) throws
java.sql.SQLException;
final void writeLenString(String, String, String,
SingleByteCharsetConverter, boolean, MySQLConnection)
throws java.io.UnsupportedEncodingException,
java.sql.SQLException;
final void writeLong(long) throws java.sql.SQLException;
final void writeLongInt(int) throws java.sql.SQLException;
13. final void writeLongLong(long) throws
java.sql.SQLException;
final void writeString(String) throws java.sql.SQLException;
final void writeString(String, String, MySQLConnection)
throws java.sql.SQLException;
final void writeStringNoNull(String) throws
java.sql.SQLException;
final void writeStringNoNull(String, String, String, boolean,
MySQLConnection) throws
java.io.UnsupportedEncodingException, java.sql.SQLException;
}
com/mysql/jdbc/BufferRow.classpackage com.mysql.jdbc;
publicsynchronizedclass BufferRow extends ResultSetRow {
private Buffer rowFromServer;
private int homePosition;
private int preNullBitmaskHomePosition;
private int lastRequestedIndex;
private int lastRequestedPos;
private Field[] metadata;
private boolean isBinaryEncoded;
private boolean[] isNull;
private java.util.List openStreams;
public void BufferRow(Buffer, Field[], boolean,
ExceptionInterceptor) throws java.sql.SQLException;
publicsynchronized void closeOpenStreams();
private int findAndSeekToOffset(int) throws
java.sql.SQLException;
private int findAndSeekToOffsetForBinaryEncoding(int)
throws java.sql.SQLException;
publicsynchronized java.io.InputStream
getBinaryInputStream(int) throws java.sql.SQLException;
public byte[] getColumnValue(int) throws
java.sql.SQLException;
public int getInt(int) throws java.sql.SQLException;
14. public long getLong(int) throws java.sql.SQLException;
public double getNativeDouble(int) throws
java.sql.SQLException;
public float getNativeFloat(int) throws
java.sql.SQLException;
public int getNativeInt(int) throws java.sql.SQLException;
public long getNativeLong(int) throws
java.sql.SQLException;
public short getNativeShort(int) throws
java.sql.SQLException;
public java.sql.Timestamp getNativeTimestamp(int,
java.util.Calendar, java.util.TimeZone, boolean,
MySQLConnection, ResultSetImpl) throws
java.sql.SQLException;
public java.io.Reader getReader(int) throws
java.sql.SQLException;
public String getString(int, String, MySQLConnection)
throws java.sql.SQLException;
public java.sql.Time getTimeFast(int, java.util.Calendar,
java.util.TimeZone, boolean, MySQLConnection,
ResultSetImpl) throws java.sql.SQLException;
public java.sql.Timestamp getTimestampFast(int,
java.util.Calendar, java.util.TimeZone, boolean,
MySQLConnection, ResultSetImpl) throws
java.sql.SQLException;
public boolean isFloatingPointNumber(int) throws
java.sql.SQLException;
public boolean isNull(int) throws java.sql.SQLException;
public long length(int) throws java.sql.SQLException;
public void setColumnValue(int, byte[]) throws
java.sql.SQLException;
public ResultSetRow setMetadata(Field[]) throws
java.sql.SQLException;
private void setupIsNullBitmask() throws
java.sql.SQLException;
public java.sql.Date getDateFast(int, MySQLConnection,
15. ResultSetImpl, java.util.Calendar) throws
java.sql.SQLException;
public java.sql.Date getNativeDate(int, MySQLConnection,
ResultSetImpl, java.util.Calendar) throws
java.sql.SQLException;
public Object getNativeDateTimeValue(int,
java.util.Calendar, int, int, java.util.TimeZone, boolean,
MySQLConnection, ResultSetImpl) throws
java.sql.SQLException;
public java.sql.Time getNativeTime(int, java.util.Calendar,
java.util.TimeZone, boolean, MySQLConnection,
ResultSetImpl) throws java.sql.SQLException;
public int getBytesSize();
}
com/mysql/jdbc/ByteArrayRow.classpackage com.mysql.jdbc;
publicsynchronizedclass ByteArrayRow extends ResultSetRow {
byte[][] internalRowData;
public void ByteArrayRow(byte[][], ExceptionInterceptor);
public byte[] getColumnValue(int) throws
java.sql.SQLException;
public void setColumnValue(int, byte[]) throws
java.sql.SQLException;
public String getString(int, String, MySQLConnection)
throws java.sql.SQLException;
public boolean isNull(int) throws java.sql.SQLException;
public boolean isFloatingPointNumber(int) throws
java.sql.SQLException;
public long length(int) throws java.sql.SQLException;
public int getInt(int);
public long getLong(int);
public java.sql.Timestamp getTimestampFast(int,
java.util.Calendar, java.util.TimeZone, boolean,
MySQLConnection, ResultSetImpl) throws
java.sql.SQLException;
16. public double getNativeDouble(int) throws
java.sql.SQLException;
public float getNativeFloat(int) throws
java.sql.SQLException;
public int getNativeInt(int) throws java.sql.SQLException;
public long getNativeLong(int) throws
java.sql.SQLException;
public short getNativeShort(int) throws
java.sql.SQLException;
public java.sql.Timestamp getNativeTimestamp(int,
java.util.Calendar, java.util.TimeZone, boolean,
MySQLConnection, ResultSetImpl) throws
java.sql.SQLException;
public void closeOpenStreams();
public java.io.InputStream getBinaryInputStream(int) throws
java.sql.SQLException;
public java.io.Reader getReader(int) throws
java.sql.SQLException;
public java.sql.Time getTimeFast(int, java.util.Calendar,
java.util.TimeZone, boolean, MySQLConnection,
ResultSetImpl) throws java.sql.SQLException;
public java.sql.Date getDateFast(int, MySQLConnection,
ResultSetImpl, java.util.Calendar) throws
java.sql.SQLException;
public Object getNativeDateTimeValue(int,
java.util.Calendar, int, int, java.util.TimeZone, boolean,
MySQLConnection, ResultSetImpl) throws
java.sql.SQLException;
public java.sql.Date getNativeDate(int, MySQLConnection,
ResultSetImpl, java.util.Calendar) throws
java.sql.SQLException;
public java.sql.Time getNativeTime(int, java.util.Calendar,
java.util.TimeZone, boolean, MySQLConnection,
ResultSetImpl) throws java.sql.SQLException;
public int getBytesSize();
}
22. protected String fixParameterName(String) throws
java.sql.SQLException;
public java.sql.Array getArray(int) throws
java.sql.SQLException;
public java.sql.Array getArray(String) throws
java.sql.SQLException;
public java.math.BigDecimal getBigDecimal(int) throws
java.sql.SQLException;
public java.math.BigDecimal getBigDecimal(int, int) throws
java.sql.SQLException;
public java.math.BigDecimal getBigDecimal(String) throws
java.sql.SQLException;
public java.sql.Blob getBlob(int) throws
java.sql.SQLException;
public java.sql.Blob getBlob(String) throws
java.sql.SQLException;
public boolean getBoolean(int) throws
java.sql.SQLException;
public boolean getBoolean(String) throws
java.sql.SQLException;
public byte getByte(int) throws java.sql.SQLException;
public byte getByte(String) throws java.sql.SQLException;
public byte[] getBytes(int) throws java.sql.SQLException;
public byte[] getBytes(String) throws java.sql.SQLException;
public java.sql.Clob getClob(int) throws
java.sql.SQLException;
public java.sql.Clob getClob(String) throws
java.sql.SQLException;
public java.sql.Date getDate(int) throws
java.sql.SQLException;
public java.sql.Date getDate(int, java.util.Calendar) throws
java.sql.SQLException;
public java.sql.Date getDate(String) throws
java.sql.SQLException;
public java.sql.Date getDate(String, java.util.Calendar)
throws java.sql.SQLException;
23. public double getDouble(int) throws java.sql.SQLException;
public double getDouble(String) throws
java.sql.SQLException;
public float getFloat(int) throws java.sql.SQLException;
public float getFloat(String) throws java.sql.SQLException;
public int getInt(int) throws java.sql.SQLException;
public int getInt(String) throws java.sql.SQLException;
public long getLong(int) throws java.sql.SQLException;
public long getLong(String) throws java.sql.SQLException;
protected int getNamedParamIndex(String, boolean) throws
java.sql.SQLException;
public Object getObject(int) throws java.sql.SQLException;
public Object getObject(int, java.util.Map) throws
java.sql.SQLException;
public Object getObject(String) throws
java.sql.SQLException;
public Object getObject(String, java.util.Map) throws
java.sql.SQLException;
public Object getObject(int, Class) throws
java.sql.SQLException;
public Object getObject(String, Class) throws
java.sql.SQLException;
protected ResultSetInternalMethods getOutputParameters(int)
throws java.sql.SQLException;
public java.sql.ParameterMetaData getParameterMetaData()
throws java.sql.SQLException;
public java.sql.Ref getRef(int) throws
java.sql.SQLException;
public java.sql.Ref getRef(String) throws
java.sql.SQLException;
public short getShort(int) throws java.sql.SQLException;
public short getShort(String) throws java.sql.SQLException;
public String getString(int) throws java.sql.SQLException;
public String getString(String) throws
java.sql.SQLException;
public java.sql.Time getTime(int) throws
24. java.sql.SQLException;
public java.sql.Time getTime(int, java.util.Calendar) throws
java.sql.SQLException;
public java.sql.Time getTime(String) throws
java.sql.SQLException;
public java.sql.Time getTime(String, java.util.Calendar)
throws java.sql.SQLException;
public java.sql.Timestamp getTimestamp(int) throws
java.sql.SQLException;
public java.sql.Timestamp getTimestamp(int,
java.util.Calendar) throws java.sql.SQLException;
public java.sql.Timestamp getTimestamp(String) throws
java.sql.SQLException;
public java.sql.Timestamp getTimestamp(String,
java.util.Calendar) throws java.sql.SQLException;
public java.net.URL getURL(int) throws
java.sql.SQLException;
public java.net.URL getURL(String) throws
java.sql.SQLException;
protected int mapOutputParameterIndexToRsIndex(int)
throws java.sql.SQLException;
public void registerOutParameter(int, int) throws
java.sql.SQLException;
public void registerOutParameter(int, int, int) throws
java.sql.SQLException;
public void registerOutParameter(int, int, String) throws
java.sql.SQLException;
public void registerOutParameter(String, int) throws
java.sql.SQLException;
public void registerOutParameter(String, int, int) throws
java.sql.SQLException;
public void registerOutParameter(String, int, String) throws
java.sql.SQLException;
private void retrieveOutParams() throws
java.sql.SQLException;
public void setAsciiStream(String, java.io.InputStream, int)
25. throws java.sql.SQLException;
public void setBigDecimal(String, java.math.BigDecimal)
throws java.sql.SQLException;
public void setBinaryStream(String, java.io.InputStream, int)
throws java.sql.SQLException;
public void setBoolean(String, boolean) throws
java.sql.SQLException;
public void setByte(String, byte) throws
java.sql.SQLException;
public void setBytes(String, byte[]) throws
java.sql.SQLException;
public void setCharacterStream(String, java.io.Reader, int)
throws java.sql.SQLException;
public void setDate(String, java.sql.Date) throws
java.sql.SQLException;
public void setDate(String, java.sql.Date, java.util.Calendar)
throws java.sql.SQLException;
public void setDouble(String, double) throws
java.sql.SQLException;
public void setFloat(String, float) throws
java.sql.SQLException;
private void setInOutParamsOnServer() throws
java.sql.SQLException;
public void setInt(String, int) throws java.sql.SQLException;
public void setLong(String, long) throws
java.sql.SQLException;
public void setNull(String, int) throws
java.sql.SQLException;
public void setNull(String, int, String) throws
java.sql.SQLException;
public void setObject(String, Object) throws
java.sql.SQLException;
public void setObject(String, Object, int) throws
java.sql.SQLException;
public void setObject(String, Object, int, int) throws
java.sql.SQLException;
26. private void setOutParams() throws java.sql.SQLException;
public void setShort(String, short) throws
java.sql.SQLException;
public void setString(String, String) throws
java.sql.SQLException;
public void setTime(String, java.sql.Time) throws
java.sql.SQLException;
public void setTime(String, java.sql.Time, java.util.Calendar)
throws java.sql.SQLException;
public void setTimestamp(String, java.sql.Timestamp) throws
java.sql.SQLException;
public void setTimestamp(String, java.sql.Timestamp,
java.util.Calendar) throws java.sql.SQLException;
public void setURL(String, java.net.URL) throws
java.sql.SQLException;
public boolean wasNull() throws java.sql.SQLException;
public int[] executeBatch() throws java.sql.SQLException;
protected int getParameterIndexOffset();
public void setAsciiStream(String, java.io.InputStream)
throws java.sql.SQLException;
public void setAsciiStream(String, java.io.InputStream, long)
throws java.sql.SQLException;
public void setBinaryStream(String, java.io.InputStream)
throws java.sql.SQLException;
public void setBinaryStream(String, java.io.InputStream,
long) throws java.sql.SQLException;
public void setBlob(String, java.sql.Blob) throws
java.sql.SQLException;
public void setBlob(String, java.io.InputStream) throws
java.sql.SQLException;
public void setBlob(String, java.io.InputStream, long) throws
java.sql.SQLException;
public void setCharacterStream(String, java.io.Reader)
throws java.sql.SQLException;
public void setCharacterStream(String, java.io.Reader, long)
throws java.sql.SQLException;
35. java.sql.SQLException;
public String getSubString(long, int) throws
java.sql.SQLException;
public long length() throws java.sql.SQLException;
public long position(java.sql.Clob, long) throws
java.sql.SQLException;
public long position(String, long) throws
java.sql.SQLException;
public java.io.OutputStream setAsciiStream(long) throws
java.sql.SQLException;
public java.io.Writer setCharacterStream(long) throws
java.sql.SQLException;
public int setString(long, String) throws
java.sql.SQLException;
public int setString(long, String, int, int) throws
java.sql.SQLException;
public void streamClosed(WatchableOutputStream);
public void truncate(long) throws java.sql.SQLException;
public void writerClosed(char[]);
public void writerClosed(WatchableWriter);
public void free() throws java.sql.SQLException;
public java.io.Reader getCharacterStream(long, long) throws
java.sql.SQLException;
}
com/mysql/jdbc/Collation.classpackage com.mysql.jdbc;
synchronizedclass Collation {
public int index;
public String collationName;
public String charsetName;
public String javaCharsetName;
public void Collation(int, String, String);
public void Collation(int, String, String, String);
public String toString();
}
36. com/mysql/jdbc/CommunicationsException.classpackage
com.mysql.jdbc;
publicsynchronizedclass CommunicationsException extends
java.sql.SQLException implements StreamingNotifiable {
staticfinal long serialVersionUID = 3193864990663398317;
private String exceptionMessage;
private boolean streamingResultSetInPlay;
private MySQLConnection conn;
private long lastPacketSentTimeMs;
private long lastPacketReceivedTimeMs;
private Exception underlyingException;
public void CommunicationsException(MySQLConnection,
long, long, Exception);
public String getMessage();
public String getSQLState();
public void setWasStreamingResults();
}
com/mysql/jdbc/CompressedInputStream.classpackage
com.mysql.jdbc;
synchronizedclass CompressedInputStream extends
java.io.InputStream {
private byte[] buffer;
private Connection connection;
private java.io.InputStream in;
private java.util.zip.Inflater inflater;
private byte[] packetHeaderBuffer;
private int pos;
public void CompressedInputStream(Connection,
java.io.InputStream);
public int available() throws java.io.IOException;
public void close() throws java.io.IOException;
private void getNextPacketFromServer() throws
37. java.io.IOException;
private void getNextPacketIfRequired(int) throws
java.io.IOException;
public int read() throws java.io.IOException;
public int read(byte[]) throws java.io.IOException;
public int read(byte[], int, int) throws java.io.IOException;
privatefinal int readFully(byte[], int, int) throws
java.io.IOException;
public long skip(long) throws java.io.IOException;
}
com/mysql/jdbc/Connection.classpackage com.mysql.jdbc;
publicabstractinterface Connection extends java.sql.Connection,
ConnectionProperties {
publicabstract void changeUser(String, String) throws
java.sql.SQLException;
publicabstract void clearHasTriedMaster();
publicabstract java.sql.PreparedStatement
clientPrepareStatement(String) throws java.sql.SQLException;
publicabstract java.sql.PreparedStatement
clientPrepareStatement(String, int) throws
java.sql.SQLException;
publicabstract java.sql.PreparedStatement
clientPrepareStatement(String, int, int) throws
java.sql.SQLException;
publicabstract java.sql.PreparedStatement
clientPrepareStatement(String, int[]) throws
java.sql.SQLException;
publicabstract java.sql.PreparedStatement
clientPrepareStatement(String, int, int, int) throws
java.sql.SQLException;
publicabstract java.sql.PreparedStatement
clientPrepareStatement(String, String[]) throws
java.sql.SQLException;
publicabstract int getActiveStatementCount();
40. ConnectionFeatureNotAvailableException extends
CommunicationsException {
staticfinal long serialVersionUID = -5065030488729238287;
public void
ConnectionFeatureNotAvailableException(MySQLConnection,
long, Exception);
public String getMessage();
public String getSQLState();
}
com/mysql/jdbc/ConnectionGroup.classpackage
com.mysql.jdbc;
publicsynchronizedclass ConnectionGroup {
private String groupName;
private long connections;
private long activeConnections;
private java.util.HashMap connectionProxies;
private java.util.Set hostList;
private boolean isInitialized;
private long closedProxyTotalPhysicalConnections;
private long closedProxyTotalTransactions;
private int activeHosts;
private java.util.Set closedHosts;
void ConnectionGroup(String);
public long
registerConnectionProxy(LoadBalancingConnectionProxy,
java.util.List);
public String getGroupName();
public java.util.Collection getInitialHosts();
public int getActiveHostCount();
public java.util.Collection getClosedHosts();
public long getTotalLogicalConnectionCount();
public long getActiveLogicalConnectionCount();
public long getActivePhysicalConnectionCount();
public long getTotalPhysicalConnectionCount();
41. public long getTotalTransactionCount();
public void
closeConnectionProxy(LoadBalancingConnectionProxy);
public void removeHost(String) throws
java.sql.SQLException;
public void removeHost(String, boolean) throws
java.sql.SQLException;
publicsynchronized void removeHost(String, boolean,
boolean) throws java.sql.SQLException;
public void addHost(String);
public void addHost(String, boolean);
}
com/mysql/jdbc/ConnectionGroupManager.classpackage
com.mysql.jdbc;
publicsynchronizedclass ConnectionGroupManager {
privatestatic java.util.HashMap GROUP_MAP;
privatestatic jmx.LoadBalanceConnectionGroupManager
mbean;
privatestatic boolean hasRegisteredJmx;
public void ConnectionGroupManager();
publicstaticsynchronized ConnectionGroup
getConnectionGroupInstance(String);
publicstatic void registerJmx() throws
java.sql.SQLException;
publicstatic ConnectionGroup getConnectionGroup(String);
privatestatic java.util.Collection getGroupsMatching(String);
publicstatic void addHost(String, String, boolean);
publicstatic int getActiveHostCount(String);
publicstatic long getActiveLogicalConnectionCount(String);
publicstatic long getActivePhysicalConnectionCount(String);
publicstatic int getTotalHostCount(String);
publicstatic long getTotalLogicalConnectionCount(String);
publicstatic long getTotalPhysicalConnectionCount(String);
publicstatic long getTotalTransactionCount(String);
52. java.util.Properties) throws java.sql.SQLException;
privatesynchronized void createPreparedStatementCaches()
throws java.sql.SQLException;
public java.sql.Statement createStatement() throws
java.sql.SQLException;
public java.sql.Statement createStatement(int, int) throws
java.sql.SQLException;
public java.sql.Statement createStatement(int, int, int) throws
java.sql.SQLException;
public void dumpTestcaseQuery(String);
public Connection duplicate() throws java.sql.SQLException;
public ResultSetInternalMethods execSQL(StatementImpl,
String, int, Buffer, int, int, boolean, String, Field[]) throws
java.sql.SQLException;
publicsynchronized ResultSetInternalMethods
execSQL(StatementImpl, String, int, Buffer, int, int, boolean,
String, Field[], boolean) throws java.sql.SQLException;
public String extractSqlFromPacket(String, Buffer, int)
throws java.sql.SQLException;
public StringBuffer
generateConnectionCommentBlock(StringBuffer);
public int getActiveStatementCount();
publicsynchronized boolean getAutoCommit() throws
java.sql.SQLException;
public java.util.Calendar
getCalendarInstanceForSessionOrNew();
publicsynchronized String getCatalog() throws
java.sql.SQLException;
publicsynchronized String getCharacterSetMetadata();
public SingleByteCharsetConverter
getCharsetConverter(String) throws java.sql.SQLException;
public String getCharsetNameForIndex(int) throws
java.sql.SQLException;
public java.util.TimeZone getDefaultTimeZone();
public String getErrorMessageEncoding();
public int getHoldability() throws java.sql.SQLException;
53. public long getId();
publicsynchronized long getIdleFor();
public MysqlIO getIO() throws java.sql.SQLException;
public log.Log getLog() throws java.sql.SQLException;
public int getMaxBytesPerChar(String) throws
java.sql.SQLException;
public int getMaxBytesPerChar(Integer, String) throws
java.sql.SQLException;
public java.sql.DatabaseMetaData getMetaData() throws
java.sql.SQLException;
private java.sql.DatabaseMetaData getMetaData(boolean,
boolean) throws java.sql.SQLException;
public java.sql.Statement getMetadataSafeStatement() throws
java.sql.SQLException;
public int getNetBufferLength();
public String getServerCharacterEncoding();
public int getServerMajorVersion();
public int getServerMinorVersion();
public int getServerSubMinorVersion();
public java.util.TimeZone getServerTimezoneTZ();
public String getServerVariable(String);
public String getServerVersion();
public java.util.Calendar getSessionLockedCalendar();
publicsynchronized int getTransactionIsolation() throws
java.sql.SQLException;
publicsynchronized java.util.Map getTypeMap() throws
java.sql.SQLException;
public String getURL();
public String getUser();
public java.util.Calendar getUtcCalendar();
public java.sql.SQLWarning getWarnings() throws
java.sql.SQLException;
public boolean hasSameProperties(Connection);
public java.util.Properties getProperties();
public boolean hasTriedMaster();
public void incrementNumberOfPreparedExecutes();
54. public void incrementNumberOfPrepares();
public void incrementNumberOfResultSetsCreated();
private void initializeDriverProperties(java.util.Properties)
throws java.sql.SQLException;
private void initializePropsFromServer() throws
java.sql.SQLException;
private boolean isQueryCacheEnabled();
private int getServerVariableAsInt(String, int) throws
java.sql.SQLException;
private boolean isAutoCommitNonDefaultOnServer() throws
java.sql.SQLException;
public boolean isClientTzUTC();
public boolean isClosed();
public boolean isCursorFetchEnabled() throws
java.sql.SQLException;
public boolean isInGlobalTx();
publicsynchronized boolean isMasterConnection();
public boolean isNoBackslashEscapesSet();
public boolean isReadInfoMsgEnabled();
public boolean isReadOnly() throws java.sql.SQLException;
public boolean isRunningOnJDK13();
publicsynchronized boolean isSameResource(Connection);
public boolean isServerTzUTC();
private void loadServerVariables() throws
java.sql.SQLException;
public int getAutoIncrementIncrement();
public boolean lowerCaseTableNames();
publicsynchronized void maxRowsChanged(Statement);
public String nativeSQL(String) throws
java.sql.SQLException;
private CallableStatement parseCallableStatement(String)
throws java.sql.SQLException;
public boolean parserKnowsUnicode();
public void ping() throws java.sql.SQLException;
public void pingInternal(boolean, int) throws
java.sql.SQLException;
55. public java.sql.CallableStatement prepareCall(String) throws
java.sql.SQLException;
public java.sql.CallableStatement prepareCall(String, int, int)
throws java.sql.SQLException;
public java.sql.CallableStatement prepareCall(String, int, int,
int) throws java.sql.SQLException;
public java.sql.PreparedStatement prepareStatement(String)
throws java.sql.SQLException;
public java.sql.PreparedStatement prepareStatement(String,
int) throws java.sql.SQLException;
publicsynchronized java.sql.PreparedStatement
prepareStatement(String, int, int) throws
java.sql.SQLException;
public java.sql.PreparedStatement prepareStatement(String,
int, int, int) throws java.sql.SQLException;
public java.sql.PreparedStatement prepareStatement(String,
int[]) throws java.sql.SQLException;
public java.sql.PreparedStatement prepareStatement(String,
String[]) throws java.sql.SQLException;
public void realClose(boolean, boolean, boolean, Throwable)
throws java.sql.SQLException;
publicsynchronized void
recachePreparedStatement(ServerPreparedStatement) throws
java.sql.SQLException;
public void registerQueryExecutionTime(long);
public void registerStatement(Statement);
public void releaseSavepoint(java.sql.Savepoint) throws
java.sql.SQLException;
private void repartitionHistogram(int[], long[], long, long);
private void repartitionPerformanceHistogram();
private void repartitionTablesAccessedHistogram();
private void reportMetrics();
protected void reportMetricsIfNeeded();
public void reportNumberOfTablesAccessed(int);
public void resetServerState() throws java.sql.SQLException;
publicsynchronized void rollback() throws
56. java.sql.SQLException;
publicsynchronized void rollback(java.sql.Savepoint) throws
java.sql.SQLException;
private void rollbackNoChecks() throws
java.sql.SQLException;
public java.sql.PreparedStatement
serverPrepareStatement(String) throws java.sql.SQLException;
public java.sql.PreparedStatement
serverPrepareStatement(String, int) throws
java.sql.SQLException;
public java.sql.PreparedStatement
serverPrepareStatement(String, int, int) throws
java.sql.SQLException;
public java.sql.PreparedStatement
serverPrepareStatement(String, int, int, int) throws
java.sql.SQLException;
public java.sql.PreparedStatement
serverPrepareStatement(String, int[]) throws
java.sql.SQLException;
public java.sql.PreparedStatement
serverPrepareStatement(String, String[]) throws
java.sql.SQLException;
public boolean serverSupportsConvertFn() throws
java.sql.SQLException;
publicsynchronized void setAutoCommit(boolean) throws
java.sql.SQLException;
publicsynchronized void setCatalog(String) throws
java.sql.SQLException;
publicsynchronized void setFailedOver(boolean);
public void setHoldability(int) throws
java.sql.SQLException;
public void setInGlobalTx(boolean);
public void setPreferSlaveDuringFailover(boolean);
public void setReadInfoMsgEnabled(boolean);
public void setReadOnly(boolean) throws
java.sql.SQLException;
57. public void setReadOnlyInternal(boolean) throws
java.sql.SQLException;
public java.sql.Savepoint setSavepoint() throws
java.sql.SQLException;
privatesynchronized void setSavepoint(MysqlSavepoint)
throws java.sql.SQLException;
publicsynchronized java.sql.Savepoint setSavepoint(String)
throws java.sql.SQLException;
private void setSessionVariables() throws
java.sql.SQLException;
publicsynchronized void setTransactionIsolation(int) throws
java.sql.SQLException;
publicsynchronized void setTypeMap(java.util.Map) throws
java.sql.SQLException;
private void setupServerForTruncationChecks() throws
java.sql.SQLException;
public void shutdownServer() throws java.sql.SQLException;
public boolean supportsIsolationLevel();
public boolean supportsQuotedIdentifiers();
public boolean supportsTransactions();
public void unregisterStatement(Statement);
publicsynchronized void unsetMaxRows(Statement) throws
java.sql.SQLException;
publicsynchronized boolean useAnsiQuotedIdentifiers();
publicsynchronized boolean useMaxRows();
public boolean versionMeetsMinimum(int, int, int) throws
java.sql.SQLException;
public CachedResultSetMetaData
getCachedMetaData(String);
public void initializeResultsMetadataFromCache(String,
CachedResultSetMetaData, ResultSetInternalMethods) throws
java.sql.SQLException;
public String getStatementComment();
public void setStatementComment(String);
publicsynchronized void reportQueryTime(long);
publicsynchronized boolean isAbonormallyLongQuery(long);