Class Column
- java.lang.Object
-
- org.exolab.castor.xml.schema.annotations.jdo.ReadonlyDirtyType
-
- org.exolab.castor.xml.schema.annotations.jdo.Column
-
- All Implemented Interfaces:
java.io.Serializable
public class Column extends ReadonlyDirtyType implements java.io.Serializable
Element 'column' is used to specify the column where the property of an object will be saved.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Column()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteAcceptNull()
boolean
getAcceptNull()
Returns the value of field 'acceptNull'.java.lang.String
getName()
Returns the value of field 'name'.java.lang.String
getType()
Returns the value of field 'type'.boolean
hasAcceptNull()
Method hasAcceptNull.boolean
isAcceptNull()
Returns the value of field 'acceptNull'.boolean
isValid()
Method isValid.void
marshal(java.io.Writer out)
void
marshal(org.xml.sax.ContentHandler handler)
void
setAcceptNull(boolean acceptNull)
Sets the value of field 'acceptNull'.void
setName(java.lang.String name)
Sets the value of field 'name'.void
setType(java.lang.String type)
Sets the value of field 'type'.static ReadonlyDirtyType
unmarshal(java.io.Reader reader)
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
-
-
-
-
Method Detail
-
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
public java.lang.String 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
public java.lang.String 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
public void marshal(java.io.Writer out) throws MarshalException, ValidationException
- 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(org.xml.sax.ContentHandler handler) throws java.io.IOException, MarshalException, ValidationException
- Overrides:
marshal
in classReadonlyDirtyType
- Parameters:
handler
-- Throws:
java.io.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
public void setName(java.lang.String name)
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
public void setType(java.lang.String type)
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(java.io.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
public void validate() throws ValidationException
- Overrides:
validate
in classReadonlyDirtyType
- Throws:
ValidationException
- if this object is an invalid instance according to the schema
-
-