Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.firebirdsql.jdbc.oo;
 
 import java.sql.*;
 
 
 public class OOConnection extends FBConnection {
    private OODatabaseMetaData metaData;
    public OOConnection(FBManagedConnection mc) {
        super(mc);
    }
    public synchronized DatabaseMetaData getMetaData() throws SQLException {
        try {
            if ( == null = new OODatabaseMetaData(this);
            return ;
        } catch (GDSException ex) {
            throw new FBSQLException(ex);
        }
    }
    public synchronized Statement createStatement(int resultSetType,
            int resultSetConcurrencyint resultSetHoldability)
            throws SQLException {
        try {
            Statement stmt = new OOStatement(getGDSHelper(), resultSetType,
                    resultSetConcurrencyresultSetHoldability);
            .add(stmt);
            return stmt;
        } catch (GDSException ex) {
            throw new FBSQLException(ex);
        }
    }
    public synchronized PreparedStatement prepareStatement(String sql,
            int resultSetTypeint resultSetConcurrency,
            int resultSetHoldabilityboolean metaDataboolean generatedKeysthrows SQLException {
        try {
            FBObjectListener.StatementListener coordinator = ;
            if (metaData)
                coordinator = new InternalTransactionCoordinator.MetaDataTransactionCoordinator(
                        );
            FBObjectListener.BlobListener blobCoordinator;
            if (metaData)
                blobCoordinator = null;
            else
                blobCoordinator = ;
            PreparedStatement stmt = new OOPreparedStatement(getGDSHelper(),
                    sqlresultSetTyperesultSetConcurrency,
                    resultSetHoldabilitycoordinatorblobCoordinator,
                    metaDatafalsegeneratedKeys);
            .add(stmt);
            return stmt;
        } catch (GDSException ex) {
            throw new FBSQLException(ex);
        }
    }
New to GrepCode? Check out our FAQ X