Example usage for java.sql Types BIGINT

List of usage examples for java.sql Types BIGINT

Introduction

In this page you can find the example usage for java.sql Types BIGINT.

Prototype

int BIGINT

To view the source code for java.sql Types BIGINT.

Click Source Link

Document

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type BIGINT.

Usage

From source file:net.sourceforge.msscodefactory.cfensyntax.v2_2.CFEnSyntaxOracle.CFEnSyntaxOracleEnHeadTable.java

public void deleteEnHeadByUNameIdx(CFEnSyntaxAuthorization Authorization, Long argScopeId, String argName) {
    final String S_ProcName = "deleteEnHeadByUNameIdx";
    ResultSet resultSet = null;/*  www  . j a v  a 2  s.co  m*/
    try {
        Connection cnx = schema.getCnx();
        String sql = "begin call " + schema.getLowerDbSchemaName() + ".dl_enheadbyunameidx( ?, ?, ?, ?, ?"
                + ", " + "?" + ", " + "?" + " ); end";
        if (stmtDeleteByUNameIdx == null) {
            stmtDeleteByUNameIdx = cnx.prepareStatement(sql);
        }
        int argIdx = 1;
        stmtDeleteByUNameIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId());
        stmtDeleteByUNameIdx.setString(argIdx++,
                (Authorization == null) ? "" : Authorization.getSecUserId().toString());
        stmtDeleteByUNameIdx.setString(argIdx++,
                (Authorization == null) ? "" : Authorization.getSecSessionId().toString());
        stmtDeleteByUNameIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId());
        stmtDeleteByUNameIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecTenantId());
        if (argScopeId != null) {
            stmtDeleteByUNameIdx.setLong(argIdx++, argScopeId.longValue());
        } else {
            stmtDeleteByUNameIdx.setNull(argIdx++, java.sql.Types.BIGINT);
        }
        stmtDeleteByUNameIdx.setString(argIdx++, argName);
        int rowsUpdated = stmtDeleteByUNameIdx.executeUpdate();
    } catch (SQLException e) {
        throw CFLib.getDefaultExceptionFactory().newDbException(getClass(), S_ProcName, e);
    } finally {
        if (resultSet != null) {
            try {
                resultSet.close();
            } catch (SQLException e) {
            }
            resultSet = null;
        }
    }
}

From source file:net.sourceforge.msscodefactory.cfensyntax.v2_2.CFEnSyntaxOracle.CFEnSyntaxOracleEnWordTable.java

public void deleteEnWordByUNameIdx(CFEnSyntaxAuthorization Authorization, Long argScopeId, String argName) {
    final String S_ProcName = "deleteEnWordByUNameIdx";
    ResultSet resultSet = null;/*from ww w.j av a2 s  .  c  o m*/
    try {
        Connection cnx = schema.getCnx();
        String sql = "begin call " + schema.getLowerDbSchemaName() + ".dl_enwordbyunameidx( ?, ?, ?, ?, ?"
                + ", " + "?" + ", " + "?" + " ); end";
        if (stmtDeleteByUNameIdx == null) {
            stmtDeleteByUNameIdx = cnx.prepareStatement(sql);
        }
        int argIdx = 1;
        stmtDeleteByUNameIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId());
        stmtDeleteByUNameIdx.setString(argIdx++,
                (Authorization == null) ? "" : Authorization.getSecUserId().toString());
        stmtDeleteByUNameIdx.setString(argIdx++,
                (Authorization == null) ? "" : Authorization.getSecSessionId().toString());
        stmtDeleteByUNameIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId());
        stmtDeleteByUNameIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecTenantId());
        if (argScopeId != null) {
            stmtDeleteByUNameIdx.setLong(argIdx++, argScopeId.longValue());
        } else {
            stmtDeleteByUNameIdx.setNull(argIdx++, java.sql.Types.BIGINT);
        }
        stmtDeleteByUNameIdx.setString(argIdx++, argName);
        int rowsUpdated = stmtDeleteByUNameIdx.executeUpdate();
    } catch (SQLException e) {
        throw CFLib.getDefaultExceptionFactory().newDbException(getClass(), S_ProcName, e);
    } finally {
        if (resultSet != null) {
            try {
                resultSet.close();
            } catch (SQLException e) {
            }
            resultSet = null;
        }
    }
}

From source file:net.sourceforge.msscodefactory.cfensyntax.v2_2.CFEnSyntaxOracle.CFEnSyntaxOracleEnTenseTable.java

public void deleteEnTenseByUNameIdx(CFEnSyntaxAuthorization Authorization, Long argScopeId, String argName) {
    final String S_ProcName = "deleteEnTenseByUNameIdx";
    ResultSet resultSet = null;/*  w ww.j  av a  2s. c o m*/
    try {
        Connection cnx = schema.getCnx();
        String sql = "begin call " + schema.getLowerDbSchemaName() + ".dl_entensebyunameidx( ?, ?, ?, ?, ?"
                + ", " + "?" + ", " + "?" + " ); end";
        if (stmtDeleteByUNameIdx == null) {
            stmtDeleteByUNameIdx = cnx.prepareStatement(sql);
        }
        int argIdx = 1;
        stmtDeleteByUNameIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId());
        stmtDeleteByUNameIdx.setString(argIdx++,
                (Authorization == null) ? "" : Authorization.getSecUserId().toString());
        stmtDeleteByUNameIdx.setString(argIdx++,
                (Authorization == null) ? "" : Authorization.getSecSessionId().toString());
        stmtDeleteByUNameIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId());
        stmtDeleteByUNameIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecTenantId());
        if (argScopeId != null) {
            stmtDeleteByUNameIdx.setLong(argIdx++, argScopeId.longValue());
        } else {
            stmtDeleteByUNameIdx.setNull(argIdx++, java.sql.Types.BIGINT);
        }
        stmtDeleteByUNameIdx.setString(argIdx++, argName);
        int rowsUpdated = stmtDeleteByUNameIdx.executeUpdate();
    } catch (SQLException e) {
        throw CFLib.getDefaultExceptionFactory().newDbException(getClass(), S_ProcName, e);
    } finally {
        if (resultSet != null) {
            try {
                resultSet.close();
            } catch (SQLException e) {
            }
            resultSet = null;
        }
    }
}

From source file:net.sourceforge.msscodefactory.cfensyntax.v2_2.CFEnSyntaxOracle.CFEnSyntaxOracleEnObjectTable.java

public void deleteEnObjectByUNameIdx(CFEnSyntaxAuthorization Authorization, Long argScopeId, String argName) {
    final String S_ProcName = "deleteEnObjectByUNameIdx";
    ResultSet resultSet = null;/*from   ww  w  .j ava  2  s . c om*/
    try {
        Connection cnx = schema.getCnx();
        String sql = "begin call " + schema.getLowerDbSchemaName() + ".dl_enobjbyunameidx( ?, ?, ?, ?, ?" + ", "
                + "?" + ", " + "?" + " ); end";
        if (stmtDeleteByUNameIdx == null) {
            stmtDeleteByUNameIdx = cnx.prepareStatement(sql);
        }
        int argIdx = 1;
        stmtDeleteByUNameIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId());
        stmtDeleteByUNameIdx.setString(argIdx++,
                (Authorization == null) ? "" : Authorization.getSecUserId().toString());
        stmtDeleteByUNameIdx.setString(argIdx++,
                (Authorization == null) ? "" : Authorization.getSecSessionId().toString());
        stmtDeleteByUNameIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId());
        stmtDeleteByUNameIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecTenantId());
        if (argScopeId != null) {
            stmtDeleteByUNameIdx.setLong(argIdx++, argScopeId.longValue());
        } else {
            stmtDeleteByUNameIdx.setNull(argIdx++, java.sql.Types.BIGINT);
        }
        stmtDeleteByUNameIdx.setString(argIdx++, argName);
        int rowsUpdated = stmtDeleteByUNameIdx.executeUpdate();
    } catch (SQLException e) {
        throw CFLib.getDefaultExceptionFactory().newDbException(getClass(), S_ProcName, e);
    } finally {
        if (resultSet != null) {
            try {
                resultSet.close();
            } catch (SQLException e) {
            }
            resultSet = null;
        }
    }
}

From source file:net.sourceforge.msscodefactory.cfensyntax.v2_2.CFEnSyntaxOracle.CFEnSyntaxOracleEnClauseTable.java

public void deleteEnClauseByUNameIdx(CFEnSyntaxAuthorization Authorization, Long argScopeId, String argName) {
    final String S_ProcName = "deleteEnClauseByUNameIdx";
    ResultSet resultSet = null;//from   w  ww . j a  v  a2  s.  c  o m
    try {
        Connection cnx = schema.getCnx();
        String sql = "begin call " + schema.getLowerDbSchemaName() + ".dl_enclausebyunameidx( ?, ?, ?, ?, ?"
                + ", " + "?" + ", " + "?" + " ); end";
        if (stmtDeleteByUNameIdx == null) {
            stmtDeleteByUNameIdx = cnx.prepareStatement(sql);
        }
        int argIdx = 1;
        stmtDeleteByUNameIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId());
        stmtDeleteByUNameIdx.setString(argIdx++,
                (Authorization == null) ? "" : Authorization.getSecUserId().toString());
        stmtDeleteByUNameIdx.setString(argIdx++,
                (Authorization == null) ? "" : Authorization.getSecSessionId().toString());
        stmtDeleteByUNameIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId());
        stmtDeleteByUNameIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecTenantId());
        if (argScopeId != null) {
            stmtDeleteByUNameIdx.setLong(argIdx++, argScopeId.longValue());
        } else {
            stmtDeleteByUNameIdx.setNull(argIdx++, java.sql.Types.BIGINT);
        }
        stmtDeleteByUNameIdx.setString(argIdx++, argName);
        int rowsUpdated = stmtDeleteByUNameIdx.executeUpdate();
    } catch (SQLException e) {
        throw CFLib.getDefaultExceptionFactory().newDbException(getClass(), S_ProcName, e);
    } finally {
        if (resultSet != null) {
            try {
                resultSet.close();
            } catch (SQLException e) {
            }
            resultSet = null;
        }
    }
}

From source file:net.sourceforge.msscodefactory.cfensyntax.v2_2.CFEnSyntaxOracle.CFEnSyntaxOracleEnPhraseTable.java

public void deleteEnPhraseByUNameIdx(CFEnSyntaxAuthorization Authorization, Long argScopeId, String argName) {
    final String S_ProcName = "deleteEnPhraseByUNameIdx";
    ResultSet resultSet = null;// w  w w . ja v  a  2 s  . co  m
    try {
        Connection cnx = schema.getCnx();
        String sql = "begin call " + schema.getLowerDbSchemaName() + ".dl_enphrasebyunameidx( ?, ?, ?, ?, ?"
                + ", " + "?" + ", " + "?" + " ); end";
        if (stmtDeleteByUNameIdx == null) {
            stmtDeleteByUNameIdx = cnx.prepareStatement(sql);
        }
        int argIdx = 1;
        stmtDeleteByUNameIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId());
        stmtDeleteByUNameIdx.setString(argIdx++,
                (Authorization == null) ? "" : Authorization.getSecUserId().toString());
        stmtDeleteByUNameIdx.setString(argIdx++,
                (Authorization == null) ? "" : Authorization.getSecSessionId().toString());
        stmtDeleteByUNameIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId());
        stmtDeleteByUNameIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecTenantId());
        if (argScopeId != null) {
            stmtDeleteByUNameIdx.setLong(argIdx++, argScopeId.longValue());
        } else {
            stmtDeleteByUNameIdx.setNull(argIdx++, java.sql.Types.BIGINT);
        }
        stmtDeleteByUNameIdx.setString(argIdx++, argName);
        int rowsUpdated = stmtDeleteByUNameIdx.executeUpdate();
    } catch (SQLException e) {
        throw CFLib.getDefaultExceptionFactory().newDbException(getClass(), S_ProcName, e);
    } finally {
        if (resultSet != null) {
            try {
                resultSet.close();
            } catch (SQLException e) {
            }
            resultSet = null;
        }
    }
}

From source file:net.sourceforge.msscodefactory.cfensyntax.v2_2.CFEnSyntaxOracle.CFEnSyntaxOracleEnSubjectTable.java

public void deleteEnSubjectByUNameIdx(CFEnSyntaxAuthorization Authorization, Long argScopeId, String argName) {
    final String S_ProcName = "deleteEnSubjectByUNameIdx";
    ResultSet resultSet = null;/*from   ww w .j  ava 2s  .com*/
    try {
        Connection cnx = schema.getCnx();
        String sql = "begin call " + schema.getLowerDbSchemaName() + ".dl_ensubjbyunameidx( ?, ?, ?, ?, ?"
                + ", " + "?" + ", " + "?" + " ); end";
        if (stmtDeleteByUNameIdx == null) {
            stmtDeleteByUNameIdx = cnx.prepareStatement(sql);
        }
        int argIdx = 1;
        stmtDeleteByUNameIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId());
        stmtDeleteByUNameIdx.setString(argIdx++,
                (Authorization == null) ? "" : Authorization.getSecUserId().toString());
        stmtDeleteByUNameIdx.setString(argIdx++,
                (Authorization == null) ? "" : Authorization.getSecSessionId().toString());
        stmtDeleteByUNameIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId());
        stmtDeleteByUNameIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecTenantId());
        if (argScopeId != null) {
            stmtDeleteByUNameIdx.setLong(argIdx++, argScopeId.longValue());
        } else {
            stmtDeleteByUNameIdx.setNull(argIdx++, java.sql.Types.BIGINT);
        }
        stmtDeleteByUNameIdx.setString(argIdx++, argName);
        int rowsUpdated = stmtDeleteByUNameIdx.executeUpdate();
    } catch (SQLException e) {
        throw CFLib.getDefaultExceptionFactory().newDbException(getClass(), S_ProcName, e);
    } finally {
        if (resultSet != null) {
            try {
                resultSet.close();
            } catch (SQLException e) {
            }
            resultSet = null;
        }
    }
}

From source file:net.sourceforge.msscodefactory.cfensyntax.v2_2.CFEnSyntaxOracle.CFEnSyntaxOracleEnSentenceTable.java

public void deleteEnSentenceByUNameIdx(CFEnSyntaxAuthorization Authorization, Long argScopeId, String argName) {
    final String S_ProcName = "deleteEnSentenceByUNameIdx";
    ResultSet resultSet = null;// w  w  w  . j av a  2  s .co m
    try {
        Connection cnx = schema.getCnx();
        String sql = "begin call " + schema.getLowerDbSchemaName() + ".dl_ensentbyunameidx( ?, ?, ?, ?, ?"
                + ", " + "?" + ", " + "?" + " ); end";
        if (stmtDeleteByUNameIdx == null) {
            stmtDeleteByUNameIdx = cnx.prepareStatement(sql);
        }
        int argIdx = 1;
        stmtDeleteByUNameIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId());
        stmtDeleteByUNameIdx.setString(argIdx++,
                (Authorization == null) ? "" : Authorization.getSecUserId().toString());
        stmtDeleteByUNameIdx.setString(argIdx++,
                (Authorization == null) ? "" : Authorization.getSecSessionId().toString());
        stmtDeleteByUNameIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId());
        stmtDeleteByUNameIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecTenantId());
        if (argScopeId != null) {
            stmtDeleteByUNameIdx.setLong(argIdx++, argScopeId.longValue());
        } else {
            stmtDeleteByUNameIdx.setNull(argIdx++, java.sql.Types.BIGINT);
        }
        stmtDeleteByUNameIdx.setString(argIdx++, argName);
        int rowsUpdated = stmtDeleteByUNameIdx.executeUpdate();
    } catch (SQLException e) {
        throw CFLib.getDefaultExceptionFactory().newDbException(getClass(), S_ProcName, e);
    } finally {
        if (resultSet != null) {
            try {
                resultSet.close();
            } catch (SQLException e) {
            }
            resultSet = null;
        }
    }
}

From source file:net.sourceforge.msscodefactory.cfensyntax.v2_2.CFEnSyntaxOracle.CFEnSyntaxOracleEnModifierTable.java

public void deleteEnModifierByUNameIdx(CFEnSyntaxAuthorization Authorization, Long argScopeId, String argName) {
    final String S_ProcName = "deleteEnModifierByUNameIdx";
    ResultSet resultSet = null;/*from w w  w.ja v a2 s .  co m*/
    try {
        Connection cnx = schema.getCnx();
        String sql = "begin call " + schema.getLowerDbSchemaName() + ".dl_enmodifbyunameidx( ?, ?, ?, ?, ?"
                + ", " + "?" + ", " + "?" + " ); end";
        if (stmtDeleteByUNameIdx == null) {
            stmtDeleteByUNameIdx = cnx.prepareStatement(sql);
        }
        int argIdx = 1;
        stmtDeleteByUNameIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId());
        stmtDeleteByUNameIdx.setString(argIdx++,
                (Authorization == null) ? "" : Authorization.getSecUserId().toString());
        stmtDeleteByUNameIdx.setString(argIdx++,
                (Authorization == null) ? "" : Authorization.getSecSessionId().toString());
        stmtDeleteByUNameIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId());
        stmtDeleteByUNameIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecTenantId());
        if (argScopeId != null) {
            stmtDeleteByUNameIdx.setLong(argIdx++, argScopeId.longValue());
        } else {
            stmtDeleteByUNameIdx.setNull(argIdx++, java.sql.Types.BIGINT);
        }
        stmtDeleteByUNameIdx.setString(argIdx++, argName);
        int rowsUpdated = stmtDeleteByUNameIdx.executeUpdate();
    } catch (SQLException e) {
        throw CFLib.getDefaultExceptionFactory().newDbException(getClass(), S_ProcName, e);
    } finally {
        if (resultSet != null) {
            try {
                resultSet.close();
            } catch (SQLException e) {
            }
            resultSet = null;
        }
    }
}

From source file:net.sourceforge.msscodefactory.cfensyntax.v2_2.CFEnSyntaxOracle.CFEnSyntaxOracleEnMorphemeTable.java

public void deleteEnMorphemeByUNameIdx(CFEnSyntaxAuthorization Authorization, Long argScopeId, String argName) {
    final String S_ProcName = "deleteEnMorphemeByUNameIdx";
    ResultSet resultSet = null;/*from   w  ww.  jav a  2s . com*/
    try {
        Connection cnx = schema.getCnx();
        String sql = "begin call " + schema.getLowerDbSchemaName() + ".dl_enmorphbyunameidx( ?, ?, ?, ?, ?"
                + ", " + "?" + ", " + "?" + " ); end";
        if (stmtDeleteByUNameIdx == null) {
            stmtDeleteByUNameIdx = cnx.prepareStatement(sql);
        }
        int argIdx = 1;
        stmtDeleteByUNameIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId());
        stmtDeleteByUNameIdx.setString(argIdx++,
                (Authorization == null) ? "" : Authorization.getSecUserId().toString());
        stmtDeleteByUNameIdx.setString(argIdx++,
                (Authorization == null) ? "" : Authorization.getSecSessionId().toString());
        stmtDeleteByUNameIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecClusterId());
        stmtDeleteByUNameIdx.setLong(argIdx++, (Authorization == null) ? 0 : Authorization.getSecTenantId());
        if (argScopeId != null) {
            stmtDeleteByUNameIdx.setLong(argIdx++, argScopeId.longValue());
        } else {
            stmtDeleteByUNameIdx.setNull(argIdx++, java.sql.Types.BIGINT);
        }
        stmtDeleteByUNameIdx.setString(argIdx++, argName);
        int rowsUpdated = stmtDeleteByUNameIdx.executeUpdate();
    } catch (SQLException e) {
        throw CFLib.getDefaultExceptionFactory().newDbException(getClass(), S_ProcName, e);
    } finally {
        if (resultSet != null) {
            try {
                resultSet.close();
            } catch (SQLException e) {
            }
            resultSet = null;
        }
    }
}