public interface MetaData<T>
extends java.io.Serializable
Modifier and Type | Method and Description |
---|---|
java.lang.Class<T> |
getDomainClass() |
java.lang.Class<?> |
getFieldClass(int fieldIndex) |
java.lang.String |
getFieldClassName(int fieldIndex) |
int |
getFieldCount() |
int |
getFieldIndexByFieldName(java.lang.String searchedFieldName) |
java.lang.String |
getFieldLabel(int fieldIndex) |
java.lang.String |
getFieldName(int fieldIndex) |
java.util.Map<java.lang.String,java.lang.String> |
getMapping() |
int |
getPrecision(int fieldIndex)
Get the designated field's number of decimal digits.
|
java.lang.reflect.Method |
getReadMethod(int fieldIndex) |
int |
getScale(int fieldIndex)
Gets the designated field's number of digits to right of the decimal
point.
|
java.lang.reflect.Method |
getWriteMethod(int fieldIndex) |
boolean |
isCaseSensitive(int fieldIndex)
Indicates whether a field's case matters.
|
boolean |
isCurrency(int fieldIndex)
Indicates whether the designated field is a cash value.
|
boolean |
isDefinitelyWritable(int fieldIndex)
Indicates whether a write on the designated field will definitely
succeed.
|
int |
isNullable(int fieldIndex)
Indicates the nullability of values in the designated field.
|
boolean |
isPopulated() |
boolean |
isReadOnly(int fieldIndex)
Indicates whether the designated field is definitely not writable.
|
boolean |
isSearchable(int fieldIndex)
Indicates whether the designated field can be used in a where clause.
|
boolean |
isSigned(int fieldIndex)
Indicates whether values in the designated field are signed numbers.
|
boolean |
isThrowMissingFieldException() |
boolean |
isWritable(int fieldIndex)
Indicates whether it is possible for a write on the designated field to
succeed.
|
void |
populate(java.util.Map<java.lang.String,java.lang.String> mapping,
java.lang.Class domainClass) |
void |
setCaseSensitive(int fieldIndex,
boolean property)
Sets whether the designated field is case sensitive.
|
void |
setCurrency(int fieldIndex,
boolean property)
Sets whether the designated field is a cash value.
|
void |
setDefinitelyWritable(int fieldIndex,
boolean definitelyWritable) |
void |
setFieldClass(int fieldIndex,
java.lang.Class<?> fieldClass) |
void |
setFieldClassName(int fieldIndex,
java.lang.String fieldClassName) |
void |
setFieldCount(int fieldCount) |
void |
setFieldLabel(int fieldIndex,
java.lang.String fieldLabel) |
void |
setFieldName(int fieldIndex,
java.lang.String fieldName) |
void |
setNullable(int fieldIndex,
int property)
Sets whether the designated field's value can be set to
NULL . |
void |
setPrecision(int fieldIndex,
int precision)
Sets the designated field's number of decimal digits to the given
int . |
void |
setReadMethod(int fieldIndex,
java.lang.reflect.Method readMethod) |
void |
setReadOnly(int fieldIndex,
boolean readOnly) |
void |
setScale(int fieldIndex,
int scale)
Sets the designated field's number of digits to the right of the decimal
point to the given
int . |
void |
setSearchable(int fieldIndex,
boolean property)
Sets whether the designated field can be used in a where clause.
|
void |
setSigned(int fieldIndex,
boolean property)
Sets whether the designated field is a signed number.
|
void |
setThrowMissingFieldException(boolean throwMissingFieldException) |
void |
setWritable(int fieldIndex,
boolean writable) |
void |
setWriteMethod(int fieldIndex,
java.lang.reflect.Method writeMethod) |
java.lang.String |
toLabel(java.lang.String fieldName) |
java.lang.Class<T> getDomainClass()
java.lang.Class<?> getFieldClass(int fieldIndex)
java.lang.String getFieldClassName(int fieldIndex) throws DataAccessException
DataAccessException
int getFieldCount()
int getFieldIndexByFieldName(java.lang.String searchedFieldName)
java.lang.String getFieldLabel(int fieldIndex) throws DataAccessException
DataAccessException
java.lang.String getFieldName(int fieldIndex) throws DataAccessException
DataAccessException
java.util.Map<java.lang.String,java.lang.String> getMapping()
boolean isPopulated()
int getPrecision(int fieldIndex) throws DataAccessException
DataAccessException
- if an error occursjava.lang.reflect.Method getReadMethod(int fieldIndex) throws DataAccessException
DataAccessException
int getScale(int fieldIndex) throws DataAccessException
DataAccessException
- if an error occursjava.lang.reflect.Method getWriteMethod(int fieldIndex) throws DataAccessException
DataAccessException
boolean isCaseSensitive(int fieldIndex) throws DataAccessException
true
if so; false
otherwiseDataAccessException
- if an error occursboolean isCurrency(int fieldIndex) throws DataAccessException
true
if so; false
otherwiseDataAccessException
- if an error occursboolean isDefinitelyWritable(int fieldIndex) throws DataAccessException
true
if so; false
otherwiseDataAccessException
- if an error occursint isNullable(int fieldIndex) throws DataAccessException
fieldNoNulls
, fieldNullable
or
fieldNullableUnknown
DataAccessException
- if an error occursboolean isReadOnly(int fieldIndex) throws DataAccessException
true
if so; false
otherwiseDataAccessException
- if an error occursboolean isSearchable(int fieldIndex) throws DataAccessException
true
if so; false
otherwiseDataAccessException
- if an error occursboolean isSigned(int fieldIndex) throws DataAccessException
true
if so; false
otherwiseDataAccessException
- if an error occursboolean isThrowMissingFieldException()
boolean isWritable(int fieldIndex) throws DataAccessException
true
if so; false
otherwiseDataAccessException
- if an error occursvoid populate(java.util.Map<java.lang.String,java.lang.String> mapping, java.lang.Class domainClass) throws DataAccessException
DataAccessException
void setCaseSensitive(int fieldIndex, boolean property) throws DataAccessException
false
.property
- true
if the field is case sensitive;
false
if it is notDataAccessException
- if an error occursvoid setCurrency(int fieldIndex, boolean property) throws DataAccessException
false
.property
- true
if the field is a cash value;
false
if it is notDataAccessException
- if an error occursvoid setDefinitelyWritable(int fieldIndex, boolean definitelyWritable)
void setFieldClass(int fieldIndex, java.lang.Class<?> fieldClass)
void setFieldClassName(int fieldIndex, java.lang.String fieldClassName) throws DataAccessException
DataAccessException
void setFieldCount(int fieldCount)
void setFieldLabel(int fieldIndex, java.lang.String fieldLabel) throws DataAccessException
DataAccessException
void setFieldName(int fieldIndex, java.lang.String fieldName) throws DataAccessException
DataAccessException
void setNullable(int fieldIndex, int property) throws DataAccessException
NULL
. The default is
ResultSetMetaData.fieldNullableUnknown
property
- one of the following constants:
ResultSetMetaData.fieldNoNulls
,
ResultSetMetaData.fieldNullable
, or
ResultSetMetaData.fieldNullableUnknown
DataAccessException
- if an error occursvoid setPrecision(int fieldIndex, int precision) throws DataAccessException
int
.precision
- the total number of decimal digitsDataAccessException
- if an error occursvoid setReadMethod(int fieldIndex, java.lang.reflect.Method readMethod)
void setReadOnly(int fieldIndex, boolean readOnly) throws DataAccessException
DataAccessException
void setScale(int fieldIndex, int scale) throws DataAccessException
int
.scale
- the number of digits to right of decimal pointDataAccessException
- if an error occursvoid setSearchable(int fieldIndex, boolean property) throws DataAccessException
false
.property
- true
if the field can be used in a
WHERE
clause; false
if it cannotDataAccessException
- if an error occursvoid setSigned(int fieldIndex, boolean property) throws DataAccessException
false
.property
- true
if the field is a signed number;
false
if it is notDataAccessException
- if an error occursvoid setThrowMissingFieldException(boolean throwMissingFieldException)
void setWritable(int fieldIndex, boolean writable)
void setWriteMethod(int fieldIndex, java.lang.reflect.Method writeMethod)
java.lang.String toLabel(java.lang.String fieldName)