类 OracleDialectUtils
- java.lang.Object
-
- org.sagacity.sqltoy.dialect.utils.OracleDialectUtils
-
public class OracleDialectUtils extends Object
- 版本:
- v1.0,Date:2014年12月26日
- 作者:
- zhongxuchen
-
-
构造器概要
构造器 构造器 说明 OracleDialectUtils()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static StoreResultexecuteStore(SqlToyConfig sqlToyConfig, SqlToyContext sqlToyContext, String storeSql, Object[] inParamValues, Integer[] outParamTypes, Connection conn, Integer dbType, int fetchSize)static QueryResultfindPageBySql(SqlToyContext sqlToyContext, SqlToyConfig sqlToyConfig, QueryExecutor queryExecutor, DecryptHandler decryptHandler, Long pageNo, Integer pageSize, Connection conn, Integer dbType, String dialect, int fetchSize, int maxRows)static QueryResultfindTopBySql(SqlToyContext sqlToyContext, SqlToyConfig sqlToyConfig, QueryExecutor queryExecutor, DecryptHandler decryptHandler, Integer topSize, Connection conn, Integer dbType, String dialect, int fetchSize, int maxRows)static StringgetLockSql(String sql, Integer dbType, LockMode lockMode)static QueryResultgetRandomResult(SqlToyContext sqlToyContext, SqlToyConfig sqlToyConfig, QueryExecutor queryExecutor, DecryptHandler decryptHandler, Long totalCount, Long randomCount, Connection conn, Integer dbType, String dialect, int fetchSize, int maxRows)static List<ColumnMeta>getTableColumns(String catalog, String schema, String tableName, Connection conn, Integer dbType, String dialect)static List<TableMeta>getTables(String catalog, String schema, String tableName, Connection conn, Integer dbType, String dialect)static booleanisAssignPKValue(PKStrategy pkStrategy)static Serializableload(SqlToyContext sqlToyContext, Serializable entity, List<Class> cascadeTypes, LockMode lockMode, Connection conn, Integer dbType, String dialect, String tableName)static List<?>loadAll(SqlToyContext sqlToyContext, List<?> entities, List<Class> cascadeTypes, LockMode lockMode, Connection conn, Integer dbType, String tableName, int fetchSize, int maxRows)
-
-
-
方法详细资料
-
load
public static Serializable load(SqlToyContext sqlToyContext, Serializable entity, List<Class> cascadeTypes, LockMode lockMode, Connection conn, Integer dbType, String dialect, String tableName) throws Exception
- 参数:
sqlToyContext-entity-cascadeTypes-lockMode-conn-dbType-dialect-tableName-- 返回:
- 抛出:
Exception
-
loadAll
public static List<?> loadAll(SqlToyContext sqlToyContext, List<?> entities, List<Class> cascadeTypes, LockMode lockMode, Connection conn, Integer dbType, String tableName, int fetchSize, int maxRows) throws Exception
- 参数:
sqlToyContext-entities-cascadeTypes-lockMode-conn-dbType-tableName-fetchSize-maxRows-- 返回:
- 抛出:
Exception
-
findPageBySql
public static QueryResult findPageBySql(SqlToyContext sqlToyContext, SqlToyConfig sqlToyConfig, QueryExecutor queryExecutor, DecryptHandler decryptHandler, Long pageNo, Integer pageSize, Connection conn, Integer dbType, String dialect, int fetchSize, int maxRows) throws Exception
- 参数:
sqlToyContext-sqlToyConfig-queryExecutor-pageNo-pageSize-conn-dbType-dialect-fetchSize-maxRows-- 返回:
- 抛出:
Exception
-
findTopBySql
public static QueryResult findTopBySql(SqlToyContext sqlToyContext, SqlToyConfig sqlToyConfig, QueryExecutor queryExecutor, DecryptHandler decryptHandler, Integer topSize, Connection conn, Integer dbType, String dialect, int fetchSize, int maxRows) throws Exception
- 参数:
sqlToyContext-sqlToyConfig-queryExecutor-topSize-conn-dbType-dialect-fetchSize-maxRows-- 返回:
- 抛出:
Exception
-
getRandomResult
public static QueryResult getRandomResult(SqlToyContext sqlToyContext, SqlToyConfig sqlToyConfig, QueryExecutor queryExecutor, DecryptHandler decryptHandler, Long totalCount, Long randomCount, Connection conn, Integer dbType, String dialect, int fetchSize, int maxRows) throws Exception
- 参数:
sqlToyContext-sqlToyConfig-queryExecutor-totalCount-randomCount-conn-dbType-dialect-fetchSize-maxRows-- 返回:
- 抛出:
Exception
-
executeStore
public static StoreResult executeStore(SqlToyConfig sqlToyConfig, SqlToyContext sqlToyContext, String storeSql, Object[] inParamValues, Integer[] outParamTypes, Connection conn, Integer dbType, int fetchSize) throws Exception
- 参数:
sqlToyConfig-sqlToyContext-storeSql-inParamValues-outParamTypes-conn-dbType-fetchSize-- 返回:
- 抛出:
Exception
-
getTableColumns
public static List<ColumnMeta> getTableColumns(String catalog, String schema, String tableName, Connection conn, Integer dbType, String dialect) throws Exception
- 抛出:
Exception
-
getTables
public static List<TableMeta> getTables(String catalog, String schema, String tableName, Connection conn, Integer dbType, String dialect) throws Exception
- 抛出:
Exception
-
isAssignPKValue
public static boolean isAssignPKValue(PKStrategy pkStrategy)
-
-