Class Table
java.lang.Object
org.exolab.castor.xml.schema.annotations.jdo.Table
- All Implemented Interfaces:
Serializable
Element 'table' is used to specify the table where the
Object will be saved.
- Version:
- $Revision$ $Date$
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Returns the value of field 'accessMode'.boolean
Returns the value of field 'detachable'.getName()
Returns the value of field 'name'.Returns the value of field 'primaryKey'.boolean
Method hasDetachable.boolean
Returns the value of field 'detachable'.boolean
isValid()
Method isValid.void
void
marshal
(ContentHandler handler) void
setAccessMode
(TableAccessModeType accessMode) Sets the value of field 'accessMode'.void
setDetachable
(boolean detachable) Sets the value of field 'detachable'.void
Sets the value of field 'name'.void
setPrimaryKey
(PrimaryKey primaryKey) Sets the value of field 'primaryKey'.static Table
Method unmarshal.void
validate()
-
Constructor Details
-
Table
public Table()
-
-
Method Details
-
deleteDetachable
public void deleteDetachable() -
getAccessMode
Returns the value of field 'accessMode'.- Returns:
- the value of field 'AccessMode'.
-
getDetachable
public boolean getDetachable()Returns the value of field 'detachable'. The field 'detachable' has the following description: Attribute 'detachable' is used to indicate that the domain entity generated will support Castor JDO long transactions out of the box.- Returns:
- the value of field 'Detachable'.
-
getName
Returns the value of field 'name'. The field 'name' has the following description: Attribute 'name' is used to specify the name of the table.- Returns:
- the value of field 'Name'.
-
getPrimaryKey
Returns the value of field 'primaryKey'.- Returns:
- the value of field 'PrimaryKey'.
-
hasDetachable
public boolean hasDetachable()Method hasDetachable.- Returns:
- true if at least one Detachable has been added
-
isDetachable
public boolean isDetachable()Returns the value of field 'detachable'. The field 'detachable' has the following description: Attribute 'detachable' is used to indicate that the domain entity generated will support Castor JDO long transactions out of the box.- Returns:
- the value of field 'Detachable'.
-
isValid
public boolean isValid()Method isValid.- Returns:
- true if this object is valid according to the schema
-
marshal
- 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 - 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
-
setAccessMode
Sets the value of field 'accessMode'.- Parameters:
accessMode
- the value of field 'accessMode'.
-
setDetachable
public void setDetachable(boolean detachable) Sets the value of field 'detachable'. The field 'detachable' has the following description: Attribute 'detachable' is used to indicate that the domain entity generated will support Castor JDO long transactions out of the box.- Parameters:
detachable
- the value of field 'detachable'.
-
setName
Sets the value of field 'name'. The field 'name' has the following description: Attribute 'name' is used to specify the name of the table.- Parameters:
name
- the value of field 'name'.
-
setPrimaryKey
Sets the value of field 'primaryKey'.- Parameters:
primaryKey
- the value of field 'primaryKey'.
-
unmarshal
Method unmarshal.- Parameters:
reader
-- Returns:
- the unmarshaled org.exolab.castor.xml.schema.annotations.jdo.Table
- 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
- Throws:
ValidationException
- if this object is an invalid instance according to the schema
-