|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbe.SIRAPRISE.client.AbstractTuple
public abstract class AbstractTuple
AbstractTuple provides method implementations for the Tuple interface
| Constructor Summary | |
|---|---|
AbstractTuple(Heading heading)
Creates the Tuple object |
|
| Method Summary | ||
|---|---|---|
abstract java.lang.String |
escapedValue(java.lang.String attributeName)
Gets The attribute value for the named attribute |
|
Heading |
getHeading()
Gets the heading that the Tuple conforms to |
|
java.lang.String |
printBodyValueWithoutPossrepNames()
Deprecated. replaced by printBodyValueWithoutTypeNames() |
|
java.lang.String |
printBodyValueWithoutTypeNames()
Gets the tuple body value in textual format (i.e. attr1(value1)attr2(value2) with value1, value2, ... |
|
java.lang.String |
printBodyValueWithTypeNames()
Gets the tuple body value in textual format (i.e. attr1(value1)attr2(value2) with value1, value2, ... naming the type (i.e. |
|
java.lang.String |
printBodyValueXML()
Gets the tuple body value in textual XML-style format (i.e. |
|
java.lang.String |
printEscapedBodyValueWithoutPossrepNames()
Deprecated. replaced by printEscapedBodyValueWithoutTypeNames(); |
|
java.lang.String |
printEscapedBodyValueWithoutTypeNames()
Gets the tuple body value in textual format (i.e. attr1(value1)attr2(value2), INCLUDING escape processing for the ()\ characters of the metalanguage that appear in a printed value |
|
java.lang.String |
printEscapedBodyValueWithTypeNames()
Gets the tuple body value in textual format (i.e. attr1(value1)attr2(value2), INCLUDING escape processing for the ()\ characters of the metalanguage that appear in a printed value |
|
java.lang.String |
printEscapedValueWithoutPossrepNames()
Deprecated. replaced by printValueEscapedWithoutTypeNames() |
|
java.lang.String |
printValueEscapedWithoutTypeNames()
Gets the tuple value in textual format (i.e. |
|
java.lang.String |
printValueEscapedWithTypeNames()
Gets the tuple value in textual format (i.e. |
|
java.lang.String |
printValueWithoutPossrepNames()
Deprecated. replaced by printValueWithoutTypeNames() |
|
java.lang.String |
printValueWithoutTypeNames()
Gets the tuple value in textual format (i.e. |
|
java.lang.String |
printValueWithTypeNames()
Gets the tuple value in textual format (i.e. |
|
java.lang.String |
printValueXML()
Gets the tuple value in textual XML-style format (i.e. |
|
|
toObject(java.lang.Class<C> objectClass)
Deprecated. - replace by be.SIRAPRISE.client.jsba.DBObjectFactory.getObject(...) - e.g. by inlining the calls to this method |
|
java.util.Map<java.lang.Class<?>,java.lang.Object> |
toObjects(java.lang.Class<?>[] objectClass)
Deprecated. - replace by be.SIRAPRISE.client.jsba.DBObjectFactory.getObjects(...) - e.g. by inlining the calls to this method |
|
java.lang.String |
toString()
|
|
abstract java.lang.String |
value(java.lang.String attributeName)
Gets The attribute value for the named attribute |
|
abstract IntersectableMap<?,?> |
values()
Gets the map of attribute values |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface be.SIRAPRISE.client.Tuple |
|---|
rvaValue |
| Constructor Detail |
|---|
public AbstractTuple(Heading heading)
heading - the heading that the Tuple conforms to| Method Detail |
|---|
public abstract java.lang.String escapedValue(java.lang.String attributeName)
escapedValue in interface TupleattributeName - The name of the attribute whose value is to be obtained
public final Heading getHeading()
getHeading in interface Tuplepublic final java.lang.String printBodyValueWithoutPossrepNames()
public final java.lang.String printBodyValueWithoutTypeNames()
printBodyValueWithoutTypeNames in interface Tuplepublic final java.lang.String printBodyValueWithTypeNames()
printBodyValueWithTypeNames in interface Tuplepublic final java.lang.String printBodyValueXML()
printBodyValueXML in interface Tuplepublic final java.lang.String printEscapedBodyValueWithoutPossrepNames()
public final java.lang.String printEscapedBodyValueWithoutTypeNames()
printEscapedBodyValueWithoutTypeNames in interface Tuplepublic final java.lang.String printEscapedBodyValueWithTypeNames()
printEscapedBodyValueWithTypeNames in interface Tuplepublic final java.lang.String printEscapedValueWithoutPossrepNames()
public final java.lang.String printValueEscapedWithoutTypeNames()
printValueEscapedWithoutTypeNames in interface Tuplepublic final java.lang.String printValueEscapedWithTypeNames()
printValueEscapedWithTypeNames in interface Tuplepublic final java.lang.String printValueWithoutPossrepNames()
public final java.lang.String printValueWithoutTypeNames()
printValueWithoutTypeNames in interface Tuplepublic final java.lang.String printValueWithTypeNames()
printValueWithTypeNames in interface Tuplepublic final java.lang.String printValueXML()
printValueXML in interface Tuple
public final <C> C toObject(java.lang.Class<C> objectClass)
throws SettersMissingException,
ConstructorMissingException,
ClassDoesNotImplementDBObjectException
C - objectClass - A Class object denoting the class of the objects to be returned. objectClass must denote a public, non-abstract class that has a public no-arg constructor, and that has a unique setter method for each attribute in the heading. The name of this unique method must be the concatenation of the word "set" (all lowercase), the attribute name (capitalized), and the suffix "FromDB". The argument list of this setter method must consist of excatly one java.lang.String argument.
SettersMissingException - if a needed setter is missing in the class denoted by objectClass
ConstructorMissingException - if objectClass does not denote a public class, or it denotes an abstract class, or the class does not have a public no-arg constructor
ClassDoesNotImplementDBObjectException - if objectClass does not implement the required DBObject interface
public final java.util.Map<java.lang.Class<?>,java.lang.Object> toObjects(java.lang.Class<?>[] objectClass)
throws SettersMissingException,
ConstructorMissingException,
ClassDoesNotImplementDBObjectException
objectClass - An array of Class objects denoting the classes of the objects to be returned for each tuple. Each objectClass must denote a public, non-abstract class that has a public no-arg constructor, and that has a unique setter method for some attribute in the heading. The name of this unique method must be the concatenation of the word "set" (all lowercase), the attribute name (capitalized), and the suffix "FromDB". The argument list of this setter method must consist of excatly one java.lang.String argument.
SettersMissingException - if some attribute in the heading exists for which no corresponding setter could be found in any of the classes denoted by objectClass[]
ConstructorMissingException - if objectClass[] contains any class that does not denote a public class, or denotes an abstract class, or does not have a public no-arg constructor
ClassDoesNotImplementDBObjectException - if objectClass[] contains any class that does not implement the required DBObject interfacepublic java.lang.String toString()
toString in class java.lang.Objectpublic abstract java.lang.String value(java.lang.String attributeName)
Tuple
value in interface TupleattributeName - The name of the attribute whose value is to be obtained
public abstract IntersectableMap<?,?> values()
Tuple
values in interface Tuple
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||