public class Layout
extends java.lang.Object
LayoutFactory
Modifier and Type | Method and Description |
---|---|
boolean |
equalLayouts(Layout layout)
Returns true if the given layout matches this one.
|
boolean |
equals(java.lang.Object obj) |
java.util.List<LayoutProperty> |
getAllProperties()
Returns all the properties of this layout, in their proper order.
|
org.joda.time.DateTime |
getCreationDateTime()
Returns the date and time for when this layout generation was created.
|
java.lang.String |
getCreationHost()
Returns the host machine that created this generation.
|
java.lang.String |
getCreationUser()
Returns the user that created this layout generation.
|
java.util.List<LayoutProperty> |
getDataProperties()
Returns all the non-primary key properties of this layout, in their
proper order.
|
int |
getGeneration()
Returns the generation of this layout, where zero represents the first
generation.
|
Layout |
getGeneration(int generation)
Returns the layout for a particular generation of this layout's type.
|
long |
getLayoutID()
Returns a unique identifier for this layout.
|
LayoutOptions |
getOptions()
Returns additional options, or null if none.
|
java.lang.String |
getStorableTypeName()
Storable type name is a fully qualified Java class name.
|
int |
hashCode() |
Layout |
nextGeneration()
Returns the next known generation of the storable's layout, or null
if none.
|
Layout |
previousGeneration()
Returns the previous known generation of the storable's layout, or null
if none.
|
java.lang.Class<? extends Storable> |
reconstruct()
Reconstructs the storable type defined by this layout by returning an
auto-generated class.
|
java.lang.Class<? extends Storable> |
reconstruct(java.lang.ClassLoader loader)
Reconstructs the storable type defined by this layout by returning an
auto-generated class.
|
java.lang.String |
toString() |
void |
writeTo(java.io.OutputStream out)
Write a layout to be read by
LayoutFactory.readLayoutFrom(java.io.InputStream) . |
public long getLayoutID()
public java.lang.String getStorableTypeName()
public int getGeneration()
public java.util.List<LayoutProperty> getDataProperties() throws FetchException
FetchException
public java.util.List<LayoutProperty> getAllProperties() throws FetchException
FetchException
public org.joda.time.DateTime getCreationDateTime()
public java.lang.String getCreationUser()
public java.lang.String getCreationHost()
public LayoutOptions getOptions()
public Layout getGeneration(int generation) throws FetchNoneException, FetchException
FetchNoneException
- if generation not foundFetchException
public Layout previousGeneration() throws FetchException
FetchException
public Layout nextGeneration() throws FetchException
FetchException
public java.lang.Class<? extends Storable> reconstruct() throws FetchException, SupportException
FetchException
SupportException
public java.lang.Class<? extends Storable> reconstruct(java.lang.ClassLoader loader) throws FetchException, SupportException
loader
- optional ClassLoader to load reconstruct class into, if it
has not been loaded yetFetchException
SupportException
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equalLayouts(Layout layout) throws FetchException
FetchException
public void writeTo(java.io.OutputStream out) throws java.io.IOException, RepositoryException
LayoutFactory.readLayoutFrom(java.io.InputStream)
.java.io.IOException
RepositoryException
Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.