org.openmdx.preferences2.jpa3.Node Maven / Gradle / Ivy
// ----------------------------------------------------------------------------
// Instance/Begin
// ----------------------------------------------------------------------------
//////////////////////////////////////////////////////////////////////////////
//
// Name: $Id: AbstractMapper.java,v 1.10 2011/07/08 13:20:51 wfro Exp $
// Generated by: openMDX Java Mapper
// Date: Mon Mar 09 17:04:35 CET 2020
//
// GENERATED - DO NOT CHANGE MANUALLY
//
//////////////////////////////////////////////////////////////////////////////
package org.openmdx.preferences2.jpa3;
/**
* Class Node
*
* A node in a hierarchical collection of preference data. This class allows applications to store and retrieve user and system preference and configuration data.
* This data is stored persistently in an implementation-dependent backing store.
* Typical implementations include flat files, OS-specific registries, directory servers and SQL databases.
* The user of this class needn't be concerned with details of the backing store.
* Nodes in a preference tree are named in a similar fashion to directories in a hierarchical file system.
* Every node in a preference tree has a node name (which is not necessarily unique), a unique absolute path name, and a path name relative to each ancestor including itself.
*/
@SuppressWarnings("serial")
public class Node extends org.w3c.jpa3.AbstractObject
implements org.openmdx.preferences2.cci2.Node
{
/**
* Constructor
*/
public Node(
){
// Implements Serializable
}
/**
* The the object's JDO identity key
*/
private java.lang.String openmdxjdoIdentity;
/**
* Retrieve the object's JDO identity key
* @return the value of the object's JDO identity key
*/
@Override
protected java.lang.String getOpenmdxjdoIdentity(
){
return this.openmdxjdoIdentity;
}
/**
* Set the object's JDO identity key
*/
@Override
protected void setOpenmdxjdoIdentity(
String value
){
this.openmdxjdoIdentity = value;
}
/**
* Slice holder
*/
private java.util.TreeMap openmdxjdoSlices = new java.util.TreeMap();
@SuppressWarnings("unchecked")
protected final java.util.SortedMap openmdxjdoGetSlices(
){
return (java.util.SortedMap)this.openmdxjdoSlices;
}
// ----------------------------------------------------------------------------
// Instance/DeclareValue
// ----------------------------------------------------------------------------
/**
* Attribute createdAt
.
*/
public java.sql.Timestamp createdAt;
// ----------------------------------------------------------------------------
// Instance/AttributeGet1_1
// ----------------------------------------------------------------------------
/**
* Retrieves the value for the attribute createdAt
.
* @return The non-null value for attribute createdAt
.
*/
public final java.util.Date getCreatedAt(
){
return org.w3c.jpa3.DateTime.toCCI(this.createdAt);
}
// ----------------------------------------------------------------------------
// Instance/ReferenceDeclaration
// ----------------------------------------------------------------------------
/**
* Instance referenced by parent
.
*/
java.lang.String parent;
// ----------------------------------------------------------------------------
// Instance/ReferenceGetx_1NoQualifier
// ----------------------------------------------------------------------------
/**
* Retrieves the value for the reference parent
.
* @return The – possibly null
– value for this reference.
*/
public org.openmdx.preferences2.cci2.Node getParent(
) {
throw new javax.jdo.JDOFatalUserException(
"This signature is not handled by data object",
new UnsupportedOperationException("This signature is not handled by data object. Use getParent_Id()."),
this
);
}
public java.lang.String getParent_Id(
) {
return this.parent;
}
// ----------------------------------------------------------------------------
// Instance/ReferenceSetNoQualifier
// ----------------------------------------------------------------------------
/**
* Sets a new value for the reference parent
.
* @param parent The new – possibly null
– value for this reference.
*/
public void setParent(
org.openmdx.preferences2.cci2.Node parent
){
throw new javax.jdo.JDOFatalUserException(
"Typed set not handled by data object",
new UnsupportedOperationException("Use setParent_Id() instead."),
this
);
}
public void setParent_Id(
java.lang.String parent
) {
super.openmdxjdoMakeDirty();
this.parent = parent;
}
// ----------------------------------------------------------------------------
// Instance/ReferenceGet0_nWithQuery
// ----------------------------------------------------------------------------
/**
* Retrieves a set containing all the elements for the reference entry
.
* @return A set containing all the elements for this reference.
*/
public org.openmdx.preferences2.cci2.NodeHasEntries.Entry getEntry(
){
throw new javax.jdo.JDOFatalUserException(
"This signature is not handled by data object",
new UnsupportedOperationException("This signature is not handled by data object. Use query on composites."),
this
);
}
// ----------------------------------------------------------------------------
// Instance/AttributeGetList
// ----------------------------------------------------------------------------
/**
* Retrieves a list containing all the elements for the attribute createdBy
.
* @return A list containing all elements for this attribute.
*/
public java.util.List getCreatedBy(
){
java.util.SortedMap slices = openmdxjdoGetSlices();
return new org.w3c.jpa3.AbstractObject.SlicedList(slices) {
@Override
protected java.lang.String getValue(Node$Slice slice) {
return slice.getCreatedBy();
}
@Override
protected void setValue(Node$Slice slice, java.lang.String value) {
openmdxjdoMakeDirty();
slice.setCreatedBy(value);
}
@Override
protected Node$Slice newSlice(int index) {
return new Node$Slice(Node.this, index);
}
@Override
protected void setSize(int size) {
openmdxjdoMakeDirty();
createdBy_size = size;
}
@Override
public int size() {
return createdBy_size;
}
};
}
// ----------------------------------------------------------------------------
// Instance/DeclareValue
// ----------------------------------------------------------------------------
/**
* Attribute modifiedAt
.
*/
public java.sql.Timestamp modifiedAt;
// ----------------------------------------------------------------------------
// Instance/AttributeGet1_1
// ----------------------------------------------------------------------------
/**
* Retrieves the value for the attribute modifiedAt
.
* @return The non-null value for attribute modifiedAt
.
*/
public final java.util.Date getModifiedAt(
){
return org.w3c.jpa3.DateTime.toCCI(this.modifiedAt);
}
// ----------------------------------------------------------------------------
// Instance/DeclareValue
// ----------------------------------------------------------------------------
/**
* Attribute identity
.
*/
public java.lang.String identity;
// ----------------------------------------------------------------------------
// Instance/AttributeGet1_1
// ----------------------------------------------------------------------------
/**
* Retrieves the value for the attribute identity
.
* @return The non-null value for attribute identity
.
*/
public java.lang.String getIdentity(
){
return this.identity;
}
// ----------------------------------------------------------------------------
// Instance/ReferenceDeclaration
// ----------------------------------------------------------------------------
/**
* Instance referenced by root
.
*/
java.lang.String root;
// ----------------------------------------------------------------------------
// Instance/ReferenceGetx_1NoQualifier
// ----------------------------------------------------------------------------
/**
* Retrieves the value for the reference root
.
* @return The non-null
value for this reference.
*/
public org.openmdx.preferences2.cci2.Root getRoot(
) {
throw new javax.jdo.JDOFatalUserException(
"This signature is not handled by data object",
new UnsupportedOperationException("This signature is not handled by data object. Use getRoot_Id()."),
this
);
}
public java.lang.String getRoot_Id(
) {
return this.root;
}
// ----------------------------------------------------------------------------
// Instance/DeclareValue
// ----------------------------------------------------------------------------
/**
* Attribute name
.
*/
java.lang.String name;
// ----------------------------------------------------------------------------
// Instance/AttributeGet1_1
// ----------------------------------------------------------------------------
/**
* Retrieves the value for the attribute name
.
*
* The root node has a node name of the empty string ("").
* Every other node has an arbitrary node name, specified at the time it is created.
* The only restrictions on this name are that it cannot be the empty string, and it cannot contain the slash character ('/').
* @return The non-null value for attribute name
.
*/
public final java.lang.String getName(
){
return this.name;
}
// ----------------------------------------------------------------------------
// Instance/AttributeSet1_1
// ----------------------------------------------------------------------------
/**
* Sets a new value for the attribute name
.
*
* This attribute is not changeable, i.e. its value can be set as long as the object is TRANSIENT or NEW
*
* The root node has a node name of the empty string ("").
* Every other node has an arbitrary node name, specified at the time it is created.
* The only restrictions on this name are that it cannot be the empty string, and it cannot contain the slash character ('/').
* @param name The non-null new value for attribute name
.
*/
public void setName(
java.lang.String name
){
super.openmdxjdoMakeDirty();
this.name = name;
}
// ----------------------------------------------------------------------------
// Instance/DeclareValue
// ----------------------------------------------------------------------------
/**
* Attribute absolutePath
.
*/
public java.lang.String absolutePath;
// ----------------------------------------------------------------------------
// Instance/AttributeGet1_1
// ----------------------------------------------------------------------------
/**
* Retrieves the value for the attribute absolutePath
.
*
* The root node has an absolute path name of "/".
* Children of the root node have absolute path names of "/" + .
* All other nodes have absolute path names of + "/" + .
* Note that all absolute path names begin with the slash character.
* @return The non-null value for attribute absolutePath
.
*/
public final java.lang.String getAbsolutePath(
){
return this.absolutePath;
}
// ----------------------------------------------------------------------------
// Instance/AttributeGetList
// ----------------------------------------------------------------------------
/**
* Retrieves a list containing all the elements for the attribute modifiedBy
.
* @return A list containing all elements for this attribute.
*/
public java.util.List getModifiedBy(
){
java.util.SortedMap slices = openmdxjdoGetSlices();
return new org.w3c.jpa3.AbstractObject.SlicedList(slices) {
@Override
protected java.lang.String getValue(Node$Slice slice) {
return slice.getModifiedBy();
}
@Override
protected void setValue(Node$Slice slice, java.lang.String value) {
openmdxjdoMakeDirty();
slice.setModifiedBy(value);
}
@Override
protected Node$Slice newSlice(int index) {
return new Node$Slice(Node.this, index);
}
@Override
protected void setSize(int size) {
openmdxjdoMakeDirty();
modifiedBy_size = size;
}
@Override
public int size() {
return modifiedBy_size;
}
};
}
// ----------------------------------------------------------------------------
// Instance/ReferenceGet0_nWithQualifier
// ----------------------------------------------------------------------------
/**
* Retrieves the members of the given container referencing this object via child
.
*
* Note: This is an extension to the JMI 1 standard.
In order to remain standard compliant you should substitute this method with javax.jdo.Query
* @param nodeContainer The container of the objects to be retrieved.
* @return The members referencing ths object via child
.
*/
public java.util.Collection getChild(
org.openmdx.preferences2.cci2.Root nodeContainer
){
throw new java.lang.UnsupportedOperationException("Not yet implemented");
}
// ----------------------------------------------------------------------------
// Instance/End
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// Instance/DeclareSize
// ----------------------------------------------------------------------------
/**
* Number of elements of attribute createdBy
*/
int createdBy_size;
// ----------------------------------------------------------------------------
// Instance/DeclareSize
// ----------------------------------------------------------------------------
/**
* Number of elements of attribute modifiedBy
*/
int modifiedBy_size;
// ----------------------------------------------------------------------------
// Instance/Begin
// ----------------------------------------------------------------------------
//////////////////////////////////////////////////////////////////////////////
//
// Name: $Id: AbstractMapper.java,v 1.10 2011/07/08 13:20:51 wfro Exp $
// Generated by: openMDX Java Mapper
// Date: Mon Mar 09 17:04:35 CET 2020
//
// GENERATED - DO NOT CHANGE MANUALLY
//
//////////////////////////////////////////////////////////////////////////////
// ----------------------------------------------------------------------------
// Instance/ReferenceSetNoQualifier
// ----------------------------------------------------------------------------
/**
* Sets a new value for the reference root
.
* @param root The new non-null
value for this reference.
*/
public void setRoot(
org.openmdx.preferences2.cci2.Root root
){
throw new javax.jdo.JDOFatalUserException(
"Typed set not handled by data object",
new UnsupportedOperationException("Use setRoot_Id() instead."),
this
);
}
public void setRoot_Id(
java.lang.String root
) {
super.openmdxjdoMakeDirty();
this.root = root;
}
// ----------------------------------------------------------------------------
// Instance/Containment
// ----------------------------------------------------------------------------
}