⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 basicsentenceenum.java

📁 是一个专门设计用于触摸屏的POS(point of sales)应用软件
💻 JAVA
字号:
/* * AbstractSentenceEnum.java * * Created on 26 de diciembre de 2005, 23:09 * * To change this template, choose Tools | Options and locate the template under * the Source Creation and Management node. Right-click the template and choose * Open. You can then make changes to the template in the Source Editor. */package net.adrianromero.data.loader;

import net.adrianromero.basic.BasicException;/** * * @author adrian */public class BasicSentenceEnum implements SentenceEnum {        BaseSentence sent;    DataResultSet SRS;        /** Creates a new instance of AbstractSentenceEnum */    public BasicSentenceEnum(BaseSentence sent) {        this.sent = sent;        this.SRS = null;    }        public void load() throws BasicException {        load(null);    }    public void load(Object params) throws BasicException {        SRS = sent.openExec(params);    }    public Object getCurrent() throws BasicException {        if (SRS == null) {            throw new BasicException(LocalRes.getIntString("exception.nodataset"));        }                 return SRS.getCurrent();      }        public boolean next() throws BasicException {        if (SRS == null) {            throw new BasicException(LocalRes.getIntString("exception.nodataset"));        }                 if (SRS.next()) {            return true;          } else {            SRS.close();            SRS = null;            sent.closeExec();            return false;        }    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -