001: /*
002: * Copyright (c) 1998-2003 Caucho Technology -- all rights reserved
003: *
004: * This file is part of Resin(R) Open Source
005: *
006: * Each copy or derived work must preserve the copyright notice and this
007: * notice unmodified.
008: *
009: * Resin Open Source is free software; you can redistribute it and/or modify
010: * it under the terms of the GNU General Public License as published by
011: * the Free Software Foundation; either version 2 of the License, or
012: * (at your option) any later version.
013: *
014: * Resin Open Source is distributed in the hope that it will be useful,
015: * but WITHOUT ANY WARRANTY; without even the implied warranty of
016: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, or any warranty
017: * of NON-INFRINGEMENT. See the GNU General Public License for more
018: * details.
019: *
020: * You should have received a copy of the GNU General Public License
021: * along with Resin Open Source; if not, write to the
022: * Free SoftwareFoundation, Inc.
023: * 59 Temple Place, Suite 330
024: * Boston, MA 02111-1307 USA
025: *
026: * @author Scott Ferguson
027: */
028:
029: package javax.resource.cci;
030:
031: import javax.resource.ResourceException;
032:
033: /**
034: * Returns meta-data information about the result set.
035: */
036: public interface ResultSetInfo {
037: /**
038: * Returns true if row updates are detected.
039: */
040: public boolean updatesAreDetected(int type)
041: throws ResourceException;
042:
043: /**
044: * Returns true if inserts in a row are detected.
045: */
046: public boolean insertsAreDetected(int type)
047: throws ResourceException;
048:
049: /**
050: * Returns true if deletes in a row are detected.
051: */
052: public boolean deletesAreDetected(int type)
053: throws ResourceException;
054:
055: /**
056: * Returns true if the resource adapter supports the ResultSet.
057: */
058: public boolean supportsResultSetType(int type)
059: throws ResourceException;
060:
061: /**
062: * Returns true if the resource adapter supports the concurrency.
063: */
064: public boolean supportsResultTypeConcurrency(int type,
065: int concurrency) throws ResourceException;
066:
067: /**
068: * Returns true if updates made by others are visible.
069: */
070: public boolean othersUpdatesAreVisible(int type)
071: throws ResourceException;
072:
073: /**
074: * Returns true if deletes made by others are visible.
075: */
076: public boolean othersDeletesAreVisible(int type)
077: throws ResourceException;
078:
079: /**
080: * Returns true if inserts made by others are visible.
081: */
082: public boolean othersInsertsAreVisible(int type)
083: throws ResourceException;
084:
085: /**
086: * Returns true if updates made by self are visible.
087: */
088: public boolean ownUpdatesAreVisible(int type)
089: throws ResourceException;
090:
091: /**
092: * Returns true if deletes made by self are visible.
093: */
094: public boolean ownDeletesAreVisible(int type)
095: throws ResourceException;
096:
097: /**
098: * Returns true if inserts made by self are visible.
099: */
100: public boolean ownInsertsAreVisible(int type)
101: throws ResourceException;
102: }
|