Package com.scooterframework.orm.sqldataexpress.vendor

Examples of com.scooterframework.orm.sqldataexpress.vendor.DBAdapter


     */
    public static String[] getCatalogAndSchema(String connName) {
      if (connName == null)
        throw new IllegalArgumentException("connName cannot be null.");
     
      DBAdapter dba = DBAdapterFactory.getInstance().getAdapter(connName);
      return dba.getCatalogAndSchema(connName);
    }
View Full Code Here


    public static List<TableInfo> getDatabaseTables(String connName,
                                                String catalog,
                                                String schema,
                                                String tableName,
                                                String[] types) throws SQLException {
      DBAdapter dba = DBAdapterFactory.getInstance().getAdapter(connName);
      catalog = toUpperCaseIfAllowed(dba, catalog);
      schema = toUpperCaseIfAllowed(dba, schema);
      tableName = toUpperCaseIfAllowed(dba, tableName);
       
        List<TableInfo> list = new ArrayList<TableInfo>();
View Full Code Here

       
        try {
            String catalog = sp.getCatalog();
            String schema = sp.getSchema();
            String api = sp.getApi();
            DBAdapter dba = DBAdapterFactory.getInstance().getAdapter(udc.getConnectionName());
           
            boolean foundPlSqlRecord = false;//will skip all output columns when a PL/SQL record is found.//TODO: This code is tied to Oracle. Change it.
            boolean startToRecord = false;
            int previousIndex = -1;
           
View Full Code Here

       
        try {
            String catalog = sp.getCatalog();
            String schema = sp.getSchema();
            String api = sp.getApi();
            DBAdapter dba = DBAdapterFactory.getInstance().getAdapter(udc.getConnectionName());
           
            boolean startToRecord = false;
            int previousIndex = -1;
           
            DatabaseMetaData dbmd = connection.getMetaData();
View Full Code Here

       
        if (tableName == null)
            throw new IllegalArgumentException("Table name is empty.");
       
        String connName = udc.getConnectionName();
        DBAdapter dba = DBAdapterFactory.getInstance().getAdapter(connName);
        String[] s3 = dba.resolveCatalogAndSchemaAndTable(connName, tableName);
        String catalog = s3[0];
        String schema = s3[1];
        String table = s3[2];
       
        TableInfo ti = null;
View Full Code Here

        throw new IllegalArgumentException("connName cannot be null.");
     
        if (tableName == null)
            throw new IllegalArgumentException("tableName cannot be null.");

        DBAdapter dba = DBAdapterFactory.getInstance().getAdapter(connName);
        String[] s3 = dba.resolveCatalogAndSchemaAndTable(connName, tableName);
        String catalog = s3[0];
        String schema = s3[1];
        String table = s3[2];
       
        PrimaryKey pk = DBStore.getInstance().getPrimaryKey(connName, catalog, schema, table);
View Full Code Here

        throw new IllegalArgumentException("connName cannot be null.");

      if (table == null)
        throw new IllegalArgumentException("table cannot be null.");
     
      DBAdapter dba = DBAdapterFactory.getInstance().getAdapter(connName);
      String countSQL = dba.getTotalCountSQL(connName, table);
     
        Map<String, Object> inputs = new HashMap<String, Object>();
        inputs.put(DataProcessor.input_key_database_connection_name, connName);

        Object result = SqlServiceClient.retrieveObjectBySQL(countSQL, inputs);
View Full Code Here

        throw new IllegalArgumentException("connName cannot be null.");

      if (table == null)
        throw new IllegalArgumentException("table cannot be null.");
     
      DBAdapter dba = DBAdapterFactory.getInstance().getAdapter(connName);
      return dba.getRetrieveAllSQL(connName, table);
    }
View Full Code Here

        throw new IllegalArgumentException("connName cannot be null.");

      if (table == null)
        throw new IllegalArgumentException("table cannot be null.");
     
      DBAdapter dba = DBAdapterFactory.getInstance().getAdapter(connName);
      return dba.getExpandedTableName(connName, table);
    }
View Full Code Here

   
    public DBAdapter getDBAdapter(String connName) {
        if (connName == null) return null;

        String dbaKey = getDbaKeyForCurrentThreadCache(connName);
        DBAdapter dba = null;
       
        if (DatabaseConfig.getInstance().isInDevelopmentEnvironment()) {
            dba = (DBAdapter)CurrentThreadCache.get(dbaKey);
            return dba;
        }
View Full Code Here

TOP

Related Classes of com.scooterframework.orm.sqldataexpress.vendor.DBAdapter

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.