001: /*
002: * JBoss, Home of Professional Open Source.
003: * Copyright 2006, Red Hat Middleware LLC, and individual contributors
004: * as indicated by the @author tags. See the copyright.txt file in the
005: * distribution for a full listing of individual contributors.
006: *
007: * This is free software; you can redistribute it and/or modify it
008: * under the terms of the GNU Lesser General Public License as
009: * published by the Free Software Foundation; either version 2.1 of
010: * the License, or (at your option) any later version.
011: *
012: * This software is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of
014: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015: * Lesser General Public License for more details.
016: *
017: * You should have received a copy of the GNU Lesser General Public
018: * License along with this software; if not, write to the Free
019: * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
020: * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
021: */
022: package javax.resource.cci;
023:
024: import javax.resource.ResourceException;
025:
026: /**
027: * The interface ResultSetInfo provides information on the support for the
028: * ResultSet interface by an underlying resource. A component can retrieve a
029: * ResultSetInfo from a Connection instance.
030: *
031: * A resource only needs to support this interface if it also supports the
032: * ResultSet interface.
033: */
034: public interface ResultSetInfo {
035: /**
036: * Indicates whether or not a visible row delete can be detected.
037: */
038: public boolean deletesAreDetected(int type)
039: throws ResourceException;
040:
041: /**
042: * Indicates whether or not a visible row insert can be detected.
043: */
044: public boolean insertsAreDetected(int type)
045: throws ResourceException;
046:
047: /**
048: * Indicates whether deletes made by others are visible.
049: */
050: public boolean othersDeletesAreVisible(int type)
051: throws ResourceException;
052:
053: /**
054: * Indicates whether inserts made by others are visible.
055: */
056: public boolean othersInsertsAreVisible(int type)
057: throws ResourceException;
058:
059: /**
060: * Indicates whether updates made by others are visible.
061: */
062: public boolean othersUpdatesAreVisible(int type)
063: throws ResourceException;
064:
065: /**
066: * Indicates whether deletes made by self are visible.
067: */
068: public boolean ownDeletesAreVisible(int type)
069: throws ResourceException;
070:
071: /**
072: * Indicates whether inserts made by self are visible.
073: */
074: public boolean ownInsertsAreVisible(int type)
075: throws ResourceException;
076:
077: /**
078: * Indicates whether updates made by self are visible.
079: */
080: public boolean ownUpdatesAreVisible(int type)
081: throws ResourceException;
082:
083: /**
084: * Indicates whether or not an resource adapter supports the specified type
085: * of ResultSet.
086: */
087: public boolean supportsResultSetType(int type)
088: throws ResourceException;
089:
090: /**
091: * Indicates whether or not a resource adapter supports the concurrency type
092: * in combination with the given ResultSet type.
093: */
094: public boolean supportsResultTypeConcurrency(int type,
095: int concurrency) throws ResourceException;
096:
097: /**
098: * Indicates whether or not a visible row update can be detected.
099: */
100: public boolean updatesAreDetected(int type)
101: throws ResourceException;
102: }
|