| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
String |
renderType(int deployLength,
int deployScale)
Return the type for a specific property that incorporates the name, length,
precision and scale.
|
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 lengthpublic 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.Copyright © 2014. All Rights Reserved.