public class RelationshipJdbcType extends AbstractJdbcType
Relationship
AttributedType.QUERY_ATTRIBUTE
dataSource, id, type
ID
Constructor and Description |
---|
RelationshipJdbcType() |
Modifier and Type | Method and Description |
---|---|
void |
delete(AttributedType attributedType)
Delete
AttributedType |
void |
deleteRelationships(AttributedType attributedType)
Delete all the
Relationship the AttributedType
is involved in. |
<T extends Serializable> |
getAttribute(String name)
Return the attribute value with the specified name
|
Collection<Attribute<? extends Serializable>> |
getAttributes()
Returns a Map containing all attribute values for this IdentityType instance.
|
List<? extends AttributedType> |
load(Map<QueryParameter,Object[]> params,
Class<? extends AttributedType> attributedType)
Load a list of
AttributedType given various parameters |
AttributedType |
load(String id,
AttributedType attributedType)
Load an
AttributedType given its id |
AttributedType |
load(String id,
Class<? extends AttributedType> attributedType)
Load an
AttributedType given its id and the type |
void |
persist(AttributedType attributedType)
Store the
AttributedType in the database |
void |
removeAttribute(String name)
Remove the attribute with given name
|
void |
setAttribute(Attribute<? extends Serializable> attribute)
Set the specified attribute.
|
void |
update(AttributedType attributedType)
Update the stored
AttributedType in the database |
getDataSource, getId, getType, getValuesFromParamMap, setDataSource, setId, setType
public void delete(AttributedType attributedType)
AbstractJdbcType
AttributedType
delete
in class AbstractJdbcType
public void deleteRelationships(AttributedType attributedType)
AbstractJdbcType
Relationship
the AttributedType
is involved in.deleteRelationships
in class AbstractJdbcType
public void persist(AttributedType attributedType)
AbstractJdbcType
AttributedType
in the databasepersist
in class AbstractJdbcType
public AttributedType load(String id, AttributedType attributedType)
AbstractJdbcType
AttributedType
given its idload
in class AbstractJdbcType
public AttributedType load(String id, Class<? extends AttributedType> attributedType)
AbstractJdbcType
AttributedType
given its id and the typeload
in class AbstractJdbcType
public List<? extends AttributedType> load(Map<QueryParameter,Object[]> params, Class<? extends AttributedType> attributedType)
AbstractJdbcType
AttributedType
given various parametersload
in class AbstractJdbcType
public void update(AttributedType attributedType)
AbstractJdbcType
AttributedType
in the databaseupdate
in class AbstractJdbcType
public void setAttribute(Attribute<? extends Serializable> attribute)
AttributedType
public void removeAttribute(String name)
AttributedType
name
- of attributepublic <T extends Serializable> Attribute<T> getAttribute(String name)
AttributedType
name
- of attributepublic Collection<Attribute<? extends Serializable>> getAttributes()
AttributedType
Copyright © 2014. All rights reserved.