com.spun.util.database.DatabaseLoader Maven / Gradle / Ivy
package com.spun.util.database;
import java.sql.Statement;
public final class DatabaseLoader implements DatabaseCache
{
private static final String ERROR_TEXT = "DatabaseLoad is a Marker to Load from the Database";
public static DatabaseCache INSTANCE = new DatabaseLoader();
private DatabaseLoader()
{
}
public static boolean isDatabaseLoader(DatabaseCache cache)
{
return (cache instanceof DatabaseLoader);
}
public static boolean isNormalCache(DatabaseCache cache)
{
return !((cache == null) || (cache instanceof DatabaseLoader));
}
public boolean equals(Object object)
{
return (object instanceof DatabaseLoader);
}
/* UNSUPPORTED METHODS */
public Class getObjectType()
{
throw new UnsupportedOperationException(ERROR_TEXT);
}
public boolean isLinkBackOn()
{
throw new UnsupportedOperationException(ERROR_TEXT);
}
public void load(Statement stmt)
{
throw new UnsupportedOperationException(ERROR_TEXT);
}
public void reset(Statement stmt)
{
throw new UnsupportedOperationException(ERROR_TEXT);
}
public T get(int pkey)
{
throw new UnsupportedOperationException(ERROR_TEXT);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy