com.silverpeas.mydb.data.key
Class UnicityKeys

java.lang.Object
  extended by com.silverpeas.mydb.data.key.UnicityKeys

public class UnicityKeys
extends Object

Table unicity keys list.

Author:
Antoine HEDIN

Constructor Summary
UnicityKeys(DbTable parentTable)
           
 
Method Summary
 void add(UnicityKey unicityKey)
           
 UnicityKey get(int index)
           
 String getConstraintName()
           
 int getSize()
           
 boolean isEmpty()
           
 boolean isUnicityKey(String name)
           
 void remove(int index)
           
 void remove(String oldColumnName)
           
 void replace(String oldColumnName, String newColumnName)
           
 void update(UnicityKey unicityKey, int index)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnicityKeys

public UnicityKeys(DbTable parentTable)
Method Detail

isEmpty

public boolean isEmpty()

getSize

public int getSize()

add

public void add(UnicityKey unicityKey)

remove

public void remove(int index)

get

public UnicityKey get(int index)

getConstraintName

public String getConstraintName()

update

public void update(UnicityKey unicityKey,
                   int index)

replace

public void replace(String oldColumnName,
                    String newColumnName)

remove

public void remove(String oldColumnName)

isUnicityKey

public boolean isUnicityKey(String name)


Copyright © 2016 Silverpeas. All Rights Reserved.