java.lang.Object
org.exolab.castor.xml.schema.annotations.jdo.Table
All Implemented Interfaces:
Serializable

public class Table extends Object implements Serializable
Element 'table' is used to specify the table where the Object will be saved.
Version:
$Revision$ $Date$
See Also:
  • Constructor Details

    • Table

      public Table()
  • Method Details

    • 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 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(Writer out) throws MarshalException, ValidationException
      Parameters:
      out -
      Throws:
      MarshalException - if object is null or if any SAXException is thrown during marshaling
      ValidationException - 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 marshaling
      ValidationException - if this object is an invalid instance according to the schema
      MarshalException - 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(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(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 marshaling
      ValidationException - 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