public interface SyntheticBuilder
prepare()
.Modifier and Type | Interface and Description |
---|---|
static interface |
SyntheticBuilder.ClassNameProvider
Interface used to get the name for the class to generate.
|
Modifier and Type | Method and Description |
---|---|
SyntheticKey |
addAlternateKey()
Add an alternate key to be built.
|
SyntheticIndex |
addIndex()
Add an index to the set managed by this builder.
|
SyntheticKey |
addPrimaryKey()
Add a primary key to be built.
|
SyntheticProperty |
addProperty(java.lang.String name,
java.lang.Class type)
Add a property to the set managed by this builder.
|
SyntheticProperty |
addProperty(SyntheticProperty prop)
Add an externally defined synthetic property to the list
|
java.lang.Class<? extends Storable> |
build()
Convenience method to generate the class.
|
java.lang.Class<? extends Storable> |
getStorableClass() |
boolean |
hasProperty(java.lang.String name)
Check to see if a particular property has already been added to the list of
properties to generate
|
boolean |
isVersioned()
Returns true if a property with the version attribute has been addded
|
ClassFileBuilder |
prepare() |
ClassFileBuilder prepare() throws SupportException
ClassFileBuilder
ready for further decoration or buildingSupportException
java.lang.Class<? extends Storable> getStorableClass() throws java.lang.IllegalStateException
prepare()
already have been called
prior to calling this method.java.lang.IllegalStateException
- if build has not yet been called.java.lang.Class<? extends Storable> build() throws SupportException
prepare()
and return the result of
generating the class from that classfile. If the caller does not
wish to regenerate the class from scratch, use getStorableClass()
instead.SupportException
SyntheticProperty addProperty(java.lang.String name, java.lang.Class type)
name
- of the propertytype
- of the propertySyntheticProperty addProperty(SyntheticProperty prop)
prop
- to addboolean hasProperty(java.lang.String name)
name
- SyntheticKey addPrimaryKey()
SyntheticKey addAlternateKey()
SyntheticIndex addIndex()
boolean isVersioned()
Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.