initial add of EbeanORM server based on v2.8.1

This commit is contained in:
rbygrave committed 2012-09-14 00:40:39 +12:00
1 parent 2b74d0f9d9
commit 96ce4c0ddf
1188 files changed
+135034

No files matched your search

@@ -0,0 +1,43 @@
package com.avaje.ebeaninternal.server.idgen;
import java.util.UUID;
import com.avaje.ebean.Transaction;
import com.avaje.ebean.config.dbplatform.IdGenerator;
/**
* IdGenerator for java util UUID.
*/
public class UuidIdGenerator implements IdGenerator {
/**
* Return UUID from UUID.randomUUID();
*/
public Object nextId(Transaction t) {
return UUID.randomUUID();
}
/**
* Returns "uuid".
*/
public String getName() {
return "uuid";
}
/**
* Returns false.
*/
public boolean isDbSequence() {
return false;
}
/**
* Ignored for UUID as not required as a performance optimisation.
*/
public void preAllocateIds(int allocateSize) {
// ignored
}
}
@@ -0,0 +1,11 @@
<HTML>
<HEAD>
<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Id Generation</TITLE>
</HEAD>
<Body BGCOLOR="#ffffff">
Id Generation (Sequences, UUIDGen etc)
</Body>
</HTML>