|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.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
,
Misc overviewField 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 NameableData
String
with the name of the itempublic void setName(String name)
NameableData
MAX_NAME_LENGTH
constant.
setName
in interface NameableData
name
- The new name for the itempublic String getDescription()
NameableData
getDescription
in interface NameableData
String
with a description of the itempublic void setDescription(String description)
NameableData
MAX_DESCRIPTION_LENGTH
constant.
setDescription
in interface NameableData
description
- 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)
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |