Class ProcedureCallOption<R>
java.lang.Object
com.gsitm.ustra.java.data.utils.procedure.ProcedureCallOption<R>
프로시져 호출 옵션 객체
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classkey converterstatic class -
Constructor Summary
ConstructorsConstructorDescriptionProcedureCallOption(String procedureName, String schemaName, String databaseName, String datasourceName, boolean convertParameterKeyToUnderScore, List<ProcedureCallOption.KeyConverter> parameterKeyConverters, boolean convertReturnKeyToCamelCase, List<ProcedureCallOption.KeyConverter> returnKeyConverters, boolean function, Class<R> resultClass, Object parameter, Map<String, org.springframework.jdbc.core.RowMapper<?>> returningResultRowMapperMap, List<org.springframework.jdbc.core.SqlParameter> sqlParameters, boolean hasReturnValue, Function<org.springframework.jdbc.core.simple.SimpleJdbcCall, org.springframework.jdbc.core.simple.SimpleJdbcCall> customizeJdbcCall, Function<List<org.springframework.jdbc.core.SqlParameter>, List<org.springframework.jdbc.core.SqlParameter>> customizeSqlParameters) -
Method Summary
Modifier and TypeMethodDescriptionstatic <R> ProcedureCallOption.ProcedureCallOptionBuilder<R>builder()protected booleanbooleanstatic <R> ProcedureCallOption.ProcedureCallOptionBuilder<R>funtionBuilder(String functionName, Object param, Class<R> clazz) Function 호출 빌더 생성static <R> ProcedureCallOption.ProcedureCallOptionBuilder<R>funtionBuilder(String schemaName, String functionName, Object param, Class<R> clazz) Function 호출 빌더 생성Function<org.springframework.jdbc.core.simple.SimpleJdbcCall,org.springframework.jdbc.core.simple.SimpleJdbcCall> customize JdbcCallFunction<List<org.springframework.jdbc.core.SqlParameter>,List<org.springframework.jdbc.core.SqlParameter>> Sql Parameter를 커스토마이징 한다.데이터베이스 명 (링크드 서버)호출 datasource명파라메터파라메터 키 값 변환 converter프로시져 명호출 후 반환 클래스reset set row mapper map리턴 키 값 변환 converter스키마 명List<org.springframework.jdbc.core.SqlParameter>SQL 파라메터를 자동 추출하지 않을 경우, 수동으로 설정하여 사용inthashCode()boolean파라메터 under score key 변환 여부booleanreturn 시, camel case key 값 변환 여부booleanFunction 호출 여부booleanreturn value 포함 여부정규화returnMapBuilder(String procedureName, Object param) map 반환 빌더 생성returnMapBuilder(String schemaName, String procedureName, Object param) map 반환 빌더 생성static <R> ProcedureCallOption.ProcedureCallOptionBuilder<R>returnObjectBuilder(String procedureName, Object param, Class<R> clazz) object 반환 빌더 생성static <R> ProcedureCallOption.ProcedureCallOptionBuilder<R>returnObjectBuilder(String schemaName, String procedureName, Object param, Class<R> clazz) object 반환 빌더 생성voidsetConvertParameterKeyToUnderScore(boolean convertParameterKeyToUnderScore) 파라메터 under score key 변환 여부voidsetConvertReturnKeyToCamelCase(boolean convertReturnKeyToCamelCase) return 시, camel case key 값 변환 여부voidsetCustomizeJdbcCall(Function<org.springframework.jdbc.core.simple.SimpleJdbcCall, org.springframework.jdbc.core.simple.SimpleJdbcCall> customizeJdbcCall) customize JdbcCallvoidsetCustomizeSqlParameters(Function<List<org.springframework.jdbc.core.SqlParameter>, List<org.springframework.jdbc.core.SqlParameter>> customizeSqlParameters) Sql Parameter를 커스토마이징 한다.voidsetDatabaseName(String databaseName) 데이터베이스 명 (링크드 서버)voidsetDatasourceName(String datasourceName) 호출 datasource명voidsetFunction(boolean function) Function 호출 여부voidsetHasReturnValue(boolean hasReturnValue) return value 포함 여부voidsetParameter(Object parameter) 파라메터voidsetParameterKeyConverters(List<ProcedureCallOption.KeyConverter> parameterKeyConverters) 파라메터 키 값 변환 convertervoidsetProcedureName(String procedureName) 프로시져 명voidsetResultClass(Class<R> resultClass) 호출 후 반환 클래스voidsetReturningResultRowMapperMap(Map<String, org.springframework.jdbc.core.RowMapper<?>> returningResultRowMapperMap) reset set row mapper mapvoidsetReturnKeyConverters(List<ProcedureCallOption.KeyConverter> returnKeyConverters) 리턴 키 값 변환 convertervoidsetSchemaName(String schemaName) 스키마 명voidsetSqlParameters(List<org.springframework.jdbc.core.SqlParameter> sqlParameters) SQL 파라메터를 자동 추출하지 않을 경우, 수동으로 설정하여 사용toString()
-
Constructor Details
-
ProcedureCallOption
public ProcedureCallOption() -
ProcedureCallOption
public ProcedureCallOption(String procedureName, String schemaName, String databaseName, String datasourceName, boolean convertParameterKeyToUnderScore, List<ProcedureCallOption.KeyConverter> parameterKeyConverters, boolean convertReturnKeyToCamelCase, List<ProcedureCallOption.KeyConverter> returnKeyConverters, boolean function, Class<R> resultClass, Object parameter, Map<String, org.springframework.jdbc.core.RowMapper<?>> returningResultRowMapperMap, List<org.springframework.jdbc.core.SqlParameter> sqlParameters, boolean hasReturnValue, Function<org.springframework.jdbc.core.simple.SimpleJdbcCall, org.springframework.jdbc.core.simple.SimpleJdbcCall> customizeJdbcCall, Function<List<org.springframework.jdbc.core.SqlParameter>, List<org.springframework.jdbc.core.SqlParameter>> customizeSqlParameters)
-
-
Method Details
-
nomarlize
정규화- Returns:
-
returnMapBuilder
public static ProcedureCallOption.ProcedureCallOptionBuilder<Map<String,Object>> returnMapBuilder(String procedureName, Object param) map 반환 빌더 생성- Parameters:
procedureName- 프로시져 명param- 파라메터- Returns:
- ProcedureCallOptionBuilder
-
returnMapBuilder
public static ProcedureCallOption.ProcedureCallOptionBuilder<Map<String,Object>> returnMapBuilder(String schemaName, String procedureName, Object param) map 반환 빌더 생성- Parameters:
schemaName- 스키마 명procedureName- 프로시져 명param- 파라메터- Returns:
- ProcedureCallOptionBuilder
-
returnObjectBuilder
public static <R> ProcedureCallOption.ProcedureCallOptionBuilder<R> returnObjectBuilder(String procedureName, Object param, Class<R> clazz) object 반환 빌더 생성- Type Parameters:
R- 반환 모델 클래스- Parameters:
procedureName- 프로시저 명param- 파라메터clazz- 결과 클래스- Returns:
- ProcedureCallOptionBuilder
-
returnObjectBuilder
public static <R> ProcedureCallOption.ProcedureCallOptionBuilder<R> returnObjectBuilder(String schemaName, String procedureName, Object param, Class<R> clazz) object 반환 빌더 생성- Type Parameters:
R- 반환 모델 클래스- Parameters:
schemaName- 스키마 명procedureName- 프로시저 명param- 파라메터clazz- 결과 클래스- Returns:
- ProcedureCallOptionBuilder
-
funtionBuilder
public static <R> ProcedureCallOption.ProcedureCallOptionBuilder<R> funtionBuilder(String functionName, Object param, Class<R> clazz) Function 호출 빌더 생성- Type Parameters:
R- 반환 모델 클래스- Parameters:
functionName- function명param- 파라메터clazz- 결과 클래스- Returns:
- ProcedureCallOptionBuilder
-
funtionBuilder
public static <R> ProcedureCallOption.ProcedureCallOptionBuilder<R> funtionBuilder(String schemaName, String functionName, Object param, Class<R> clazz) Function 호출 빌더 생성- Type Parameters:
R- 반환 모델 클래스- Parameters:
schemaName- 스키마 명functionName- function명param- 파라메터clazz- 결과 클래스- Returns:
- ProcedureCallOptionBuilder
-
builder
-
getProcedureName
프로시져 명 -
getSchemaName
스키마 명 -
getDatabaseName
데이터베이스 명 (링크드 서버) -
getDatasourceName
호출 datasource명 -
isConvertParameterKeyToUnderScore
public boolean isConvertParameterKeyToUnderScore()파라메터 under score key 변환 여부 -
getParameterKeyConverters
파라메터 키 값 변환 converter -
isConvertReturnKeyToCamelCase
public boolean isConvertReturnKeyToCamelCase()return 시, camel case key 값 변환 여부 -
getReturnKeyConverters
리턴 키 값 변환 converter -
isFunction
public boolean isFunction()Function 호출 여부 -
getResultClass
호출 후 반환 클래스 -
getParameter
파라메터 -
getReturningResultRowMapperMap
reset set row mapper map -
getSqlParameters
SQL 파라메터를 자동 추출하지 않을 경우, 수동으로 설정하여 사용 -
isHasReturnValue
public boolean isHasReturnValue()return value 포함 여부 -
getCustomizeJdbcCall
public Function<org.springframework.jdbc.core.simple.SimpleJdbcCall,org.springframework.jdbc.core.simple.SimpleJdbcCall> getCustomizeJdbcCall()customize JdbcCall -
getCustomizeSqlParameters
public Function<List<org.springframework.jdbc.core.SqlParameter>,List<org.springframework.jdbc.core.SqlParameter>> getCustomizeSqlParameters()Sql Parameter를 커스토마이징 한다. -
setProcedureName
프로시져 명 -
setSchemaName
스키마 명 -
setDatabaseName
데이터베이스 명 (링크드 서버) -
setDatasourceName
호출 datasource명 -
setConvertParameterKeyToUnderScore
public void setConvertParameterKeyToUnderScore(boolean convertParameterKeyToUnderScore) 파라메터 under score key 변환 여부 -
setParameterKeyConverters
public void setParameterKeyConverters(List<ProcedureCallOption.KeyConverter> parameterKeyConverters) 파라메터 키 값 변환 converter -
setConvertReturnKeyToCamelCase
public void setConvertReturnKeyToCamelCase(boolean convertReturnKeyToCamelCase) return 시, camel case key 값 변환 여부 -
setReturnKeyConverters
리턴 키 값 변환 converter -
setFunction
public void setFunction(boolean function) Function 호출 여부 -
setResultClass
호출 후 반환 클래스 -
setParameter
파라메터 -
setReturningResultRowMapperMap
public void setReturningResultRowMapperMap(Map<String, org.springframework.jdbc.core.RowMapper<?>> returningResultRowMapperMap) reset set row mapper map -
setSqlParameters
SQL 파라메터를 자동 추출하지 않을 경우, 수동으로 설정하여 사용 -
setHasReturnValue
public void setHasReturnValue(boolean hasReturnValue) return value 포함 여부 -
setCustomizeJdbcCall
public void setCustomizeJdbcCall(Function<org.springframework.jdbc.core.simple.SimpleJdbcCall, org.springframework.jdbc.core.simple.SimpleJdbcCall> customizeJdbcCall) customize JdbcCall -
setCustomizeSqlParameters
public void setCustomizeSqlParameters(Function<List<org.springframework.jdbc.core.SqlParameter>, List<org.springframework.jdbc.core.SqlParameter>> customizeSqlParameters) Sql Parameter를 커스토마이징 한다. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-