org.melati.poem.dbms.test.sql
Class ThrowingStruct

java.lang.Object
  extended by org.melati.poem.dbms.test.sql.Thrower
      extended by org.melati.poem.dbms.test.sql.ThrowingStruct
All Implemented Interfaces:
java.sql.Struct

public class ThrowingStruct
extends Thrower
implements java.sql.Struct

A Stuct decorated to throw SQLException on command.

Since:
5 Feb 2008
Author:
timp

Constructor Summary
ThrowingStruct(java.sql.Struct s)
          Constructor.
 
Method Summary
 java.lang.Object[] getAttributes()
          
 java.lang.Object[] getAttributes(java.util.Map map)
          
 java.lang.String getSQLTypeName()
          
 
Methods inherited from class org.melati.poem.dbms.test.sql.Thrower
shouldThrow, startThrowing, startThrowingAfter, stopThrowing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThrowingStruct

public ThrowingStruct(java.sql.Struct s)
Constructor.

Method Detail

getAttributes

public java.lang.Object[] getAttributes()
                                 throws java.sql.SQLException

Specified by:
getAttributes in interface java.sql.Struct
Throws:
java.sql.SQLException
See Also:
Struct.getAttributes()

getAttributes

public java.lang.Object[] getAttributes(java.util.Map map)
                                 throws java.sql.SQLException

Specified by:
getAttributes in interface java.sql.Struct
Throws:
java.sql.SQLException
See Also:
Struct.getAttributes(java.util.Map)

getSQLTypeName

public java.lang.String getSQLTypeName()
                                throws java.sql.SQLException

Specified by:
getSQLTypeName in interface java.sql.Struct
Throws:
java.sql.SQLException
See Also:
Struct.getSQLTypeName()


Copyright © 2000-2008 PanEris. All Rights Reserved.