Class Table

  • All Implemented Interfaces:
    java.io.Serializable

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

      • Table

        public Table()
    • 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​(org.xml.sax.ContentHandler handler)
                     throws java.io.IOException,
                            MarshalException,
                            ValidationException
        Parameters:
        handler -
        Throws:
        java.io.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​(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 marshaling
        ValidationException - if this object is an invalid instance according to the schema