Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package net.java.ao.atlassian;
 
 
 
 import static com.google.common.base.Preconditions.checkNotNull;

A table name converter that will prepend the given Prefix to table names.

It uses a delegate table name converter for the general conversion strategy.

    private final TablePrefix prefix;

    
The table name converter we delegate the real conversion to
    private final TableNameConverter delegate;
    public PrefixedTableNameConverter(TablePrefix prefixTableNameConverter delegate)
    {
        this. = checkNotNull(prefix);
        this. = checkNotNull(delegate);
    }
    public String getName(Class<? extends RawEntity<?>> clazz)
    {
        return .prepend(.getName(clazz));
    }
New to GrepCode? Check out our FAQ X