public class PartitionJdbcType extends AbstractJdbcType implements Partition
Partition
AttributedType.QUERY_ATTRIBUTE
Modifier and Type | Field and Description |
---|---|
protected String |
configurationName |
protected String |
name |
protected String |
typeName |
dataSource, id, type
ID
Constructor and Description |
---|
PartitionJdbcType() |
PartitionJdbcType(String name) |
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.
|
String |
getConfigurationName() |
String |
getName()
Returns the name of the partition.
|
String |
getTypeName() |
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.
|
PartitionJdbcType |
setConfigurationName(String configurationName) |
PartitionJdbcType |
setName(String name) |
PartitionJdbcType |
setTypeName(String typeName) |
void |
update(AttributedType attributedType)
Update the stored
AttributedType in the database |
getDataSource, getId, getType, getValuesFromParamMap, setDataSource, setId, setType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getId, setId
protected String name
protected String typeName
protected String configurationName
public PartitionJdbcType()
public PartitionJdbcType(String name)
public PartitionJdbcType setName(String name)
public String getName()
Partition
public String getTypeName()
public PartitionJdbcType setTypeName(String typeName)
public String getConfigurationName()
public PartitionJdbcType setConfigurationName(String configurationName)
public void setAttribute(Attribute<? extends Serializable> attribute)
AttributedType
setAttribute
in interface AttributedType
public void removeAttribute(String name)
AttributedType
removeAttribute
in interface AttributedType
name
- of attributepublic <T extends Serializable> Attribute<T> getAttribute(String name)
AttributedType
getAttribute
in interface AttributedType
name
- of attributepublic Collection<Attribute<? extends Serializable>> getAttributes()
AttributedType
getAttributes
in interface AttributedType
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
Copyright © 2018 JBoss by Red Hat. All rights reserved.