Class Table
- java.lang.Object
-
- org.exolab.castor.xml.schema.annotations.jdo.Table
-
- All Implemented Interfaces:
java.io.Serializable
public class Table extends java.lang.Object implements java.io.SerializableElement 'table' is used to specify the table where the Object will be saved.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Table()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteDetachable()TableAccessModeTypegetAccessMode()Returns the value of field 'accessMode'.booleangetDetachable()Returns the value of field 'detachable'.java.lang.StringgetName()Returns the value of field 'name'.PrimaryKeygetPrimaryKey()Returns the value of field 'primaryKey'.booleanhasDetachable()Method hasDetachable.booleanisDetachable()Returns the value of field 'detachable'.booleanisValid()Method isValid.voidmarshal(java.io.Writer out)voidmarshal(org.xml.sax.ContentHandler handler)voidsetAccessMode(TableAccessModeType accessMode)Sets the value of field 'accessMode'.voidsetDetachable(boolean detachable)Sets the value of field 'detachable'.voidsetName(java.lang.String name)Sets the value of field 'name'.voidsetPrimaryKey(PrimaryKey primaryKey)Sets the value of field 'primaryKey'.static Tableunmarshal(java.io.Reader reader)Method unmarshal.voidvalidate()
-
-
-
Method Detail
-
deleteDetachable
public void deleteDetachable()
-
getAccessMode
public TableAccessModeType 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
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 table.- Returns:
- the value of field 'Name'.
-
getPrimaryKey
public PrimaryKey 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
public void marshal(java.io.Writer out) throws MarshalException, ValidationException- 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- 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
-
setAccessMode
public void setAccessMode(TableAccessModeType accessMode)
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
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 table.- Parameters:
name- the value of field 'name'.
-
setPrimaryKey
public void setPrimaryKey(PrimaryKey primaryKey)
Sets the value of field 'primaryKey'.- Parameters:
primaryKey- the value of field 'primaryKey'.
-
unmarshal
public static Table unmarshal(java.io.Reader reader) throws MarshalException, ValidationException
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
public void validate() throws ValidationException- Throws:
ValidationException- if this object is an invalid instance according to the schema
-
-