@MappedSuperclass public abstract class InventoryRepresentation extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
NAMESPACE |
private int |
version |
Constructor and Description |
---|
InventoryRepresentation() |
Modifier and Type | Method and Description |
---|---|
int |
getVersion()
This property is added to each entity so that we can have better
control over concurrent updates
|
void |
setVersion(int version) |
String |
toString()
Our toString() implementation will take advantage of the JAXB defintion
for the class and marshall the object as an XML string.
|
static <T> T |
unmarshall(Class<T> clazz,
InputStream is)
This method will unmarshall the specified class from the provided
XML input stream.
|
public static final String NAMESPACE
private int version
public int getVersion()
public void setVersion(int version)
public String toString()
public static <T> T unmarshall(Class<T> clazz, InputStream is)
clazz
- is
- Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.