com.googlecode.paradox.metadata.tables.ColumnPrivileges Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of paradoxdriver Show documentation
Show all versions of paradoxdriver Show documentation
A Paradox Java Driver (using JDBC 4)
The newest version!
/*
* Copyright (c) 2009 Leonardo Alves da Costa
*
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
* License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any
* later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
* License for more details. You should have received a copy of the GNU General Public License along with this
* program. If not, see .
*/
package com.googlecode.paradox.metadata.tables;
import com.googlecode.paradox.ConnectionInfo;
import com.googlecode.paradox.metadata.Field;
import com.googlecode.paradox.metadata.Table;
import com.googlecode.paradox.metadata.TableType;
import com.googlecode.paradox.results.ParadoxType;
import com.googlecode.paradox.utils.Constants;
import java.util.Collections;
import java.util.List;
/**
* Column privileges.
*
* @since 1.6.0
*/
public class ColumnPrivileges implements Table {
private final Field grantor = new Field("grantor", 0, 0, Constants.MAX_STRING_SIZE, ParadoxType.VARCHAR, this, 1);
private final Field grantee = new Field("grantee", 0, 0, Constants.MAX_STRING_SIZE, ParadoxType.VARCHAR, this, 2);
private final Field catalog = new Field("catalog", 0, 0, Constants.MAX_STRING_SIZE, ParadoxType.VARCHAR, this, 3);
private final Field schema = new Field("schema", 0, 0, Constants.MAX_STRING_SIZE, ParadoxType.VARCHAR, this, 4);
private final Field table = new Field("table", 0, 0, Constants.MAX_STRING_SIZE, ParadoxType.VARCHAR, this, 5);
private final Field name = new Field("name", 0, 0, Constants.MAX_STRING_SIZE, ParadoxType.VARCHAR, this, 6);
private final Field type = new Field("type", 0, 0, 10, ParadoxType.VARCHAR, this, 7);
private final Field grantable = new Field("is_grantable", 0, 0, 3, ParadoxType.VARCHAR, this, 8);
/**
* Creates a new instance.
*/
public ColumnPrivileges() {
super();
}
@Override
public String getName() {
return "pdx_column_privileges";
}
@Override
public TableType type() {
return TableType.SYSTEM_TABLE;
}
@Override
public Field[] getFields() {
return new Field[]{
grantor,
grantee,
catalog,
schema,
table,
name,
type,
grantable
};
}
@Override
public int getRowCount() {
return 0;
}
@Override
public String getSchemaName() {
return ConnectionInfo.INFORMATION_SCHEMA;
}
@Override
public List