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

Package class diagram package 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:
Struct

public class ThrowingStruct
extends Thrower
implements Struct

A Stuct decorated to throw SQLException on command.

Since:
5 Feb 2008
Author:
timp

Constructor Summary
ThrowingStruct(Struct s)
          Constructor.
 
Method Summary
 Object[] getAttributes()
          
 Object[] getAttributes(Map<String,Class<?>> map)
          
 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(Struct s)
Constructor.

Method Detail

getAttributes

public Object[] getAttributes()
                       throws SQLException

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

getAttributes

public Object[] getAttributes(Map<String,Class<?>> map)
                       throws SQLException

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

getSQLTypeName

public String getSQLTypeName()
                      throws SQLException

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


Copyright © 2000-2010 PanEris. All Rights Reserved.