|
JavaTM Platform Standard Ed. 6 |
|||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.sql.SQLException
java.sql.SQLWarning
java.sql.DataTruncation
public class DataTruncation
MaxFieldSize
를 초과한 이외의 이유로써 데이터값가 예기 하지 않고 절약할 수 있었을 때에,DataTruncation
예외로서 throw 되는 예외 (기입시), 또는 DataTruncation
경고로서 보고되는 예외 (read시)입니다.
read시의 DataTruncation
의 SQLstate 는 01004
입니다.
기입시의 DataTruncation
의 SQLstate 는 22001
입니다.
생성자 의 개요 | |
---|---|
DataTruncation (int index,
boolean parameter,
boolean read,
int dataSize,
int transferSize)
DataTruncation 객체를 생성합니다. |
|
DataTruncation (int index,
boolean parameter,
boolean read,
int dataSize,
int transferSize,
Throwable cause)
DataTruncation 객체를 생성합니다. |
메소드의 개요 | |
---|---|
int |
getDataSize ()
전송 될 예정이었던 데이터의 바이트수를 가져옵니다. |
int |
getIndex ()
절약할 수 있었던 열 또는 파라미터의 인덱스를 가져옵니다. |
boolean |
getParameter ()
절약할 수 있었던 것이, 파라미터치, 렬치의 머지않아인지를 나타냅니다. |
boolean |
getRead ()
값이 절약하고가 읽기시에 발생했는지의 여부를 나타냅니다. |
int |
getTransferSize ()
실제로 전송 된 데이터의 바이트수를 가져옵니다. |
클래스 java.sql. SQLWarning 로부터 상속된 메소드 |
---|
getNextWarning , setNextWarning |
클래스 java.sql. SQLException 로부터 상속된 메소드 |
---|
getErrorCode , getNextException , getSQLState , iterator , setNextException |
클래스 java.lang. Throwable 로부터 상속된 메소드 |
---|
fillInStackTrace , getCause , getLocalizedMessage , getMessage , getStackTrace , initCause , printStackTrace , printStackTrace , printStackTrace , setStackTrace , toString |
클래스 java.lang. Object 로부터 상속된 메소드 |
---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait |
생성자 의 상세 |
---|
public DataTruncation(int index, boolean parameter, boolean read, int dataSize, int transferSize)
DataTruncation
객체를 생성합니다. 그 때 SQLState 는,read
가 true
로 설정되었을 경우는 01004 에 초기화되어read
가 false
로 설정되었을 경우는 22001 에 초기화됩니다. 또, reason 는 「Data truncation」, 벤더 코드는 0, 그 외의 필드는 지정된 값에 각각 설정됩니다. cause
는 초기화되지 않습니다. Throwable.initCause(java.lang.Throwable)
메소드를 호출하는 것에 의해, 나중에 이것을 초기화할 수 있습니다.
index
- 파라미터치 또는 렬치의 인덱스parameter
- 파라미터값을 절약할 수 있었을 경우는 trueread
- read를 절약할 수 있었을 경우는 truedataSize
- 데이터의 원의 사이즈transferSize
- 절약하고 후의 사이즈public DataTruncation(int index, boolean parameter, boolean read, int dataSize, int transferSize, Throwable cause)
DataTruncation
객체를 생성합니다. 그 때 SQLState 는,read
가 true
로 설정되었을 경우는 01004 에 초기화되어read
가 false
로 설정되었을 경우는 22001 에 초기화됩니다. 또, reason 는 「Data truncation」, 벤더 코드는 0, 그 외의 필드는 지정된 값에 각각 설정됩니다.
index
- 파라미터치 또는 렬치의 인덱스parameter
- 파라미터값을 절약할 수 있었을 경우는 trueread
- read를 절약할 수 있었을 경우는 truedataSize
- 데이터의 원의 사이즈transferSize
- 절약하고 후의 사이즈cause
- 이 DataTruncation
의 기가 되는 원인 (나중에 getCause()
메소드로 취득하기 위해서 보존된다). null 치가 허가되고 있어 원인이 존재하지 않는가 불명한 것을 나타내는메소드의 상세 |
---|
public int getIndex()
열 또는 파라미터의 인덱스가 불명한 경우, 이 값은 -1 이 됩니다. 그 경우,parameter
필드와 read
필드는 무시해 주세요.
public boolean getParameter()
true
, 렬치인 경우는 false
public boolean getRead()
true
, 기입시에 발생했을 경우는 false
public int getDataSize()
-1
이 됩니다.
public int getTransferSize()
-1
이 됩니다.
|
JavaTM Platform Standard Ed. 6 |
|||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.