public class UniqueKeyConstraint extends Object implements Serializable
Purpose: Define a unique key constraint for a table.
Modifier and Type | Field and Description |
---|---|
protected String |
name |
protected Vector<String> |
sourceFields |
Constructor and Description |
---|
UniqueKeyConstraint() |
UniqueKeyConstraint(String name,
String sourceField) |
UniqueKeyConstraint(String name,
String[] sourceFields) |
Modifier and Type | Method and Description |
---|---|
void |
addSourceField(String sourceField)
PUBLIC:
|
void |
appendDBString(Writer writer,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Append the database field definition string to the table creation statement.
|
String |
getName()
PUBLIC:
|
Vector<String> |
getSourceFields()
PUBLIC:
|
void |
setName(String name)
PUBLIC:
|
void |
setSourceFields(Vector<String> sourceFields)
PUBLIC:
|
public void addSourceField(String sourceField)
public void appendDBString(Writer writer, org.eclipse.persistence.internal.sessions.AbstractSession session)
public String getName()
public void setName(String name)
Copyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.