Class JDOFieldInfoNature
java.lang.Object
org.castor.core.nature.BaseNature
org.exolab.castor.builder.info.nature.JDOFieldInfoNature
- All Implemented Interfaces:
Nature
- Since:
- 1.2.1
- Author:
- Lukas Lang
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the sql column name.Returns the sql type of the column.getId()
Returns the fully qualified class name of the Nature.boolean
isDirty()
Returns true if field will NOT be checked against the database for modification, otherwise false.boolean
Returns true if no update on the column can be performed, false otherwise.void
setColumnName
(String columnName) Sets the sql column name.void
setColumnType
(String sqlType) Sets the column sql type.void
setDirty
(boolean dirty) If set true, field will NOT be checked against the database for modification, otherwise set false.void
setReadOnly
(boolean readOnly) Sets the column read only.Methods inherited from class org.castor.core.nature.BaseNature
getBooleanPropertyDefaultFalse, getHolder, getProperty, getPropertyAsList, getPropertyAsMap, setProperty
-
Constructor Details
-
JDOFieldInfoNature
Constructor taking a FieldInfo.- Parameters:
fieldInfo
- in focus.
-
-
Method Details
-
getId
Returns the fully qualified class name of the Nature.- Returns:
- the nature id.
- See Also:
-
org.exolab.castor.builder.info.nature.Nature#getId()
-
getColumnName
Retrieves the sql column name.- Returns:
- name of the column.
-
getColumnType
Returns the sql type of the column.- Returns:
- the sql type.
-
setColumnName
Sets the sql column name.- Parameters:
columnName
- name of the column.
-
setColumnType
Sets the column sql type.- Parameters:
sqlType
- of the column.
-
isReadOnly
public boolean isReadOnly()Returns true if no update on the column can be performed, false otherwise. Default value is false.- Returns:
- true if readonly, false if not or not set.
-
setReadOnly
public void setReadOnly(boolean readOnly) Sets the column read only.- Parameters:
readOnly
- true if read only.
-
isDirty
public boolean isDirty()Returns true if field will NOT be checked against the database for modification, otherwise false. Default value is false.- Returns:
- true if field is not updated, false if not or not set.
-
setDirty
public void setDirty(boolean dirty) If set true, field will NOT be checked against the database for modification, otherwise set false.- Parameters:
dirty
- true if field should not be updated.
-