|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.basedb.core.data.BasicData
net.sf.basedb.core.data.AnyToAnyData
public class AnyToAnyData
Represents a link from one item to any other item. The links are loosely coupled and are not using foreign keys.
AnyToAny,
Developer documentation: Other classes| Field Summary | |
|---|---|
private String |
description
|
private int |
fromId
|
private int |
fromType
|
private String |
name
|
private int |
toId
|
private int |
toType
|
private boolean |
usesTo
|
| Fields inherited from interface net.sf.basedb.core.data.NameableData |
|---|
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH |
| Constructor Summary | |
|---|---|
AnyToAnyData()
|
|
| Method Summary | |
|---|---|
String |
getDescription()
Get the description for the item. |
int |
getFromId()
The ID of the item we are linking from. |
int |
getFromType()
The type code of the item we are linking from. |
String |
getName()
Get the name of the item. |
int |
getToId()
The ID of the item we are linking to. |
int |
getToType()
The type code of the item we are linking to. |
boolean |
isUsingTo()
If the link counts as using the item we are linking to. |
void |
setDescription(String description)
Set the description for the item. |
void |
setFromId(int fromId)
|
void |
setFromType(int fromType)
|
void |
setName(String name)
Set the name of the item. |
void |
setToId(int toId)
|
void |
setToType(int toType)
|
void |
setUsingTo(boolean usesTo)
|
| Methods inherited from class net.sf.basedb.core.data.BasicData |
|---|
equals, getId, getVersion, hashCode, setId, setVersion, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface net.sf.basedb.core.data.IdentifiableData |
|---|
getId, getVersion |
| Field Detail |
|---|
private String name
private String description
private int fromId
private int fromType
private int toId
private int toType
private boolean usesTo
| Constructor Detail |
|---|
public AnyToAnyData()
| Method Detail |
|---|
public String getName()
NameableData
getName in interface NameableDataString with the name of the itempublic void setName(String name)
NameableDataMAX_NAME_LENGTH constant.
setName in interface NameableDataname - The new name for the itempublic String getDescription()
NameableData
getDescription in interface NameableDataString with a description of the itempublic void setDescription(String description)
NameableDataMAX_DESCRIPTION_LENGTH constant.
setDescription in interface NameableDatadescription - The new description for the itempublic int getFromId()
public void setFromId(int fromId)
public int getFromType()
public void setFromType(int fromType)
public int getToId()
public void setToId(int toId)
public int getToType()
public void setToType(int toType)
public boolean isUsingTo()
public void setUsingTo(boolean usesTo)
|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||