org.crazycake.jdbcTemplateTool.utils
类 CatalogUtils

java.lang.Object
  继承者 org.crazycake.jdbcTemplateTool.utils.CatalogUtils

public class CatalogUtils
extends Object


构造方法摘要
CatalogUtils()
           
 
方法摘要
static String changeCatalog(String sql)
          JdbcTemplateTool supports mulitiple catalog query.
static CatalogContext getCatalogContext()
           
static void setCatalogContext(String placeHolder, String catalog)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

CatalogUtils

public CatalogUtils()
方法详细信息

setCatalogContext

public static void setCatalogContext(String placeHolder,
                                     String catalog)

getCatalogContext

public static CatalogContext getCatalogContext()

changeCatalog

public static String changeCatalog(String sql)
JdbcTemplateTool supports mulitiple catalog query. You can put a placeholder before your table name, JdbcTemplateTool will change this placeholder to real catalog name with the catalog stored in catalogContext.

参数:
sql -
返回:


Copyright © 2014. All rights reserved.