class ChildTopicsImpl extends Object implements ChildTopics
Modifier and Type | Field and Description |
---|---|
private Logger |
logger |
private ModelFactory |
mf |
private ChildTopicsModelImpl |
model |
private DMXObjectModelImpl |
parent |
private PersistenceLayer |
pl |
Constructor and Description |
---|
ChildTopicsImpl(ChildTopicsModelImpl model,
DMXObjectModelImpl parent,
PersistenceLayer pl) |
Modifier and Type | Method and Description |
---|---|
private RelatedTopic |
_getTopic(String assocDefUri) |
private RelatedTopic |
_getTopicOrNull(String assocDefUri) |
private List<RelatedTopic> |
_getTopics(String assocDefUri) |
private List<RelatedTopic> |
_getTopicsOrNull(String assocDefUri) |
private ChildTopics |
_updateMany(String assocDefUri,
RelatedTopicModel newChildTopic) |
private ChildTopics |
_updateOne(String assocDefUri,
RelatedTopicModel newChildTopic) |
ChildTopics |
add(String assocDefUri,
ChildTopicsModel value) |
ChildTopics |
add(String assocDefUri,
Object value) |
ChildTopics |
add(String assocDefUri,
TopicModel value) |
ChildTopics |
addDeletionRef(String assocDefUri,
long refTopicId) |
ChildTopics |
addDeletionRef(String assocDefUri,
String refTopicUri) |
ChildTopics |
addRef(String assocDefUri,
long refTopicId) |
ChildTopics |
addRef(String assocDefUri,
long refTopicId,
ChildTopicsModel relatingAssocChildTopics) |
ChildTopics |
addRef(String assocDefUri,
String refTopicUri) |
ChildTopics |
addRef(String assocDefUri,
String refTopicUri,
ChildTopicsModel relatingAssocChildTopics) |
Object |
get(String assocDefUri) |
boolean |
getBoolean(String assocDefUri)
Convenience accessor for the *simple* value of a single-valued child.
|
Boolean |
getBooleanOrNull(String assocDefUri) |
ChildTopics |
getChildTopics(String assocDefUri)
Convenience accessor for the *composite* value of a single-valued child.
|
double |
getDouble(String assocDefUri)
Convenience accessor for the *simple* value of a single-valued child.
|
Double |
getDoubleOrNull(String assocDefUri) |
int |
getInt(String assocDefUri)
Convenience accessor for the *simple* value of a single-valued child.
|
Integer |
getIntOrNull(String assocDefUri) |
long |
getLong(String assocDefUri)
Convenience accessor for the *simple* value of a single-valued child.
|
Long |
getLongOrNull(String assocDefUri) |
ChildTopicsModel |
getModel() |
Object |
getObject(String assocDefUri)
Convenience accessor for the *simple* value of a single-valued child.
|
Object |
getObjectOrNull(String assocDefUri) |
String |
getString(String assocDefUri)
Convenience accessor for the *simple* value of a single-valued child.
|
String |
getStringOrNull(String assocDefUri) |
RelatedTopic |
getTopic(String assocDefUri)
Accesses a single-valued child.
|
RelatedTopic |
getTopicOrNull(String assocDefUri) |
List<RelatedTopic> |
getTopics(String assocDefUri)
Accesses a multiple-valued child.
|
List<RelatedTopic> |
getTopicsOrNull(String assocDefUri) |
(package private) boolean |
has(String assocDefUri) |
private List<RelatedTopic> |
instantiate(List<? extends RelatedTopicModel> models) |
private RelatedTopic |
instantiate(RelatedTopicModel model) |
Iterator<String> |
iterator() |
private void |
loadChildTopics(String assocDefUri)
Loads the child topics for the given assoc def, provided they are not loaded already.
|
ChildTopics |
set(String assocDefUri,
ChildTopicsModel value)
Convenience method to set the composite value of a child.
|
ChildTopics |
set(String assocDefUri,
Object value)
Convenience method to set the simple value of a child.
|
ChildTopics |
set(String assocDefUri,
TopicModel value)
Sets a child.
|
ChildTopics |
setDeletionRef(String assocDefUri,
long refTopicId) |
ChildTopics |
setDeletionRef(String assocDefUri,
String refTopicUri) |
ChildTopics |
setRef(String assocDefUri,
long refTopicId) |
ChildTopics |
setRef(String assocDefUri,
long refTopicId,
ChildTopicsModel relatingAssocChildTopics) |
ChildTopics |
setRef(String assocDefUri,
String refTopicUri) |
ChildTopics |
setRef(String assocDefUri,
String refTopicUri,
ChildTopicsModel relatingAssocChildTopics) |
(package private) int |
size() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
private ChildTopicsModelImpl model
private DMXObjectModelImpl parent
private PersistenceLayer pl
private ModelFactory mf
ChildTopicsImpl(ChildTopicsModelImpl model, DMXObjectModelImpl parent, PersistenceLayer pl)
public RelatedTopic getTopic(String assocDefUri)
ChildTopics
getTopic
in interface ChildTopics
public RelatedTopic getTopicOrNull(String assocDefUri)
getTopicOrNull
in interface ChildTopics
public List<RelatedTopic> getTopics(String assocDefUri)
ChildTopics
getTopics
in interface ChildTopics
public List<RelatedTopic> getTopicsOrNull(String assocDefUri)
getTopicsOrNull
in interface ChildTopics
public Object get(String assocDefUri)
get
in interface ChildTopics
public ChildTopicsModel getModel()
getModel
in interface ChildTopics
public String getString(String assocDefUri)
ChildTopics
getString
in interface ChildTopics
public String getStringOrNull(String assocDefUri)
getStringOrNull
in interface ChildTopics
public int getInt(String assocDefUri)
ChildTopics
getInt
in interface ChildTopics
public Integer getIntOrNull(String assocDefUri)
getIntOrNull
in interface ChildTopics
public long getLong(String assocDefUri)
ChildTopics
getLong
in interface ChildTopics
public Long getLongOrNull(String assocDefUri)
getLongOrNull
in interface ChildTopics
public double getDouble(String assocDefUri)
ChildTopics
getDouble
in interface ChildTopics
public Double getDoubleOrNull(String assocDefUri)
getDoubleOrNull
in interface ChildTopics
public boolean getBoolean(String assocDefUri)
ChildTopics
getBoolean
in interface ChildTopics
public Boolean getBooleanOrNull(String assocDefUri)
getBooleanOrNull
in interface ChildTopics
public Object getObject(String assocDefUri)
ChildTopics
getObject
in interface ChildTopics
public Object getObjectOrNull(String assocDefUri)
getObjectOrNull
in interface ChildTopics
public ChildTopics getChildTopics(String assocDefUri)
ChildTopics
getChildTopics
in interface ChildTopics
public ChildTopics set(String assocDefUri, TopicModel value)
ChildTopics
set
in interface ChildTopics
public ChildTopics set(String assocDefUri, Object value)
ChildTopics
set
in interface ChildTopics
value
- The simple value.
Either String, Integer, Long, Double, or Boolean. Primitive values are auto-boxed.public ChildTopics set(String assocDefUri, ChildTopicsModel value)
ChildTopics
set
in interface ChildTopics
public ChildTopics setRef(String assocDefUri, long refTopicId)
setRef
in interface ChildTopics
public ChildTopics setRef(String assocDefUri, long refTopicId, ChildTopicsModel relatingAssocChildTopics)
setRef
in interface ChildTopics
public ChildTopics setRef(String assocDefUri, String refTopicUri)
setRef
in interface ChildTopics
public ChildTopics setRef(String assocDefUri, String refTopicUri, ChildTopicsModel relatingAssocChildTopics)
setRef
in interface ChildTopics
public ChildTopics setDeletionRef(String assocDefUri, long refTopicId)
setDeletionRef
in interface ChildTopics
public ChildTopics setDeletionRef(String assocDefUri, String refTopicUri)
setDeletionRef
in interface ChildTopics
public ChildTopics add(String assocDefUri, TopicModel value)
add
in interface ChildTopics
public ChildTopics add(String assocDefUri, Object value)
add
in interface ChildTopics
public ChildTopics add(String assocDefUri, ChildTopicsModel value)
add
in interface ChildTopics
public ChildTopics addRef(String assocDefUri, long refTopicId)
addRef
in interface ChildTopics
public ChildTopics addRef(String assocDefUri, long refTopicId, ChildTopicsModel relatingAssocChildTopics)
addRef
in interface ChildTopics
public ChildTopics addRef(String assocDefUri, String refTopicUri)
addRef
in interface ChildTopics
public ChildTopics addRef(String assocDefUri, String refTopicUri, ChildTopicsModel relatingAssocChildTopics)
addRef
in interface ChildTopics
public ChildTopics addDeletionRef(String assocDefUri, long refTopicId)
addDeletionRef
in interface ChildTopics
public ChildTopics addDeletionRef(String assocDefUri, String refTopicUri)
addDeletionRef
in interface ChildTopics
int size()
private ChildTopics _updateOne(String assocDefUri, RelatedTopicModel newChildTopic)
private ChildTopics _updateMany(String assocDefUri, RelatedTopicModel newChildTopic)
private void loadChildTopics(String assocDefUri)
private RelatedTopic _getTopic(String assocDefUri)
private RelatedTopic _getTopicOrNull(String assocDefUri)
private List<RelatedTopic> _getTopics(String assocDefUri)
private List<RelatedTopic> _getTopicsOrNull(String assocDefUri)
private List<RelatedTopic> instantiate(List<? extends RelatedTopicModel> models)
private RelatedTopic instantiate(RelatedTopicModel model)
Copyright © 2018. All Rights Reserved.