public abstract class AbstractJdbcType extends Object implements AttributedType, Serializable
AttributedType.QUERY_ATTRIBUTE
Modifier and Type | Field and Description |
---|---|
protected DataSource |
dataSource |
protected String |
id |
protected AttributedType |
type |
ID
Constructor and Description |
---|
AbstractJdbcType() |
Modifier and Type | Method and Description |
---|---|
abstract void |
delete(AttributedType attributedType)
Delete
AttributedType |
abstract void |
deleteRelationships(AttributedType attributedType)
Delete all the
Relationship the AttributedType
is involved in. |
DataSource |
getDataSource()
Get the
DataSource |
String |
getId() |
AttributedType |
getType() |
protected Object[] |
getValuesFromParamMap(Map<QueryParameter,Object[]> params,
AttributeParameter attributeParameter) |
abstract List<? extends AttributedType> |
load(Map<QueryParameter,Object[]> params,
Class<? extends AttributedType> attributedType)
Load a list of
AttributedType given various parameters |
abstract AttributedType |
load(String id,
AttributedType attributedType)
Load an
AttributedType given its id |
abstract AttributedType |
load(String id,
Class<? extends AttributedType> attributedType)
Load an
AttributedType given its id and the type |
abstract void |
persist(AttributedType attributedType)
Store the
AttributedType in the database |
AbstractJdbcType |
setDataSource(DataSource dataSource)
Set the
DataSource |
void |
setId(String id)
Set the ID
|
AbstractJdbcType |
setType(AttributedType attributedType) |
abstract void |
update(AttributedType attributedType)
Update the stored
AttributedType in the database |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAttribute, getAttributes, removeAttribute, setAttribute
protected String id
protected DataSource dataSource
protected AttributedType type
public String getId()
getId
in interface AttributedType
AttributedType.getId()
public void setId(String id)
setId
in interface AttributedType
id
- public AbstractJdbcType setDataSource(DataSource dataSource)
DataSource
dataSource
- public DataSource getDataSource()
DataSource
public AbstractJdbcType setType(AttributedType attributedType)
public AttributedType getType()
public abstract void delete(AttributedType attributedType)
AttributedType
attributedType
- public abstract void deleteRelationships(AttributedType attributedType)
Relationship
the AttributedType
is involved in.attributedType
- public abstract AttributedType load(String id, AttributedType attributedType)
AttributedType
given its idid
- attributedType
- public abstract AttributedType load(String id, Class<? extends AttributedType> attributedType)
AttributedType
given its id and the typeid
- attributedType
- public abstract List<? extends AttributedType> load(Map<QueryParameter,Object[]> params, Class<? extends AttributedType> attributedType)
AttributedType
given various parametersparams
- attributedType
- public abstract void persist(AttributedType attributedType)
AttributedType
in the databaseattributedType
- public abstract void update(AttributedType attributedType)
AttributedType
in the databaseattributedType
- protected Object[] getValuesFromParamMap(Map<QueryParameter,Object[]> params, AttributeParameter attributeParameter)
Copyright © 2017 JBoss by Red Hat. All rights reserved.