|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jeceira.persistence.info.ItemDefInfo
com.jeceira.persistence.info.NodeDefInfo
Info representing a node definition in a database.
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 |
public NodeDefInfo(java.lang.String declaringNodeTypeName, int defNumber, java.lang.String defName, java.lang.String onParentVersion)
java.lang.NullPointerException
- if any of the arguments is nullMethod Detail |
public static NodeDefInfo valueOf(java.sql.ResultSet resultSet) throws java.sql.SQLException
java.lang.NullPointerException
- if the specified result set is null
java.sql.SQLException
- if an error occurrs while reading values from the result setpublic void addRequiredPrimaryType(java.lang.String requiredPrimaryType)
java.lang.NullPointerException
- if the specified primary type name is nullpublic boolean allowsSameNameSibs()
public java.lang.String getDefaultPrimaryType()
public java.lang.String[] getRequiredPrimaryTypes()
public void setDefaultPrimaryType(java.lang.String defaultPrimaryType)
public void setSameNameSibs(boolean sameNameSibs)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |