// Decompiled by Jad v1.5.7f. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) braces deadcode fieldsfirst 
// Source File Name:   TRANSDUMP.java
// Class Version:      45.3

package oracle.sql;

import java.sql.Connection;
import java.sql.SQLException;
import oracle.jdbc.OracleTypes;
import oracle.jdbc.driver.OracleCallableStatement;
import oracle.jdbc.driver.OraclePreparedStatement;

// Referenced classes of package oracle.sql:
//            NUMBER

// flag ACC_SUPER is set
public class TRANSDUMP
{
    // Constants:          53
    // Interfaces:         0
    // Fields:             0
    // Methods:            2
    // Class Attributes:   1


    // Decompiling method: <init>  Signature: ()V
    // Max stack: 1, #locals: 1, #params: 1
    // Code length: 5 bytes, Code offset: 721
    // Line Number Table found: 1 entries
    // Parameter  0 added: Name this Type Loracle/sql/TRANSDUMP; At 0 5 Range 0 4 Init 0 fixed
    // RetValue   1 added: Name <returnValue> Type V At 0 5 Range 0 4 Init 0 fixed
    public TRANSDUMP()
    {
        super();
        return;
    }

    // Decompiling method: getTransitions  Signature: (Ljava/sql/Connection;I)[B
    // Max stack: 3, #locals: 5, #params: 2
    // Code length: 49 bytes, Code offset: 764
    // Line Number Table found: 10 entries
    // Parameter  0 added: Name connection Type Ljava/sql/Connection; At 0 49 Range 0 48 Init 0
    // Parameter  1 added: Name i Type I At 0 49 Range 0 48 Init 0
    // RetValue   5 added: Name <returnValue> Type [B At 0 49 Range 0 48 Init 0 fixed
    // LocalVar   2 added: Name oraclecallablestatement Type Loracle/jdbc/driver/OracleCallableStatement; At 11 29 Range 11 39 Init 11
    // LocalVar   3 added: Name number Type Loracle/sql/NUMBER; At 20 4 Range 20 23 Init 20
    // LocalVar   4 added: Name abyte0 Type [B At 44 4 Range 44 47 Init 44
    public static byte[] getTransitions(Connection connection, int i)
        throws SQLException
    {
        OracleCallableStatement oraclecallablestatement = (OracleCallableStatement)connection.prepareCall("begin dbms_utility.get_tz_transitions(?,?); end;");
        NUMBER number = new NUMBER(i);
        oraclecallablestatement.setNUMBER(1, number);
        oraclecallablestatement.registerOutParameter(2, -2);
        oraclecallablestatement.execute();
        byte abyte0[] = oraclecallablestatement.getBytes(2);
        return abyte0;
    }
}
