com.jeceira.persistence.info
Class NodeDefInfo

java.lang.Object
  extended bycom.jeceira.persistence.info.ItemDefInfo
      extended bycom.jeceira.persistence.info.NodeDefInfo

public class NodeDefInfo
extends ItemDefInfo

Info representing a node definition in a database.

Author:
Kristian Duske, Valeri Felberg

Constructor Summary
NodeDefInfo(java.lang.String declaringNodeTypeName, int defNumber, java.lang.String defName, java.lang.String onParentVersion)
          Creates info for a node definition with the specified declaring node type name, definition name and number, and versioning behaviour.
 
Method Summary
 void addRequiredPrimaryType(java.lang.String requiredPrimaryType)
          Adds a required primary type name to the represented node definition.
 boolean allowsSameNameSibs()
          Indicates if nodes with the represented node definition allow same-name siblings.
 java.lang.String getDefaultPrimaryType()
          Returns the name of the default primary type for child nodes of a node with the represented node definition or null if there is none.
 java.lang.String[] getRequiredPrimaryTypes()
          Returns the names of the node types required for child nodes of a node with the represented node definition or empty array if there are none.
 void setDefaultPrimaryType(java.lang.String defaultPrimaryType)
          Sets the name of the default primary type for child nodes of a node with the represented node definition.
 void setSameNameSibs(boolean sameNameSibs)
          Specifies if nodes with the represented node definition allow same-name siblings.
static NodeDefInfo valueOf(java.sql.ResultSet resultSet)
          Converts a result set into an instance of this class.
 
Methods inherited from class com.jeceira.persistence.info.ItemDefInfo
getDeclaringNodeTypeName, getDefName, getDefNumber, getOnParentVersion, isAutoCreated, isMandatory, isProtected, setAutoCreated, setMandatory, setProtected, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeDefInfo

public NodeDefInfo(java.lang.String declaringNodeTypeName,
                   int defNumber,
                   java.lang.String defName,
                   java.lang.String onParentVersion)
Creates info for a node definition with the specified declaring node type name, definition name and number, and versioning behaviour.

Throws:
java.lang.NullPointerException - if any of the arguments is null
Method Detail

valueOf

public static NodeDefInfo valueOf(java.sql.ResultSet resultSet)
                           throws java.sql.SQLException
Converts a result set into an instance of this class.

Throws:
java.lang.NullPointerException - if the specified result set is null
java.sql.SQLException - if an error occurrs while reading values from the result set

addRequiredPrimaryType

public void addRequiredPrimaryType(java.lang.String requiredPrimaryType)
Adds a required primary type name to the represented node definition.

Throws:
java.lang.NullPointerException - if the specified primary type name is null

allowsSameNameSibs

public boolean allowsSameNameSibs()
Indicates if nodes with the represented node definition allow same-name siblings.


getDefaultPrimaryType

public java.lang.String getDefaultPrimaryType()
Returns the name of the default primary type for child nodes of a node with the represented node definition or null if there is none.


getRequiredPrimaryTypes

public java.lang.String[] getRequiredPrimaryTypes()
Returns the names of the node types required for child nodes of a node with the represented node definition or empty array if there are none.


setDefaultPrimaryType

public void setDefaultPrimaryType(java.lang.String defaultPrimaryType)
Sets the name of the default primary type for child nodes of a node with the represented node definition. The specified name may be null.


setSameNameSibs

public void setSameNameSibs(boolean sameNameSibs)
Specifies if nodes with the represented node definition allow same-name siblings.



Copyright © 2005 Aparzev Software Ltd. All Rights Reserved.