Package ejava.jpa.examples.tuning
Class MovieFactory
- java.lang.Object
-
- ejava.jpa.examples.tuning.MovieFactory
-
public class MovieFactory extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
MovieFactory.SQLColumn
class
MovieFactory.SQLConstraintNonNull
class
MovieFactory.SQLConstruct
class
MovieFactory.SQLIndex
static class
MovieFactory.SQLStatement
-
Field Summary
-
Constructor Summary
Constructors Constructor Description MovieFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MovieFactory
assertConstructs(MovieFactory.SQLConstruct[] sql)
void
cleanup()
MovieFactory
createFKIndexes()
MovieFactory
dropConstructs()
MovieFactory
executeSQL(MovieFactory.SQLConstruct[] constructs)
MovieFactory
executeSQL(MovieFactory.SQLStatement[] sql, boolean drop)
MovieFactory
executeSQL(String[] sql, boolean failOnError)
MovieFactory
flush()
void
populate()
MovieFactory
setEntityManager(EntityManager em)
-
-
-
Field Detail
-
log
private static final org.slf4j.Logger log
-
em
private EntityManager em
-
MOVIE_DIRECTOR_FKX
public MovieFactory.SQLConstruct MOVIE_DIRECTOR_FKX
-
MOVIE_RATING_IDX
public MovieFactory.SQLConstruct MOVIE_RATING_IDX
-
MOVIE_RATING_RIDX
public MovieFactory.SQLConstruct MOVIE_RATING_RIDX
-
MOVIE_RATING_LOWER_IDX
public MovieFactory.SQLConstruct MOVIE_RATING_LOWER_IDX
-
MOVIE_RATING_LOWER_RIDX
public MovieFactory.SQLConstruct MOVIE_RATING_LOWER_RIDX
-
MOVIE_TITLE_IDX
public MovieFactory.SQLConstruct MOVIE_TITLE_IDX
-
MOVIE_TITLE_RIDX
public MovieFactory.SQLConstruct MOVIE_TITLE_RIDX
-
MOVIE_RATING_TITLE_IDX
public MovieFactory.SQLConstruct MOVIE_RATING_TITLE_IDX
-
MOVIE_TITLE_RATING_IDX
public MovieFactory.SQLConstruct MOVIE_TITLE_RATING_IDX
-
MOVIE_TITLE_RDATE_IDX
public MovieFactory.SQLConstruct MOVIE_TITLE_RDATE_IDX
-
MOVIE_TITLE_RDATE_ID_IDX
public MovieFactory.SQLConstruct MOVIE_TITLE_RDATE_ID_IDX
-
MOVIE_RDATE_IDX
public MovieFactory.SQLConstruct MOVIE_RDATE_IDX
-
GENRE_MOVIE_FKX
public MovieFactory.SQLConstruct GENRE_MOVIE_FKX
-
MOVIEROLE_ACTOR_FKX
public MovieFactory.SQLConstruct MOVIEROLE_ACTOR_FKX
-
MOVIEROLE_MOVIE_FKX
public MovieFactory.SQLConstruct MOVIEROLE_MOVIE_FKX
-
MOVIE_UTITLE
public MovieFactory.SQLConstruct MOVIE_UTITLE
-
MOVIE_UTITLE_NONNULL
public MovieFactory.SQLConstruct MOVIE_UTITLE_NONNULL
-
MOVIE_UTITLE_IDX
public MovieFactory.SQLConstruct MOVIE_UTITLE_IDX
-
MOVIE_UTITLE_UDX
public MovieFactory.SQLConstruct MOVIE_UTITLE_UDX
-
MOVIE_ROLE_IDX
public MovieFactory.SQLConstruct MOVIE_ROLE_IDX
-
MOVIE_ROLE_MOVIE_FDX
public MovieFactory.SQLConstruct MOVIE_ROLE_MOVIE_FDX
-
MOVIE_ROLE_MOVIE_CDX
public MovieFactory.SQLConstruct MOVIE_ROLE_MOVIE_CDX
-
MOVIE_ROLE_ACTOR_MOVIE_CDX
public MovieFactory.SQLConstruct MOVIE_ROLE_ACTOR_MOVIE_CDX
-
MOVIE_ROLE_MOVIE_ACTOR_CDX
public MovieFactory.SQLConstruct MOVIE_ROLE_MOVIE_ACTOR_CDX
-
-
Method Detail
-
setEntityManager
public MovieFactory setEntityManager(EntityManager em)
-
populate
public void populate()
-
cleanup
public void cleanup()
-
executeSQL
public MovieFactory executeSQL(MovieFactory.SQLConstruct[] constructs)
-
executeSQL
public MovieFactory executeSQL(MovieFactory.SQLStatement[] sql, boolean drop)
-
executeSQL
public MovieFactory executeSQL(String[] sql, boolean failOnError)
-
assertConstructs
public MovieFactory assertConstructs(MovieFactory.SQLConstruct[] sql)
-
dropConstructs
public MovieFactory dropConstructs()
-
createFKIndexes
public MovieFactory createFKIndexes()
-
flush
public MovieFactory flush()
-
-