org.cloudgraph.test.socialgraph.story.Blog Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloudgraph-test Show documentation
Show all versions of cloudgraph-test Show documentation
CloudGraph(tm) is a suite of Service Data Object (SDO) 2.1 services designed for relational and big-table style "cloud" databases, such as HBase and others.
package org.cloudgraph.test.socialgraph.story;
import org.cloudgraph.test.socialgraph.actor.Actor;
import org.cloudgraph.test.socialgraph.actor.Node;
import org.cloudgraph.test.socialgraph.actor.Topic;
/**
* Generated interface representing the domain model entity Blog. This SDO interface directly reflects the
* class (single or multiple) inheritance lattice of the source domain model(s) and is part of namespace http://cloudgraph.org/test/socialgraph/story defined within the Configuration.
*
*
* Data Store Mapping:
* Corresponds to the physical data store entity BL.
*
*
* @see org.cloudgraph.test.socialgraph.actor.Actor Actor
* @see org.cloudgraph.test.socialgraph.actor.Node Node
* @see org.cloudgraph.test.socialgraph.actor.Topic Topic
*/
public interface Blog extends Node
{
/** The SDO namespace URI associated with the Type for this class. */
public static final String NAMESPACE_URI = "http://cloudgraph.org/test/socialgraph/story";
/** The entity or Type logical name associated with this class. */
public static final String TYPE_NAME_BLOG = "Blog";
/**
* Represents the logical Property actor which is part of the Type Blog.
*
*
* Data Store Mapping:
* Corresponds to the physical data store element BL.ACT.
*/
public static final String ACTOR = "actor";
/**
* Represents the logical Property topic which is part of the Type Blog.
*
*
* Data Store Mapping:
* Corresponds to the physical data store element BL.TPC.
*/
public static final String TOPIC = "topic";
/**
* the likes count for a blog
*
*
* Represents the logical Property likes which is part of the Type Blog.
*
*
* Data Store Mapping:
* Corresponds to the physical data store element BL.L.
*/
public static final String LIKES = "likes";
/**
* Returns true if the actor property is set.
* @return true if the actor property is set.
*/
public boolean isSetActor();
/**
* Unsets the actor property, the value
* of the property of the object being set to the property's
* default value. The property will no longer be
* considered set.
*/
public void unsetActor();
/**
* Creates and returns a new instance of Type {@link Actor} automatically establishing a containment relationship through the object's reference property, actor.
* @return a new instance of Type {@link Actor} automatically establishing a containment relationship through the object's reference property actor.
*/
public Actor createActor();
/**
* Returns the value of the actor property.
* @return the value of the actor property.
*/
public Actor getActor();
/**
* Sets the value of the actor property to the given value.
*/
public void setActor(Actor value);
/**
* Returns true if the topic property is set.
* @return true if the topic property is set.
*/
public boolean isSetTopic();
/**
* Unsets the topic property, clearing the underlying collection. The property will no longer be
* considered set.
*/
public void unsetTopic();
/**
* Creates and returns a new instance of Type {@link Topic} automatically establishing a containment relationship through the object's reference property, topic.
* @return a new instance of Type {@link Topic} automatically establishing a containment relationship through the object's reference property topic.
*/
public Topic createTopic();
/**
* Returns an array of Topic set for the object's multi-valued property topic.
* @return an array of Topic set for the object's multi-valued property topic.
*/
public Topic[] getTopic();
/**
* Returns the Topic set for the object's multi-valued property topic based on the given index.
* @param idx the index
* @return the Topic set for the object's multi-valued property topic based on the given index.
*/
public Topic getTopic(int idx);
/**
* Returns a count for multi-valued property topic.
* @return a count for multi-valued property topic.
*/
public int getTopicCount();
/**
* Sets the given array of Type Topic for the object's multi-valued property topic.
* @param value the array value
*/
public void setTopic(Topic[] value);
/**
* Adds the given value of Type Topic for the object's multi-valued property topic.
* @param value the value to add
*/
public void addTopic(Topic value);
/**
* Removes the given value of Type Topic for the object's multi-valued property topic.
* @param value the value to remove
*/
public void removeTopic(Topic value);
/**
* Returns true if the likes property is set.
*
* Property Definition:
* See {@link #getLikes() getLikes} or {@link #setLikes(long value) setLikes(...)} for a definition of property likes
* @return true if the likes property is set.
*/
public boolean isSetLikes();
/**
* Unsets the likes property, the value
* of the property of the object being set to the property's
* default value. The property will no longer be
* considered set.
*
* Property Definition:
* See {@link #getLikes() getLikes} or {@link #setLikes(long value) setLikes(...)} for a definition of property likes
*/
public void unsetLikes();
/**
* Returns the value of the likes property.
*
* Property Definition:
* the likes count for a blog
* @return the value of the likes property.
*/
public long getLikes();
/**
* Increments the value of the likes property by the given value.
*
* Property Definition:
* the likes count for a blog
*/
public void incrementLikes(long value);
}