java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.seasar.doma.DomaException
org.seasar.doma.jdbc.JdbcException
org.seasar.doma.jdbc.UnknownColumnException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
UnknownColumnAdditionalInfoException
Thrown to indicate that there is the column that is unknown to an entity.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final Stringprotected final Stringprotected final Stringprotected final SqlKindprotected final Stringprotected final StringFields inherited from class org.seasar.doma.DomaException
args, messageResource -
Constructor Summary
ConstructorsModifierConstructorDescriptionUnknownColumnException(SqlLogType logType, String columnName, String expectedPropertyName, String entityClassName, SqlKind kind, String rawSql, String formattedSql, String sqlFilePath) protectedUnknownColumnException(MessageResource messageCode, Object[] args, String columnName, String expectedPropertyName, String entityClassName, SqlKind kind, String rawSql, String formattedSql, String sqlFilePath) -
Method Summary
Modifier and TypeMethodDescriptionReturns the unknown column name.Returns the entity class name.Returns the expected property name that is mapped to the unknown column name.Returns the formatted SQL stringgetKind()Returns the SQL kind.Returns the raw SQL string.Returns the SQL file path.Methods inherited from class org.seasar.doma.jdbc.JdbcException
choiceSqlMethods inherited from class org.seasar.doma.DomaException
getArgs, getMessageResourceMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
columnName
-
expectedPropertyName
-
entityClassName
-
kind
-
rawSql
-
formattedSql
-
sqlFilePath
-
-
Constructor Details
-
UnknownColumnException
-
UnknownColumnException
-
-
Method Details
-
getKind
Returns the SQL kind.- Returns:
- the SQL kind
-
getEntityClassName
Returns the entity class name.- Returns:
- the entity class name
-
getColumnName
Returns the unknown column name.- Returns:
- the unknown column name
-
getExpectedPropertyName
Returns the expected property name that is mapped to the unknown column name.- Returns:
- the expected property name
-
getRawSql
Returns the raw SQL string.- Returns:
- the raw SQL string
-
getFormattedSql
Returns the formatted SQL string- Returns:
- the formatted SQL or
nullif this exception is thrown in the batch process
-
getSqlFilePath
Returns the SQL file path.- Returns:
- the SQL file path or
nullif the SQL is auto generated
-