Package xgenerator.jdbc

Examples of xgenerator.jdbc.JdbcContext


      tables.add("EAP_ROLES");
      tables.add("EAP_MENUS");
      return tables;
    }
   
    JdbcContext jdbcContext = JdbcContext.getJdbcContext(dataSourceName);
    Connection conn = null;
    Statement stmt = null;
    ResultSet rs = null;
    try {
      conn = jdbcContext.currentConnection();
      stmt = conn.createStatement();
      String sql = "SELECT T.TABLE_NAME FROM USER_TABLES T ORDER BY T.TABLE_NAME";
      //System.out.println(sql);
      rs = stmt.executeQuery(sql);
     
View Full Code Here


   * @see xgenerator.dao.impl.MetadataDaoJdbcAdapter#getTables(java.lang.String)
   */
  public Vector<String> getTables(String dataSourceName) {
    Vector<String> tableList = new Vector<String>();
   
    JdbcContext jdbcContext = JdbcContext.getJdbcContext(dataSourceName);
    Connection conn = null;
    Statement stmt = null;
    ResultSet rs = null;
    try {
      conn = jdbcContext.currentConnection();
      stmt = conn.createStatement();
      String sql = "SELECT T.NAME FROM sysobjects T WHERE TYPE ='U' ORDER BY T.NAME";
      rs = stmt.executeQuery(sql);
     
      while(rs.next()) {
View Full Code Here

   * @see xgenerator.dao.impl.MetadataDaoJdbcAdapter#getTables(java.lang.String)
   */
  public Vector<String> getTables(String dataSourceName) {
    Vector<String> tableList = new Vector<String>();
   
    JdbcContext jdbcContext = JdbcContext.getJdbcContext(dataSourceName);
    Connection conn = null;
    Statement stmt = null;
    ResultSet rs = null;
    try {
      conn = jdbcContext.currentConnection();
      String tableSchema = conn.getCatalog();
      stmt = conn.createStatement();
      String sql = "SELECT T.TABLE_NAME FROM INFORMATION_SCHEMA.TABLES T WHERE T.TABLE_CATALOG='DEF' AND TABLE_SCHEMA='" + tableSchema + "' ORDER BY T.TABLE_NAME";
      rs = stmt.executeQuery(sql);
     
View Full Code Here

   * @see xgenerator.dao.impl.MetadataDaoJdbcAdapter#getTables(java.lang.String)
   */
  public Vector<String> getTables(String dataSourceName) {
    Vector<String> tableList = new Vector<String>();
   
    JdbcContext jdbcContext = JdbcContext.getJdbcContext(dataSourceName);
    Connection conn = null;
    Statement stmt = null;
    ResultSet rs = null;
    try {
      conn = jdbcContext.currentConnection();
      stmt = conn.createStatement();
      String sql = "SELECT T.TABLE_NAME FROM USER_TABLES T";
      rs = stmt.executeQuery(sql);
     
      while(rs.next()) {
View Full Code Here

   * @see xgenerator.dao.impl.MetadataDaoJdbcAdapter#getTables(java.lang.String)
   */
  public Vector<String> getTables(String dataSourceName) {
    Vector<String> tableList = new Vector<String>();
   
    JdbcContext jdbcContext = JdbcContext.getJdbcContext(dataSourceName);
    Connection conn = null;
    Statement stmt = null;
    ResultSet rs = null;
    try {
      conn = jdbcContext.currentConnection();
      stmt = conn.createStatement();
      String sql = "SELECT T.NAME FROM sysobjects T WHERE TYPE ='U' ORDER BY T.NAME";
      rs = stmt.executeQuery(sql);
     
      while(rs.next()) {
View Full Code Here

TOP

Related Classes of xgenerator.jdbc.JdbcContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.