indyinterface.java
来自「大量java源程序」· Java 代码 · 共 72 行
JAVA
72 行
/*
* @(#)IndyInterface
*
* Copyright (c) 1998 Karl Moss. All Rights Reserved.
*
* You may study, use, modify, and distribute this software for any
* purpose provided that this copyright notice appears in all copies.
*
* This software is provided WITHOUT WARRANTY either expressed or
* implied.
*
* @author Karl Moss
* @version 1.0
* @date 17Apr98
*
*/
package javaservlets.tunnel;
//import javaservlets.tunnel.IndyRecord;
/**
* <p>This interface defines the methods available for
* performing queries on the Indianapolis 500 database
*/
public interface IndyInterface
{
/**
* <p>Connects to the database.
*
* @return True if the database connection was established
*/
boolean connect();
/**
* <p>Closes the database connection
*/
void close();
/**
* <p>Given the year return the corresponding Indianapolis
* 500 record
*
* @param year Year of the race
* @return Indy 500 record or null if not found
*/
IndyRecord[] query();
/**
* <p>Delete a data whose ID come from txtfield1 in table wang
* 500 record
*
* @param year Year of the race
* not return
*/
void delete(String taskid);
/**
* <p>Insert a data whose ID come from txtfield2 in table wang
*
*
* @param record which will be inserted into table of database
* not return
*/
void insert(IndyRecord record);
/**
* <p>Update a data whose ID come from txtfield2 in table wang
*
*
* @param record which will be updated into table of database
* not return
*/
void update(IndyRecord record);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?