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 TypeMethodDescriptionvoid
boolean
Returns the value of field 'acceptNull'.getName()
Returns the value of field 'name'.getType()
Returns the value of field 'type'.boolean
Method hasAcceptNull.boolean
Returns the value of field 'acceptNull'.boolean
isValid()
Method isValid.void
void
marshal
(ContentHandler handler) void
setAcceptNull
(boolean acceptNull) Sets the value of field 'acceptNull'.void
Sets the value of field 'name'.void
Sets the value of field 'type'.static ReadonlyDirtyType
Method unmarshal.void
validate()
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:
isValid
in classReadonlyDirtyType
- Returns:
- true if this object is valid according to the schema
-
marshal
- Overrides:
marshal
in 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:
marshal
in 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:
validate
in classReadonlyDirtyType
- Throws:
ValidationException
- if this object is an invalid instance according to the schema
-