Class Column
java.lang.Object
org.exolab.castor.xml.schema.annotations.jdo.ReadonlyDirtyType
org.exolab.castor.xml.schema.annotations.jdo.Column
- All Implemented Interfaces:
Serializable
Element 'column' is used to specify the column where the
property of an object will be saved.
- Version:
- $Revision$ $Date$
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanReturns the value of field 'acceptNull'.getName()Returns the value of field 'name'.getType()Returns the value of field 'type'.booleanMethod hasAcceptNull.booleanReturns the value of field 'acceptNull'.booleanisValid()Method isValid.voidvoidmarshal(ContentHandler handler) voidsetAcceptNull(boolean acceptNull) Sets the value of field 'acceptNull'.voidSets the value of field 'name'.voidSets the value of field 'type'.static ReadonlyDirtyTypeMethod unmarshal.voidvalidate()Methods inherited from class org.exolab.castor.xml.schema.annotations.jdo.ReadonlyDirtyType
deleteDirty, deleteReadOnly, getDirty, getReadOnly, hasDirty, hasReadOnly, isDirty, isReadOnly, setDirty, setReadOnly
-
Constructor Details
-
Column
public Column()
-
-
Method Details
-
deleteAcceptNull
public void deleteAcceptNull() -
getAcceptNull
public boolean getAcceptNull()Returns the value of field 'acceptNull'. The field 'acceptNull' has the following description: Specifies if this field accepts NULL values or not.- Returns:
- the value of field 'AcceptNull'.
-
getName
Returns the value of field 'name'. The field 'name' has the following description: Attribute 'name' is used to specify the name of the column.- Returns:
- the value of field 'Name'.
-
getType
Returns the value of field 'type'. The field 'type' has the following description: Attribute 'type' is used to specify the JDO-type of the column.- Returns:
- the value of field 'Type'.
-
hasAcceptNull
public boolean hasAcceptNull()Method hasAcceptNull.- Returns:
- true if at least one AcceptNull has been added
-
isAcceptNull
public boolean isAcceptNull()Returns the value of field 'acceptNull'. The field 'acceptNull' has the following description: Specifies if this field accepts NULL values or not.- Returns:
- the value of field 'AcceptNull'.
-
isValid
public boolean isValid()Method isValid.- Overrides:
isValidin classReadonlyDirtyType- Returns:
- true if this object is valid according to the schema
-
marshal
- Overrides:
marshalin classReadonlyDirtyType- Parameters:
out-- Throws:
MarshalException- if object is null or if any SAXException is thrown during marshalingValidationException- if this object is an invalid instance according to the schema
-
marshal
public void marshal(ContentHandler handler) throws IOException, MarshalException, ValidationException - Overrides:
marshalin classReadonlyDirtyType- Parameters:
handler-- Throws:
IOException- if an IOException occurs during marshalingValidationException- if this object is an invalid instance according to the schemaMarshalException- if object is null or if any SAXException is thrown during marshaling
-
setAcceptNull
public void setAcceptNull(boolean acceptNull) Sets the value of field 'acceptNull'. The field 'acceptNull' has the following description: Specifies if this field accepts NULL values or not.- Parameters:
acceptNull- the value of field 'acceptNull'.
-
setName
Sets the value of field 'name'. The field 'name' has the following description: Attribute 'name' is used to specify the name of the column.- Parameters:
name- the value of field 'name'.
-
setType
Sets the value of field 'type'. The field 'type' has the following description: Attribute 'type' is used to specify the JDO-type of the column.- Parameters:
type- the value of field 'type'.
-
unmarshal
public static ReadonlyDirtyType unmarshal(Reader reader) throws MarshalException, ValidationException Method unmarshal.- Parameters:
reader-- Returns:
- the unmarshaled org.exolab.castor.xml.schema.annotations.jdo.ReadonlyDirtyTyp
- Throws:
MarshalException- if object is null or if any SAXException is thrown during marshalingValidationException- if this object is an invalid instance according to the schema
-
validate
- Overrides:
validatein classReadonlyDirtyType- Throws:
ValidationException- if this object is an invalid instance according to the schema
-