|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.avaje.ebean.config.dbplatform.DbType
public class DbType
Represents a DB type with name, length, precision, and scale.
The length is for VARCHAR types and precision/scale for DECIMAL types.
| Constructor Summary | |
|---|---|
DbType(String name)
Construct with no length or scale. |
|
DbType(String name,
boolean canHaveLength)
Use with canHaveLength=false for types that should never have a length. |
|
DbType(String name,
int defaultLength)
Construct with a given length. |
|
DbType(String name,
int defaultPrecision,
int defaultScale)
Construct for Decimal with precision and scale. |
|
| Method Summary | |
|---|---|
String |
renderType(int deployLength,
int deployScale)
Return the type for a specific property that incorporates the name, length, precision and scale. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DbType(String name)
public DbType(String name,
int defaultLength)
public DbType(String name,
int defaultPrecision,
int defaultScale)
public DbType(String name,
boolean canHaveLength)
name - the type namecanHaveLength - set this to false for type that should never have a length| Method Detail |
|---|
public String renderType(int deployLength,
int deployScale)
The deployLength and deployScale are for the property we are rendering the DB type for.
deployLength - the length or precision defined by deployment on a specific
property.deployScale - the scale defined by deployment on a specific property.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||