|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.antelmann.sql.TaggableMappingImpl
public class TaggableMappingImpl
a default implementation that allows to easily adopt a mapping based on JDBC information
| Constructor Summary | |
|---|---|
TaggableMappingImpl(Connection con,
Class<? extends Keyword> type,
String table,
String idColumn,
String displayColumn)
|
|
| Method Summary | |
|---|---|
void |
deleteTag(String group)
deletes the given tag so that no entry is in the given group anymore |
Set<? extends Keyword> |
getExistingTags()
allows to retrieve all existing tags from the database |
String |
getGroupNameColumn()
|
ConnectionHelper |
getHelper()
|
String |
getTagIdColumn()
|
String |
getTagTable()
|
Class<? extends Keyword> |
getTagType()
returns the type of the tag |
Class<? extends Keyword> |
getType()
|
void |
renameTag(String oldName,
String newName)
allows to rename all occurrences of a tag name into another |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TaggableMappingImpl(Connection con,
Class<? extends Keyword> type,
String table,
String idColumn,
String displayColumn)
| Method Detail |
|---|
public ConnectionHelper getHelper()
public Class<? extends Keyword> getType()
public String getTagTable()
getTagTable in interface TaggableMappingpublic String getTagIdColumn()
getTagIdColumn in interface TaggableMappingpublic String getGroupNameColumn()
getGroupNameColumn in interface TaggableMappingpublic Class<? extends Keyword> getTagType()
TaggableMapping
getTagType in interface TaggableMapping
public Set<? extends Keyword> getExistingTags()
throws SQLException
TaggableMapping
getExistingTags in interface TaggableMappingSQLException
public void renameTag(String oldName,
String newName)
throws SQLException,
NullPointerException
TaggableMapping
renameTag in interface TaggableMappingSQLException
NullPointerException
public void deleteTag(String group)
throws SQLException
TaggableMapping
deleteTag in interface TaggableMappingSQLException
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||